<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Create a master plan and follow IT</title><link>http://winmasterplan.blogspot.com/</link><description>It's all about administering computers</description><language>en</language><managingEditor>noreply@blogger.com (Masterplan)</managingEditor><lastBuildDate>Wed, 14 Oct 2009 01:19:43 PDT</lastBuildDate><generator>Blogger</generator><atom:id xmlns:atom="http://www.w3.org/2005/Atom">tag:blogger.com,1999:blog-722266276770253235</atom:id><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">36</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/masterplan2" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><title>Story behind the blog</title><link>http://feedproxy.google.com/~r/masterplan2/~3/vlJZSjpxNLE/story-behind-blog.html</link><category>Personal</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Wed, 22 Apr 2009 22:58:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-2291856808776151891</guid><description>This blog reflects my personal experiences, thoughts, opinions and ideas about different kind of software that a system engineer have to deal in his daily job.There were 2 reasons which made me write my blog:&lt;br /&gt;- the desire to help others that have the same problem;&lt;br /&gt;- the desire to have a place accesible from every computer in the world where to find my information.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-2291856808776151891?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/vlJZSjpxNLE" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-04-22T23:27:21.074-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/04/story-behind-blog.html</feedburner:origLink></item><item><title>RSS feed crashed</title><link>http://feedproxy.google.com/~r/masterplan2/~3/CaWi-CX-HQg/rss-feed-crashed.html</link><category>Personal</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Wed, 22 Apr 2009 22:25:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-2045651539048881176</guid><description>Today i received a notification from feedburner team:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;FeedBurner Collision Notification&lt;br /&gt;Due some poor planning on Google's part since you created your new feed, &lt;a href="http://feeds2.feedburner.com/masterplan"&gt;http://feeds2.feedburner.com/masterplan&lt;/a&gt;, we have been forced to change its address to &lt;a href="http://feeds2.feedburner.com/masterplan2"&gt;http://feeds2.feedburner.com/masterplan2&lt;/a&gt;.&lt;br /&gt;WHY DID THIS HAPPEN?&lt;br /&gt;We have worked hard to ensure that any feed that already exists on feeds.feedburner.com cannot be created in the new Google-hosted feeds environment, feeds2.feedburner.com. However, a few feeds, including your own, did end up with the same address on both sides. We've used an automatic conflict-resolution system to determine which feed's address to change, and the choice ended up being this feed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In this way, the old address of my feed is not good anymore; now it shows a chinese website. I am very dissapointed about that because unfortunately this affects all my curent rss subscribers.&lt;br /&gt;I changed now the rss feed link on my blog, allthough the address changed 1 week ago.&lt;br /&gt;I apologise for the inconvienence and with this occasion i want to thank you to all my readers and subscribers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-2045651539048881176?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/CaWi-CX-HQg" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-04-22T22:58:01.321-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/04/rss-feed-crashed.html</feedburner:origLink></item><item><title>How to force users to logon on one domain controller</title><link>http://feedproxy.google.com/~r/masterplan2/~3/Z7EfMGnkBpg/how-to-force-users-to-logon-on-one.html</link><category>Windows Server 2003</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Wed, 08 Apr 2009 07:53:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-6793857211898175413</guid><description>Hello,&lt;br /&gt;&lt;br /&gt;The scenario is : one active directory site with two domain controllers.&lt;br /&gt;Question: How to force users to logon only on one domain controller?&lt;br /&gt;The answer to this question resides in the srv records priority. See here how to do it:&lt;br /&gt;&lt;a href="http://www.windowsnetworking.com/kbase/WindowsTips/WindowsServer2008/AdminTips/ActiveDirectory/AQuickTiptodesignateadomaincontrollerforclientauthentications.html"&gt;http://www.windowsnetworking.com/kbase/WindowsTips/WindowsServer2008/AdminTips/ActiveDirectory/AQuickTiptodesignateadomaincontrollerforclientauthentications.html&lt;/a&gt;&lt;br /&gt;You can verify the priorities by dns mmc console or by using nslookup like this:&lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc738991.aspx"&gt;http://technet.microsoft.com/en-us/library/cc738991.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-6793857211898175413?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/Z7EfMGnkBpg" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-04-08T07:57:32.305-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/04/how-to-force-users-to-logon-on-one.html</feedburner:origLink></item><item><title>One-liners with dsquery</title><link>http://feedproxy.google.com/~r/masterplan2/~3/wApSolYAxnQ/one-liners-with-dsquery.html</link><category>One line script</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Thu, 26 Mar 2009 09:31:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-5645264726430806951</guid><description>&lt;span style="font-family:verdana;"&gt;Get all the members of a group:&lt;br /&gt;dsquery group -name group_name dsget group -members&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;See all the users with their associated logon script:&lt;br /&gt;dsquery * domainroot -filter "(&amp;amp;(objectCategory=Person)(objectClass=User))" -limit 0 -attr sAMAccountName sn distinguishedName scriptPath&lt;br /&gt;&lt;br /&gt;See the groups from Active Directory that does not have any members:&lt;br /&gt;dsquery * -filter "&amp;amp;(objectCategory=group)(!member=*)" -limit 0 -attr groupType sAMAccountName distinguishedName&lt;br /&gt;&lt;br /&gt;See when a group was created, and membership:&lt;br /&gt;dsquery * -filter "&amp;amp;(objectCategory=group)" -limit 0 -attr whenCreated samaccountname memberof&lt;br /&gt;&lt;br /&gt;Check the expiration date of all users accounts in an OU:&lt;br /&gt;dsquery user "OU=XXX,DC=test,DC=com" dsget user -dn -acctexpires&lt;br /&gt;&lt;br /&gt;P.S. I see that for an unknown reason, the pipe command does not appear in my post. So, i must mention that before every dsget command in the upper scripts there is a pipe sign.&lt;/span&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-5645264726430806951?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/wApSolYAxnQ" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-03-26T09:39:36.097-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/03/one-liners-with-dsquery.html</feedburner:origLink></item><item><title>How to see the installed updates/fixes on a computer</title><link>http://feedproxy.google.com/~r/masterplan2/~3/C_1bTBELLFk/how-to-see-installed-updatesfixes-on.html</link><category>One line script</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Tue, 24 Mar 2009 06:43:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-7800930434070587129</guid><description>Before writing this post i was aware of a single method:&lt;br /&gt;systeminfo find "KB"&lt;br /&gt;To do it on a remote computer, i used the combination of psexec and the upper command or&lt;br /&gt;systeminfo /s %computername% find "KB"&lt;br /&gt;But the output of the command is not so easily readable. Recently, i found this great article which revealed me a second method, exporting the results in html format:&lt;br /&gt;&lt;a href="http://windowsxp.mvps.org/qfe.htm"&gt;http://windowsxp.mvps.org/qfe.htm&lt;/a&gt;&lt;br /&gt;So, here is the command:&lt;br /&gt;wmic qfe list full /format:htable &gt; C:\hotfixes.html&lt;br /&gt;To do it on a remote computer:&lt;br /&gt;wmic /node:”computername” qfe list full /format:htable &gt; C:\hotfixes.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-7800930434070587129?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/C_1bTBELLFk" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-03-25T02:50:31.143-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/03/how-to-see-installed-updatesfixes-on.html</feedburner:origLink></item><item><title>How to recover from the failure of a subdomain single domain controller</title><link>http://feedproxy.google.com/~r/masterplan2/~3/xFAkYMTBmkI/how-to-recover-from-failure-of.html</link><category>Windows Server 2003</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Tue, 24 Mar 2009 04:09:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-6543600872883650989</guid><description>Supposing that your unique domain controller from a subdomain had a hardware failure, those are the 2 steps you need to follow to recover:&lt;br /&gt;1)  Remove orphaned domain from Active Directory:&lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/230306/en-us"&gt;http://support.microsoft.com/kb/230306/en-us&lt;/a&gt;&lt;br /&gt;2)  Restore the server through reinstallation of the operating system and subsequent restore of Active Directory from backup:&lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc782127.aspx"&gt;http://technet.microsoft.com/en-us/library/cc782127.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-6543600872883650989?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/xFAkYMTBmkI" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-03-24T04:15:25.564-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/03/how-to-recover-from-failure-of.html</feedburner:origLink></item><item><title>Get mac and installed drivers</title><link>http://feedproxy.google.com/~r/masterplan2/~3/XwJcW-rriPo/get-mac-and-installed-drivers.html</link><category>One line script</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Mon, 16 Mar 2009 02:12:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-1767222464947841741</guid><description>Here is a command line that will show you the mac address of the network card of a remote computer:&lt;br /&gt;getmac /S 10.1.1.1&lt;br /&gt;And the following will list all the drivers on your system:&lt;br /&gt;driverquery&lt;br /&gt;Or on a remote system:&lt;br /&gt;driverquery /S 10.1.1.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-1767222464947841741?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/XwJcW-rriPo" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-03-16T02:14:13.010-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/03/get-mac-and-installed-drivers.html</feedburner:origLink></item><item><title>Folder share names and permissions</title><link>http://feedproxy.google.com/~r/masterplan2/~3/yhm91DWkJSk/folder-share-names-and-permissions.html</link><category>One line script</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Thu, 19 Feb 2009 04:52:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-6393450419663041471</guid><description>How to delete the share of a folder which share name is "test share" from command line:&lt;br /&gt;net share "test share" /delete&lt;br /&gt;How to share a folder named "test share" with the shared name "test":&lt;br /&gt;net share "test"="C:\test share"&lt;br /&gt;How to make a folder named test with the shared name "test" and give everyone full access:&lt;br /&gt;net share "test"="C:\test" /GRANT:everyone,FULL&lt;br /&gt;Display all open shared files on a server:&lt;br /&gt;net file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-6393450419663041471?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/yhm91DWkJSk" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-02-19T04:54:02.895-08:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/02/folder-share-names-and-permissions.html</feedburner:origLink></item><item><title>Customizable web error messages</title><link>http://feedproxy.google.com/~r/masterplan2/~3/Gu4MsSy2Bls/customizable-web-error-messages.html</link><category>News</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Fri, 13 Feb 2009 01:57:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-2559860956188112856</guid><description>With Web Page Error Toolkit, you can create pages that contain customized error messages to help users find the information they need. In fact, this toolkit is a customizable asp application that replaces the default error page on the IIS server.&lt;br /&gt;See here a good review:&lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/magazine/2009.02.utilityspotlight.aspx"&gt;http://technet.microsoft.com/en-us/magazine/2009.02.utilityspotlight.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-2559860956188112856?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/Gu4MsSy2Bls" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-02-13T02:02:27.423-08:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/02/customizable-web-error-messages.html</feedburner:origLink></item><item><title>Free inventory tool</title><link>http://feedproxy.google.com/~r/masterplan2/~3/UfXt-rc1Ccs/free-inventory-tool.html</link><category>News</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Thu, 12 Feb 2009 04:35:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-7334298014113553645</guid><description>Hi,&lt;br /&gt;&lt;br /&gt;I want to present the Microsoft Assesment and Planning Toolkit, a powerfull free tool which seems to be very useful in an organization.&lt;br /&gt;The Microsoft Assessment and Planning Toolkit performs three key functions: hardware inventory, compatibility analysis, and reporting. It collects and organizes system resources and device information from a single networked computer and does not require users to deploy software agents on the computers that must be inventoried. MAP uses technologies already available in the IT environment to perform inventory and assessments, like: Windows Management Instrumentation (WMI), the Remote Registry Service, SNMP, Active Directory Domain Services, and the Computer Browser service.&lt;br /&gt;Assessments can be completed on the following Windows platforms:&lt;br /&gt;Windows Vista&lt;br /&gt;Windows XP Professional&lt;br /&gt;Windows Server 2003 or Windows Server 2003 R2&lt;br /&gt;Windows 2000 Professional or Windows 2000 Server&lt;br /&gt;Windows Server 2008&lt;br /&gt;The reports generated are very friendly, with a lot of excels and comprehensive graphics. It will report you, for example, how many of your Windows 2003 Server are ready, from hardware point of view, for deploying Windows 2008 on them or how many computers in your organization have Office 2003 or Office 2007 installed.&lt;br /&gt;For more information, see this link from Microsoft:&lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/bb977556.aspx?ca=NOT&amp;amp;su=WINSVR&amp;amp;sa=MAP&amp;amp;ct=NWSLR&amp;amp;cn=%20TNETFLASH&amp;amp;au=ITPRO&amp;amp;go=MAPTN&amp;amp;dt=02112009"&gt;http://technet.microsoft.com/en-us/library/bb977556.aspx?ca=NOT&amp;amp;su=WINSVR&amp;amp;sa=MAP&amp;amp;ct=NWSLR&amp;amp;cn=%20TNETFLASH&amp;amp;au=ITPRO&amp;amp;go=MAPTN&amp;amp;dt=02112009&lt;/a&gt;&lt;br /&gt;and also read the Technet blog for this tool:&lt;br /&gt;&lt;a href="http://blogs.technet.com/mapblog/"&gt;http://blogs.technet.com/mapblog/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-7334298014113553645?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/UfXt-rc1Ccs" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-02-12T04:52:25.579-08:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/02/free-inventory-tool.html</feedburner:origLink></item><item><title>Adfind (from joeware) - part1</title><link>http://feedproxy.google.com/~r/masterplan2/~3/FMt_4PU8U8I/adfind-from-joeware-part1.html</link><category>One line script</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Sat, 07 Feb 2009 12:05:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-6848213759971356317</guid><description>&lt;a href="http://3.bp.blogspot.com/_vfLB9HwZd9c/SY3uGV12yoI/AAAAAAAAAIo/uYuHZNuiAzQ/s1600-h/untitled.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5300154129194601090" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 200px; CURSOR: hand; HEIGHT: 154px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_vfLB9HwZd9c/SY3uGV12yoI/AAAAAAAAAIo/uYuHZNuiAzQ/s200/untitled.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;Export Sites from AD sites and services:&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;adfind -config -f "(objectClass=site)" -dn &lt;/div&gt;&lt;div&gt;Export sites and associated subnets:&lt;/div&gt;&lt;div&gt;adfind -config -f "(objectClass=subnet)" distinguishedname siteobject&lt;/div&gt;&lt;div&gt;Show user which have certificates:&lt;br /&gt;adfind -tdc -default -f "(&amp;amp;(objectCategory=person)(objectClass=user)(userCertificate=*))" -dsq&lt;br /&gt;Show users whch don't have certificates:&lt;/div&gt;&lt;div&gt;adfind -tdc -default -f "(&amp;amp;(objectCategory=person)(objectClass=user)(!userCertificate=*))" -dsq Show useful informations about users:&lt;/div&gt;&lt;div&gt;adfind -tdc -default -f "(&amp;amp;(objectCategory=person)(objectClass=user))"&lt;/div&gt;&lt;div&gt;The output of the command above is shown in the above picture.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-6848213759971356317?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/FMt_4PU8U8I" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-02-07T12:29:19.116-08:00</atom:updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_vfLB9HwZd9c/SY3uGV12yoI/AAAAAAAAAIo/uYuHZNuiAzQ/s72-c/untitled.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/02/adfind-from-joeware-part1.html</feedburner:origLink></item><item><title>Fix it for me</title><link>http://feedproxy.google.com/~r/masterplan2/~3/5yMzGz2MayU/fix-it-for-me.html</link><category>News</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Thu, 05 Feb 2009 03:42:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-940926433433171729</guid><description>Microsoft has created a team that works to improve the time needed to resolve any issues that we have with their products. So, if now KB articles provide us with a list of steps that can be followed to resolve our problem, since now we can click a button and have the issue resolved.&lt;br /&gt;For example, see here what i mean:&lt;a href="http://support.microsoft.com/kb/963547"&gt;http://support.microsoft.com/kb/963547&lt;/a&gt;&lt;br /&gt;Also, read here their blog:&lt;a href="http://blogs.technet.com/fixit4me/default.aspx"&gt;http://blogs.technet.com/fixit4me/default.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-940926433433171729?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/5yMzGz2MayU" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-02-05T03:43:35.247-08:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/02/fix-it-for-me.html</feedburner:origLink></item><item><title>Query distibution groups and their members</title><link>http://feedproxy.google.com/~r/masterplan2/~3/aKuDEeCBV9w/query-distibution-groups-and-their.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Thu, 29 Jan 2009 05:41:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-194845957081681557</guid><description>Here is the script that will export all distribution groups in the file groups.txt and then will put these groups and their members in the file membership.txt:&lt;br /&gt;&lt;br /&gt;dsquery * forestroot -filter "(samAccountType=268435457)" -limit 0 &gt; groups.txt&lt;br /&gt;for /f "tokens=*" %%g in (groups.txt) do @echo %%g &gt;&gt;membership.txt &amp;amp;&amp;amp; echo Members: &gt;&gt;membership.txt &amp;amp;&amp;amp; dsget group %%g -members -expand &gt;&gt;membership.txt &amp;amp;&amp;amp; echo **************************************** &gt;&gt;membership.txt&lt;br /&gt;&lt;br /&gt;If you want to do a query on security groups, or on distribution groups that have managers assigned and then list their members, please see my other posts from the Scripts categories called Distribution lists and managers and Security and distribution groups and easily modify the upper script.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-194845957081681557?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/aKuDEeCBV9w" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-01-29T05:50:14.223-08:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/01/query-distibution-groups-and-their.html</feedburner:origLink></item><item><title>Microsoft Web Platform Installer is now released</title><link>http://feedproxy.google.com/~r/masterplan2/~3/myPv7aRjDAA/microsoft-web-platform-installer-is-now.html</link><category>News</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Thu, 29 Jan 2009 04:06:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-7905693436515368255</guid><description>The Web Platform Installer (Web PI) is a simple tool that installs Microsoft's entire Web Platform, including IIS, Visual Web Developer 2008 Express Edition, SQL Server 2008 Express Edition and the .NET Framework. Using the Web Platform Installer’s user interface, you can choose to install either specific products or the entire Microsoft Web Platform onto your computer. The Web PI also helps keep your products up to date by always offering the latest additions to the Web Platform.&lt;br /&gt;          Supported Operating Systems are: Windows Vista RTM, Windows Vista SP1, Windows XP, Windows Server 2003, Windows Server 2008.&lt;br /&gt;          See here: &lt;a href="http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx"&gt;http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-7905693436515368255?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/myPv7aRjDAA" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-01-29T04:08:36.528-08:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2009/01/microsoft-web-platform-installer-is-now.html</feedburner:origLink></item><item><title>Add mobile number to 1000 users</title><link>http://feedproxy.google.com/~r/masterplan2/~3/UjGACy6VOTg/add-mobile-number-to-1000-users.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Fri, 21 Nov 2008 04:25:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-4488008665168786797</guid><description>Hi all,&lt;br /&gt;&lt;br /&gt;This is a script i wrote it in a response to a question asked by someone in Microsoft newsgroups:&lt;br /&gt;how to add mobile numbers easily to 1000 users?&lt;br /&gt;Let's assume that you have the users in a file named mobile.txt formatted like this:&lt;br /&gt;User                Phone number&lt;br /&gt;Jon Kerry       0743221021&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;The first column is the name of the user, the second column is his mobile number (separated by a tab). The following script would do the trick:&lt;br /&gt;For /F "Tokens=1,* Delims=       " %%A In (mobile.txt) Do (&lt;br /&gt; Set name=%%A&lt;br /&gt; Set mobile=%%B)&lt;br /&gt;dsquery user -name "%name%"  dsmod user -mobile %mobile%&lt;br /&gt;Pay attention that after Delims= it is a tab character.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-4488008665168786797?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/UjGACy6VOTg" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-11-21T04:29:36.178-08:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/11/add-mobile-number-to-1000-users.html</feedburner:origLink></item><item><title>Essential LDAP attributes</title><link>http://feedproxy.google.com/~r/masterplan2/~3/rCCuVIgwauY/essential-ldap-attributes.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Fri, 21 Nov 2008 04:14:00 PST</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-7555983673992638846</guid><description>&lt;a href="http://2.bp.blogspot.com/_vfLB9HwZd9c/SSaniqoLoOI/AAAAAAAAAII/1IrkttvRq5k/s1600-h/poza.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5271084627883958498" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 200px; CURSOR: hand; HEIGHT: 188px" alt="" src="http://2.bp.blogspot.com/_vfLB9HwZd9c/SSaniqoLoOI/AAAAAAAAAII/1IrkttvRq5k/s200/poza.JPG" border="0" /&gt;&lt;/a&gt; In this note i'll show you the essentials ldap attributes that can be used with different tools (like csvde or ldifde) to easily query for the required properties.&lt;br /&gt;&lt;br /&gt;In the &lt;strong&gt;general&lt;/strong&gt; tab, these are the ldap attributes (in the second column are the corresponding ldap attributes):&lt;br /&gt;First name: givenname&lt;br /&gt;Initials: initials&lt;br /&gt;Last name: sn&lt;br /&gt;Description: description&lt;br /&gt;Display name: displayname&lt;br /&gt;                                                     Office: physicalDeliveryOfficeName&lt;br /&gt;                                                     TelephoneNumber: telephoneNumber&lt;br /&gt;                                                     Webpage: wWWHomePage&lt;br /&gt;                                                     E-mail: mail&lt;br /&gt;&lt;br /&gt;In the&lt;strong&gt; address&lt;/strong&gt; tab:&lt;br /&gt;Street: streetAddress&lt;br /&gt;P.O. Box: postOfficeBox&lt;br /&gt;City: I&lt;br /&gt;State: st&lt;br /&gt;Zip code: postalCode&lt;br /&gt;Country: co&lt;br /&gt;&lt;br /&gt;In the &lt;strong&gt;account&lt;/strong&gt; tab:&lt;br /&gt;User logon name: UserPrincipalName&lt;br /&gt;&lt;a name="table11"&gt;&lt;/a&gt;&lt;a name="AutoNumber41"&gt;&lt;/a&gt;User logon name (pre Windows 2000): sAMAccountName&lt;br /&gt;Account expires: accountExpires&lt;br /&gt;&lt;br /&gt;In the &lt;strong&gt;profile&lt;/strong&gt; tab:&lt;br /&gt;Profile path: profilePath&lt;br /&gt;Logon script: scriptPath&lt;br /&gt;Home folder, drive: homeDrive&lt;br /&gt;Home folder, local path: homeDirectory&lt;br /&gt;&lt;br /&gt;In the &lt;strong&gt;telephones&lt;/strong&gt; tab:&lt;br /&gt;Home: homePhone&lt;br /&gt;Pager: pager&lt;br /&gt;Mobile:mobile&lt;br /&gt;Fax: facsimileTelephoneNumber&lt;br /&gt;Ip Phone: ipPhone&lt;br /&gt;Notes: Info&lt;br /&gt;&lt;br /&gt;In the &lt;strong&gt;organization&lt;/strong&gt; tab:&lt;br /&gt;Title: title&lt;br /&gt;Department: department&lt;br /&gt;Company: company&lt;br /&gt;Manager: manager&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-7555983673992638846?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/rCCuVIgwauY" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-11-21T04:23:05.679-08:00</atom:updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_vfLB9HwZd9c/SSaniqoLoOI/AAAAAAAAAII/1IrkttvRq5k/s72-c/poza.JPG" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/11/essential-ldap-attributes.html</feedburner:origLink></item><item><title>Distribution lists and managers</title><link>http://feedproxy.google.com/~r/masterplan2/~3/MlqSrI5gBqQ/distribution-lists-and-managers.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Thu, 09 Oct 2008 23:33:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-6077512179424101836</guid><description>Another 2 useful scripts:&lt;br /&gt;Find distribution lists and their managers:&lt;br /&gt;&lt;br /&gt;dsquery * -filter "(&amp;amp;(samAccountType=268435457)(managedBy=*))" -Attr sAMAccountName managedBy -Limit 0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Find all groups which have managers:&lt;br /&gt;&lt;br /&gt;dsquery * -filter "(&amp;amp;(objectclass=group)(managedBy=*))" -Attr sAMAccountName managedBy -Limit 0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-6077512179424101836?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/MlqSrI5gBqQ" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-10-09T23:34:26.250-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/10/distribution-lists-and-managers.html</feedburner:origLink></item><item><title>Allow dial in access by script</title><link>http://feedproxy.google.com/~r/masterplan2/~3/jZIwG6kkvUM/allow-dial-in-access-by-script.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Wed, 27 Aug 2008 01:53:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-2672918438095394309</guid><description>I will show you how to enable the Remote Access Service "Allow Access" permission in the Remote Access Permission of the Dial-In tab in the user's properties.&lt;br /&gt;There are 2 cases:&lt;br /&gt;1) For Windows 2000-based domains in Mixed mode or Windows 2000-based domains in Native mode that include RAS servers hosted by Microsoft Windows NT-based computers, see here &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;252398"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;252398&lt;/a&gt;&lt;br /&gt;2) For Windows 2000 domains in native mode and Windows 2003 Server mode, this is the script that will enable Dial-in access for all the users in Test OU:&lt;br /&gt;&lt;br /&gt;OUPath =&lt;span&gt;"LDAP://OU=Test,DC=test,DC=com"&lt;/span&gt;&lt;br /&gt;Set CNUsers = GetObject (OUPath)&lt;br /&gt;CNUsers.Filter = Array("user")&lt;br /&gt;For Each User in CNUsers&lt;br /&gt;Set objUser = GetObject("LDAP://" &amp;amp; User.DistinguishedName)&lt;br /&gt;objUser.Put "msNPAllowDialIn", True&lt;br /&gt;objUser.SetInfo&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-2672918438095394309?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/jZIwG6kkvUM" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-08-27T01:56:12.086-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/08/allow-dial-in-access-by-script.html</feedburner:origLink></item><item><title>Complete script to create users, home folders and ntfs permissions</title><link>http://feedproxy.google.com/~r/masterplan2/~3/AIgOS_r0be8/complete-script-to-create-users-home.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Thu, 17 Jul 2008 11:37:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-8173188392656967141</guid><description>Assuming that you have a file users.txt with this format:&lt;br /&gt;Last_name First_name Group Password&lt;br /&gt;This script automatically create groups in the specified ou Sales, add users to this ou and to the respective groups, give users specified passwords, assign a logon script, create and share home folders and give ntfs permissions on them....a lot of work isn't it?&lt;br /&gt;I must say that the script uses the rmtshare tool for setting shares, available for download from Microsoft.&lt;br /&gt;&lt;br /&gt;@setlocal&lt;br /&gt;@set ou=OU=Sales,DC=test,DC=com&lt;br /&gt;@set domain=test.com&lt;br /&gt;@set domainadmins=CN=Domain Admins,CN=Users,DC=test,DC=com&lt;br /&gt;@set domainusers=CN=Domain Users,CN=Users,DC=test,DC=com&lt;br /&gt;&lt;em&gt;@rem Creation of groups&lt;/em&gt;&lt;br /&gt;for /f "tokens=1,2* delims= " %%a in (users.txt) do dsadd group "CN=%%c, %ou%"&lt;br /&gt;&lt;em&gt;@rem Creation of users&lt;br /&gt;&lt;/em&gt;for /f "tokens=1,2* delims= " %%a in (users.txt) do dsadd user "CN=%%b %%a, %ou%" -upn "%%b %%a" -fn %%b -ln %%a -display "%%b %%a" -loscr Scripts\logon.bat -pwd %%d -memberof "CN=%%c, %ou%"&lt;br /&gt;&lt;em&gt;@rem Creation of personal folders (home folders)&lt;br /&gt;&lt;/em&gt;for /f "tokens=1,2* delims= " %%a in (users.txt) do md "D:\Homes\%%b %%a"&lt;br /&gt;&lt;em&gt;@rem Make shares on home directories&lt;/em&gt;&lt;br /&gt;for /f "tokens=1,2* delims= " %%a in (users.txt) do rmtshare \\%COMPUTERNAME%\"%%b %%a$" = "D:\Homes\%%b %%a"&lt;br /&gt;&lt;em&gt;@rem Grant share rights on home folders&lt;/em&gt;&lt;br /&gt;for /f "tokens=1,2* delims= " %%a in (users.txt) do rmtshare \\%COMPUTERNAME%\"%%b %%a$" /grant "%domain%\%%b %%a":CHANGE /grant "%domain%\Domain Admins":"FULL CONTROL"&lt;br /&gt;&lt;em&gt;@rem Give NTFS rights on home folders&lt;/em&gt;&lt;br /&gt;for /f "tokens=1,2* delims= " %%a in (users.txt) do cacls "D:\Homes\%%b %%a" /T /C /G "%domain%\%%b %%a":C "%domain%\Domain Admins":F&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-8173188392656967141?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/AIgOS_r0be8" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-07-17T11:53:29.181-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/07/complete-script-to-create-users-home.html</feedburner:origLink></item><item><title>Rename all users from AD</title><link>http://feedproxy.google.com/~r/masterplan2/~3/KCRyh0fTcYo/rename-all-users-from-ad.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Wed, 16 Jul 2008 11:53:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-5519984051338884007</guid><description>This was one problem I faced a time ago. I must change all active directory users name from "name surname" to "name.surname". The magic was done for me by this little vbscript which has done in seconds the amazing job. All users were in the organizational unit Test.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&lt;span&gt;OUPath = LDAP://OU=Test,DC=test,DC=com&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Set CNUsers = GetObject (OUPath)&lt;br /&gt;CNUsers.Filter = Array("user")&lt;br /&gt;For Each User in CNUsers    &lt;br /&gt;NewNameFormat = User.givenName &amp;amp; "." &amp;amp; User.sn    &lt;br /&gt;Set objUser = GetObject("LDAP://" &amp;amp; User.DistinguishedName)    &lt;br /&gt;objUser.SamAccountName = NewNameFormat    &lt;br /&gt;objUser.UserPrincipalName = NewNameFormat    &lt;br /&gt;objUser.SetInfo&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-5519984051338884007?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/KCRyh0fTcYo" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-07-16T12:02:08.322-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/07/rename-all-users-from-ad.html</feedburner:origLink></item><item><title>Security and distribution groups</title><link>http://feedproxy.google.com/~r/masterplan2/~3/mG3IknmBn_o/security-and-distribution-groups.html</link><category>One line script</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Wed, 16 Jul 2008 11:39:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-1248435158292543567</guid><description>Useful one-step scripts:&lt;br /&gt;&lt;br /&gt;- Show the creation date of all groups from AD forest:&lt;br /&gt;dsquery * forestroot -filter "(&amp;amp;(objectClass=Group))" -attr name whenCreated description -limit 0&lt;br /&gt;&lt;br /&gt;- Show the date of modification of all groups from AD forest:&lt;br /&gt;dsquery * forestroot -filter "(&amp;amp;(objectClass=Group))" -attr name whenChanged description -limit 0&lt;br /&gt;&lt;br /&gt;- Show the creation date of all users from AD forest:&lt;br /&gt;dsquery * forestroot -filter "(&amp;amp;(objectClass=User))" -attr name whenCreated description -limit 0&lt;br /&gt;&lt;br /&gt;- Show all distribution groups mail enabled from AD forest&lt;br /&gt;dsuery * forestroot -filter "(&amp;amp;(samAccountType=268435457)(mail=*))" -limit 0&lt;br /&gt;&lt;br /&gt;- Show all distribution groups without mail enabled from AD forest&lt;br /&gt;dsquery * forestroot -filter "(&amp;amp;(samAccountType=268435457)(!mail=*))" -limit 0&lt;br /&gt;&lt;br /&gt;- Show all security groups mail enabled from AD forest&lt;br /&gt;dsquery * forestroot -filter "(&amp;amp;(samAccountType=268435456)(mail=*))" -limit 0&lt;br /&gt;&lt;br /&gt;- Show all security groups without mail enabled from AD forest&lt;br /&gt;dsquery * forestroot -filter "(&amp;amp;(samAccountType=268435456)(!mail=*))" -limit 0&lt;br /&gt;&lt;br /&gt;- Show membership of a group named "XXX"&lt;br /&gt;dsget group "XXX" -members -expand&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-1248435158292543567?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/mG3IknmBn_o" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2009-02-07T12:30:33.489-08:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/07/security-and-distribution-groups.html</feedburner:origLink></item><item><title>Filter information from event log</title><link>http://feedproxy.google.com/~r/masterplan2/~3/mB7z9rjsRis/filter-information-from-event-log.html</link><author>noreply@blogger.com (Masterplan)</author><pubDate>Sat, 12 Jul 2008 07:43:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-939429984307427087</guid><description>The following script will show when specific events logged in event viewer happened. This helped me find out if a computer was shut down daily during a month. For this, i searched for specific event id 6009 in the System event log and put in a text file the date and time when it was logged:&lt;br /&gt;&lt;br /&gt;Set dtmDate = CreateObject("WbemScripting.SWbemDateTime")&lt;br /&gt;strComputer = "."&lt;br /&gt;Set objWMIService = GetObject("winmgmts:" _&amp;amp; "{impersonationLevel=impersonate}!\\" &amp;amp; strComputer &amp;amp; "\root\cimv2")&lt;br /&gt;Set colItems = objWMIService.ExecQuery _("Select * from Win32_NTLogEvent Where Logfile = 'System' and " _&amp;amp; "EventCode = '6009'")&lt;br /&gt;For Each objItem in colItems&lt;br /&gt;Wscript.Echo "Computer Name: " &amp;amp; objItem.ComputerName&lt;br /&gt;Wscript.Echo "Event Code: " &amp;amp; objItem.EventCode&lt;br /&gt;dtmDate.Value = objItem.TimeWritten&lt;br /&gt;dtmTimeWritten = dtmDate.GetVarDate&lt;br /&gt;Wscript.Echo "Time Written: " &amp;amp; dtmTimeWritten&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-939429984307427087?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/mB7z9rjsRis" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-07-12T07:48:55.228-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/07/filter-information-from-event-log.html</feedburner:origLink></item><item><title>Find users who are local admins</title><link>http://feedproxy.google.com/~r/masterplan2/~3/0jvXRXcAMEM/find-users-who-are-local-admins.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Sat, 12 Jul 2008 07:38:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-5996278960024425139</guid><description>Here is a Visual Basic script, which will audit what accounts/groups are members of the local administrator group. I put it as a a logon script. It puts in a shared folder named public a text file with the computer name and users which are in the local administrators group and are not domain admins or administrator:&lt;br /&gt;&lt;br /&gt;Option Explicit&lt;br /&gt;Const ForAppending = 8&lt;br /&gt;Dim objGroup, strComputer, objMember, WshNetwork, objRecordSet, objFSO, objFile, strFileName&lt;br /&gt;strComputer = "."&lt;br /&gt;Set WshNetwork = WScript.CreateObject("WScript.Network")&lt;br /&gt;WScript.Echo "Computer Name = " &amp;amp; WshNetwork.ComputerName&lt;br /&gt;Set objGroup = GetObject("WinNT://" &amp;amp; strComputer &amp;amp; "/Administrators,group")&lt;br /&gt;For Each objMember In objGroup.Members&lt;br /&gt;If objMember.Name &lt;&gt; "Administrator" and objMember.Name &lt;&gt; "Domain Admins"&lt;br /&gt;ThenSet objFSO = CreateObject("Scripting.FileSystemObject")&lt;br /&gt;strFileName = "C:\Public\" &amp;amp; WshNetwork.ComputerName &amp;amp; ".txt"&lt;br /&gt;Set objFile = objFSO.OpenTextFile(strFileName, ForAppending, True)&lt;br /&gt;objFile.WriteLine (objMember.Name)&lt;br /&gt;objFile.Close&lt;br /&gt;End If&lt;br /&gt;Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-5996278960024425139?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/0jvXRXcAMEM" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-07-12T07:42:54.949-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/07/find-users-who-are-local-admins.html</feedburner:origLink></item><item><title>Add users from a file to a specific OU</title><link>http://feedproxy.google.com/~r/masterplan2/~3/KHVCErlwUXE/add-users-from-file-to-specific-ou.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Sat, 12 Jul 2008 07:26:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-1605618412426726870</guid><description>Hi all,&lt;br /&gt;&lt;br /&gt;Today i will post a bunch of useful scripts for a system administrator. This is the one about adding a users from a text file (users.txt) in which you have the first and last name of the users. The users will be created with the password P@ssw0rd.&lt;br /&gt;&lt;br /&gt;for /F "tokens=1,2 delims= " %%i in (users.txt)&lt;br /&gt;do dsadd user "cn=%%i %%j,ou=Sales,dc=test,dc=ro" -samid "%%i %%j" -upn "%%i %%j"@test.ro -fn "%%i" -ln "%%j" -display "%%i %%j" -pwd P@ssw0rd -disabled no&lt;br /&gt;&lt;br /&gt;The script can be easily customized, For example, if in the users.txt you have the first name, last name and a description of every user, the script will look like this:&lt;br /&gt;&lt;br /&gt;for /F "tokens=1,2,3 delims= " %%i in (users.txt) do dsadd user "cn=%%i %%j,ou=Sales,dc=test,dc=ro" -samid "%%i %%j" -upn "%%i %%j"@test.ro -fn "%%i" -ln "%%j" -display "%%i %%j" -pwd P@ssw0rd -disabled no -desc=%%k&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:0;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-1605618412426726870?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/KHVCErlwUXE" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-07-12T07:36:42.702-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/07/add-users-from-file-to-specific-ou.html</feedburner:origLink></item><item><title>Find Exchange Server for a given account</title><link>http://feedproxy.google.com/~r/masterplan2/~3/cS-LjNoQAKM/find-exchange-server-for-given-account.html</link><category>Scripts</category><author>noreply@blogger.com (Masterplan)</author><pubDate>Mon, 26 May 2008 10:02:00 PDT</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-722266276770253235.post-1188165541110160049</guid><description>Set User = GetObject(&lt;a href="ldap://CN=Username,CN=Users,DC=test,DC=com/"&gt;LDAP://CN=Username,CN=Users,DC=test,DC=com&lt;/a&gt;)&lt;br /&gt;Server = User.msExchHomeServerName&lt;br /&gt;WScript.Echo "Exchange Server is " &amp;amp; Server&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/722266276770253235-1188165541110160049?l=winmasterplan.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/masterplan2/~4/cS-LjNoQAKM" height="1" width="1"/&gt;</description><atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2008-05-26T10:03:51.472-07:00</atom:updated><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://winmasterplan.blogspot.com/2008/05/find-exchange-server-for-given-account.html</feedburner:origLink></item></channel></rss>
