<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2934643840122268150</id><updated>2012-02-16T04:21:49.021-08:00</updated><title type='text'>Ask Prasanth</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-5665310216407278248</id><published>2010-09-23T22:56:00.000-07:00</published><updated>2010-09-23T23:06:22.402-07:00</updated><title type='text'>Blue Screen of Death</title><content type='html'>&lt;span class="Apple-style-span" &gt;&lt;b&gt;Blue Screen of Death&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you have been working on computers or are just starting to use them, one of the most disturbing events that can occur is the BSOD or Blue Screen of Death. The BSOD is actually an error screen that is displayed by specific operating systems informing the user that a critical system error has occurred. The Blue Screen of Death can be found on many different types of operating systems, but is most notably infamous for occurring on Microsoft Windows Operating Systems.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Common Causes of the Blue Screen of Death Occurring\&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Not Cause&lt;/b&gt;&lt;br /&gt;1. It doesn’t occur because of operating system&lt;br /&gt;&lt;b&gt;Cause&lt;/b&gt;&lt;br /&gt;1. Including a poorly written device driver&lt;br /&gt;2. Faulty memory&lt;br /&gt;3. Incompatible DLL’s or a corrupt Registry. (3rd party software)&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;&lt;br /&gt;&lt;b&gt;Poorly written device driver:&lt;/b&gt; A device driver is usually created by a third party company to run a device such as a peripheral (printer, scanner, mouse, etc). These third party companies’ create small driver programs which make it possible for these devices to work on a specific operating system, however many times these small programs can be buggy causing incompatibility which can result in the BSOD.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;&lt;br /&gt;&lt;b&gt;Faulty memory: &lt;/b&gt;Faulty memory can occur when a computer is processing memory intensive operations. For instance, a defective or RAM can cause an operating system to encounter a problem with the memory causing the BSOD. In certain cases, heat or other conditions can cause memory components to fail causing the BSOD.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;&lt;br /&gt;&lt;b&gt;Incompatible DLL's: &lt;/b&gt;DLL's are dynamic link libraries which are part of the operating system's shared library concept. These DLL's are files that are necessary for certain programs to run or processes to take place. If a DLL is not found or there is a problem with the file, this may cause the BSOD. When a BSOD occurs due to DLL incompatibility, it is usually referred to as DLL hell. It should be noted that DLL's are loaded into the memory of a computer each and every time an application needs them. As an application is used over and over again, the chances of an incompatible DLL file occurring increases. This is why many computer users notice that a freshly installed Windows operating system is much more stable than a computer that has a copy of Windows installed for a lengthy period of time.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;&lt;br /&gt;&lt;b&gt;Corrupt Registry: &lt;/b&gt;The registry is a database that Window's operating system use to store configuration information regarding hardware and software, information used for set up and user preferences. If the registry is corrupt the BSOD may occur.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;&lt;br /&gt;&lt;b&gt;The History of the BSOD&lt;/b&gt;&lt;br /&gt;The BSOD is synonymous with Microsoft, but does occur on other types of software. For instance, the Atari Jaguar has a Blue Screen of Death and Lotus Notes has a stop error screen extremely similar to the BSOD, except in red. The Blue Screen of Death occurs on almost every operating system that Microsoft has sold including Windows 3.1, 95, 98, 2000, Windows NT, ME and XP. It should be noted that in MS Dos, a Black Screen of Death occurs and it is said that in Vista a Red Screen of Death (RSOD) occurs.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;&lt;br /&gt;&lt;b&gt;Understanding the Blue Screen of Death&lt;/b&gt;&lt;br /&gt;It should be noted that when a stop error occurs and your computer displays the Blue Screen of Death, you will also usually be able to see a message. The message might state a FILE_SYSTEM and a number: 0x00000022. Copy this number down, it can be used later to understand and determine why the error occurred. Usually you can visit Microsoft.com and input the error number into their database to find out more information, a description regarding the error and possible fixes for the error.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-5665310216407278248?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/5665310216407278248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2010/09/blue-screen-of-death.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/5665310216407278248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/5665310216407278248'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2010/09/blue-screen-of-death.html' title='Blue Screen of Death'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-8802505822433015692</id><published>2010-09-16T05:20:00.000-07:00</published><updated>2010-09-16T05:22:02.660-07:00</updated><title type='text'>Windows 2008 R2 Remote Desktop Service</title><content type='html'>&lt;strong&gt;Windows 2008 R2 Remote Desktop Service&lt;/strong&gt;&lt;br /&gt; &lt;br /&gt;The Remote Desktop Service (RDS) on windows 2008 server R2 were tested and implemented successfully;&lt;br /&gt;&lt;br /&gt;Required Parameters:          Priority Host Farm requires xx numbers of windows 2008 R2 64bit server. If the Server are installing on ESX Host, Host must support 64bit OS, All HOST Farm Servers are in Same Subnet Networking. All the host Farm servers are belongs to Domain with Admin access policies  Users Groups are defined for HOST FARM to access App from Intranet &amp; Internet&lt;br /&gt;The Windows Server 2008 R2 Remote Desktop Services (RDS) architecture consists of the following components: &lt;br /&gt;Active Directory Domain controller&lt;br /&gt;RD Session Host (RDSH) Server&lt;br /&gt;RD Connection Broker (RDCB) Server&lt;br /&gt;RD Web Access server&lt;br /&gt;RD Gateway server&lt;br /&gt;RD Licensing &lt;br /&gt; &lt;br /&gt;Active Directory Domain Deployment Scenario: On deploying windows 2008 R2 RDS, we need integrated with the active directory that include the groups policy setting and all the Remote Desktop users Roles will be resolving with the DNS. For Example: I have created a domain called Happy.com and SG-RDS-01 is the group were having 100 users and the DNS should resolving with all the Remote desktop roles were installed on windows 2008 R2 servers.&lt;br /&gt;Virtualized RD Session Host (RDSH) Server Deployment:•         &lt;br /&gt;RDSH server based on windows 2008 R2 ENT version Operating system.&lt;br /&gt;First, the RD Session Host role service must be installed (this is the basic “terminal server” system role)&lt;br /&gt;Next, the applications that are to be hosted by the RD Session Host server must be installed on the RD Session Host system.&lt;br /&gt;Finally, you must grant users or groups the required privileges to connect to the RD Session Host server and configure RD Licensing&lt;br /&gt;RDCB Server&lt;br /&gt;RDCB server based on windows 2008 R2 ENT version Operating system.&lt;br /&gt;The computer on which you install the RD Connection Broker role service must be a member of an Active Directory domain.&lt;br /&gt;RD Connection Broker extends the TS Session Broker capabilities included in Windows Server 2008 by creating a unified administrative experience for traditional session-based remote desktops and virtual machine-based remote desktops.&lt;br /&gt; RD Connection Broker supports load balancing and reconnection to existing sessions on virtual desktops, Remote Desktop sessions, and Remote App programs accessed by using Remote App and Desktop Connection.&lt;br /&gt; &lt;br /&gt;RD Gateway Server:&lt;br /&gt;Remote Desktop Gateway (RD Gateway) is a role service in the Remote Desktop Services server role included with Windows Server 2008 R2 that enables authorized remote users to connect to resources on an internal corporate or private network, from any Internet-connected device that can run the Remote Desktop Connection (RDC) client.&lt;br /&gt; &lt;br /&gt;The network resources can be Remote Desktop Session Host (RD Session Host) servers, RD Session Host servers running Remote App programs, or computers and virtual desktops with Remote Desktop enabled. RD Gateway uses the Remote Desktop Protocol (RDP) over HTTPS to establish a secure, encrypted connection between remote users on the Internet and internal network resources.&lt;br /&gt; &lt;br /&gt;An idle timeout provides the ability to reclaim resources used by inactive user sessions without affecting the user’s session or data. This helps free up resources on the RD Gateway server. After being disconnected, the user will be able to re-establish the session by using RDC.&lt;br /&gt; &lt;br /&gt;A session timeout provides the capability to periodically enforce new policies on active user connections. This ensures that any system changes to user properties, such as domain accounts, RD CAP changes, or RD RAP changes, are enforced on existing sessions.&lt;br /&gt; &lt;br /&gt;Forefront Unified Access Gateway (UAG) allows you to provide access to published Remote Apps and Remote Desktops by integrating a Remote Desktop Gateway (RD Gateway) to provide an application-level gateway for RDS services and applications&lt;br /&gt; &lt;br /&gt; RD Web Access server:&lt;br /&gt;The RD Web Access is a role service of the Remote Desktop Services role.&lt;br /&gt;The RD Web Access needs to be a Windows Server 2008 R2 machine, but does not need to have the RD Sessions Host role service installed.&lt;br /&gt;To run the RD Web Access role service, Microsoft Internet Information Services (IIS) 7.5 must/will be installed. Clients must meet the requirements for RD Web Access&lt;br /&gt; RD Licensing server:&lt;br /&gt;Remote Desktop Licensing (RD Licensing), is a role service in the Remote Desktop Services server role included with Windows Server 2008 R2.&lt;br /&gt;RD Licensing manages the Remote Desktop Services client access licenses (RDS CALs) that are required for each device or user to connect to a Remote Desktop Session Host (RD Session Host) server.&lt;br /&gt;You use Remote Desktop Licensing Manager (RD Licensing Manager) to install, issue, and track the availability of RDS CALs on a Remote Desktop license server&lt;br /&gt;The Manage RDS CALs Wizard&lt;br /&gt;In Windows Server 2008 R2, a new wizard is available in Remote Desktop Licensing Manager (RD Licensing Manager) that allows you to do the following:&lt;br /&gt;Migrate RDS CALs from one license server to another license server.&lt;br /&gt;Rebuild the RD Licensing database&lt;br /&gt; &lt;br /&gt;Remote Desktop Connection (RDC) 7.0 client&lt;br /&gt; The Remote Desktop Connection (RDC) 7.0 client update enables you to use the new Remote Desktop Services feature introduced in Windows 7 and in Windows Server 2008 R2. These features are available for clients running Windows XP Service Pack 3 (SP3), Windows Vista Service Pack 1 (SP1), and Windows Vista Service Pack 2 (SP2).&lt;br /&gt;Connecting From:&lt;br /&gt; Win7/R2&lt;br /&gt; Vista SP+&lt;br /&gt; Vista SP+&lt;br /&gt; XP SP3&lt;br /&gt; XP SP3&lt;br /&gt; XP SP2&lt;br /&gt; XP SP2&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; RDC 7.0&lt;br /&gt; RDC 7.0&lt;br /&gt; RDC 6.1&lt;br /&gt; RDC 7.0&lt;br /&gt; RDC 6.1&lt;br /&gt; RDC 6.1&lt;br /&gt; RDC 5.2&lt;br /&gt; &lt;br /&gt;Access to Remote Desktop sessions&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; &lt;br /&gt;Access to Remote App programs&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; no&lt;br /&gt; &lt;br /&gt;Access to personal desktop by using RD Connection Broker&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; &lt;br /&gt;Access to virtual desktop pools by using RD Connection Broker&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; &lt;br /&gt;Launch applications and desktops from Remote App and Desktop Connection on client&lt;br /&gt; yes&lt;br /&gt; no&lt;br /&gt; no&lt;br /&gt; no&lt;br /&gt; no&lt;br /&gt; no&lt;br /&gt; no&lt;br /&gt; &lt;br /&gt;Launch Remote App programs, virtual desktop, and session-based desktop from RD Web Access&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; no&lt;br /&gt; &lt;br /&gt;Status &amp; disconnect system tray icon.&lt;br /&gt; yes&lt;br /&gt; yes&lt;br /&gt; no&lt;br /&gt; no&lt;br /&gt; no&lt;br /&gt; no&lt;br /&gt; no&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;RDC Client Single Sign-On&lt;br /&gt; &lt;br /&gt;Single sign-on is an authentication method that allows users with a domain account to log on once to a client computer by using a password, and then gain access to remote servers without being asked for their credentials again.&lt;br /&gt; &lt;br /&gt;Single sign-on for remote connections from a computer running Windows 7, Windows Vista, or Windows XP with Service Pack 3 to an RD Session Host server running Windows Server 2008 R2 or Windows Server 2008&lt;br /&gt; &lt;br /&gt;Ensure that the user accounts that are used for logging on have appropriate rights to log on to both the RD Session Host server and the client computer.&lt;br /&gt; Both the client computer and the RD Session Host server must be joined to a domain.&lt;br /&gt;Configure authentication on the RD Session Host server.&lt;br /&gt;Configure the client computer to allow default credentials to be used for logging on to the specified RD Session Host servers&lt;br /&gt; &lt;br /&gt;Forefront UAG adds single sign-on functionality for RDS. The credentials provided by the user for session login can be used to authenticate to published Remote Apps and Desktop Connections&lt;br /&gt; &lt;br /&gt;You can provide access to all Remote Desktops and Remote Apps from a single Forefront UAG portal.&lt;br /&gt; Requirements:&lt;br /&gt; To take advantage of the new Web SSO feature, the client must be running Remote Desktop Connection (RDC) 7.0. In order for Web SSO to work:&lt;br /&gt;The connection in Remote App and Desktop Connections must have an ID. By default, it is set to the Fully Qualified Domain Name (FQDN) of the RD Connection Broker server in case of RD Connection Broker mode. In RD Session mode, it is set to the FQDN of the RD Web Access server.&lt;br /&gt;Remote App programs must be digitally signed using a Server Authentication certificate [Secure Sockets Layer (SSL) certificate]. The certificate Enhanced Key Usage section must contain ‘Server Authentication (1.3.6.1.5.5.7.3.1)’.&lt;br /&gt;Client operating systems must trust the certificate with which the Remote App programs are signed. – (Kerberos certification)&lt;br /&gt;&lt;br /&gt;Ports should be open&lt;br /&gt; Kerberos Port - 88&lt;br /&gt;RDP Port - 3389&lt;br /&gt;LDAP port - 389 &lt;br /&gt;HTTPS port - 443&lt;br /&gt;RDCB  RPC Port - 5504  (Centralized publishing server )&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-8802505822433015692?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/8802505822433015692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2010/09/windows-2008-r2-remote-desktop-service.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/8802505822433015692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/8802505822433015692'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2010/09/windows-2008-r2-remote-desktop-service.html' title='Windows 2008 R2 Remote Desktop Service'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-313432851094502088</id><published>2010-09-16T05:18:00.000-07:00</published><updated>2010-09-16T05:20:18.203-07:00</updated><title type='text'>Add Multiple Users using PS</title><content type='html'>Add Multiple Users using PS&lt;br /&gt;&lt;br /&gt;$objOU=[ADSI]“LDAP://OU=OUNAME,DC=DOMAIN,DC=com”&lt;br /&gt;$dataSource=import-csv “user.csv”&lt;br /&gt;foreach($dataRecord in $datasource) {&lt;br /&gt;$cn=$dataRecord.FirstName + ” ” + $dataRecord.LastName&lt;br /&gt;$sAMAccountName=$dataRecord.FirstName + “.” + $dataRecord.LastName&lt;br /&gt;$givenName=$dataRecord.FirstName&lt;br /&gt;$sn=$dataRecord.LastName&lt;br /&gt;$sAMAccountName=$sAMAccountName.ToLower()&lt;br /&gt;$displayName=$sn + “, ” + $givenName&lt;br /&gt;$userPrincipalName=$sAMAccountName + “Prasanth”&lt;br /&gt;$objUser=$objOU.Create(“user”,”CN=”+$cn)&lt;br /&gt;$objUser.Put(“sAMAccountName”,$sAMAccountName)&lt;br /&gt;$objUser.Put(“userPrincipalName”,$userPrincipalName)&lt;br /&gt;$objUser.Put(“displayName”,$displayName)&lt;br /&gt;$objUser.Put(“givenName”,$givenName)&lt;br /&gt;$objUser.Put(“sn”,$sn)&lt;br /&gt;$objUser.SetInfo()&lt;br /&gt;$objUser.SetPassword(“Password”)&lt;br /&gt;$objUser.psbase.InvokeSet(“AccountDisabled”,$false)&lt;br /&gt;$objUser.SetInfo()&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-313432851094502088?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/313432851094502088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2010/09/add-multiple-users-using-ps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/313432851094502088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/313432851094502088'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2010/09/add-multiple-users-using-ps.html' title='Add Multiple Users using PS'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-2198273555060161017</id><published>2009-12-03T23:31:00.000-08:00</published><updated>2009-12-03T23:35:14.334-08:00</updated><title type='text'>AD Command's</title><content type='html'>&lt;span style="font-size:78%;"&gt;FSMO Roles ntdsutilroles Connections "Connect to server %logonserver%" Quit "selectOperation Target" "List roles for conn server" Quit Quit Quit[JDH: This is really a series of steps, not a single commandexpression]&lt;br /&gt;Domain Controllers Nltest /dclist:%userdnsdomain%&lt;br /&gt;Domain Controller IP Configuration for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do psexec \\%i ipconfig /all&lt;br /&gt;Stale computer accounts dsquery computer domainroot -stalepwd 180 -limit 0&lt;br /&gt;Stale user accounts dsquery user domainroot -stalepwd 180 -limit 0&lt;br /&gt;Disabled user accounts dsquery user domainroot -disabled -limit 0&lt;br /&gt;AD Database disk usage for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do dir \\%i\admin$\ntds&lt;br /&gt;Global Catalog Servers from DNS dnscmd %logonserver% /enumrecords %userdnsdomain% _tcp  find /i "3268"&lt;br /&gt;Global Catalog Servers from AD dsquery * "CN=Configuration,DC=forestRootDomain" -filter&lt;br /&gt;"(&amp;amp;(objectCategory=nTDSDSA)(options:1.2.840.113556.1.4.803:=1))"Users with no logon script dsquery * domainroot -filter"(&amp;amp;(objectCategory=Person)(objectClass=User)(!scriptPath=*))"-limit 0 -attr sAMAccountName sn givenName pwdLastSet distinguishedName&lt;br /&gt;User accounts with no pwd required dsquery * domainroot -filter "(&amp;amp;(objectCategory=Person)(objectClass=User)(userAccountControl:1.2.840.113556.1.4.803:=32))"&lt;br /&gt;User accounts with no pwd expiry dsquery * domainroot -filter"(&amp;amp;(objectCategory=Person)(objectClass=User)(userAccountControl:1.2.840.113556.1.4.803:=65536))"&lt;br /&gt;User accounts that are disabled dsquery * domainroot -filter "(&amp;amp;(objectCategory=Person)(objectClass=User)(userAccountControl:1.2.840.113556.1.4.803:=2))"&lt;br /&gt;DNS Information for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do dnscmd %i /info&lt;br /&gt;DNS Zone Detailed information dnscmd /zoneinfo %userdnsdomain%&lt;br /&gt;Garbage Collection and tombstone dsquery * "cn=Directory Service,cn=WindowsNT,cn=Services,cn=Configuration,DC=forestRootDomain" -attrgarbageCollPeriod tombstoneLifetime&lt;br /&gt;Netsh authorised DHCP Servers netsh dhcp show server&lt;br /&gt;DSQuery authorised DHCP Servers Dsquery * "cn=NetServices,cn=Services,cn=Configuration, DC=forestRootDomain" -attr dhcpServers&lt;br /&gt;DHCP server information netsh dhcp server \\DHCP_SERVER show all&lt;br /&gt;DHCP server dump netsh dhcp server \\DHCP_SERVER dumpWINS serer information Netsh wins server \\WINS_SERVER dump&lt;br /&gt;Group Policy Verification Tool gpotool.exe /checkacl /verbose&lt;br /&gt;AD OU membership dsquery computer -limit 0&lt;br /&gt;AD OU membership dsquery user -limit 0&lt;br /&gt;List Service Principal Names for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do setspn -L %i&lt;br /&gt;Compare DC Replica Object Count dsastat ?s:DC1;DC2;… ?b:Domain ?gcattrs:objectclass ?p:999&lt;br /&gt;Check AD ACLs acldiag dc=domainTree&lt;br /&gt;NTFRS Replica Sets for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do ntfrsutl sets %i&lt;br /&gt;NTFRS DS View for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do ntfrsutl ds %i&lt;br /&gt;Domain Controllers per site Dsquery * "CN=Sites,CN=Configuration,DC=forestRootDomain" -filter (objectCategory=Server)&lt;br /&gt;DNS Zones in AD for /f %i in (’dsquery server -o rdn’) do Dsquery * -s %i domainroot -filter (objectCategory=dnsZone)&lt;br /&gt;Enumerate DNS Server Zones for /f %i in (’dsquery server -o rdn’) do dnscmd %i /enumzones&lt;br /&gt;Subnet information Dsquery subnet ?limit 0&lt;br /&gt;List Organisational Units Dsquery OU&lt;br /&gt;ACL on all OUs For /f "delims=" %i in (’dsquery OU’) do acldiag %i&lt;br /&gt;Domain Trusts nltest /domain_trusts /v&lt;br /&gt;Print DNS Zones dnscmd DNSServer /zoneprint DNSZone&lt;br /&gt;Active DHCP leases For /f %i in (DHCPServers.txt) do for /f "delims=- " %j in (’"netshdhcp server \\%i show scope  find /i "active""’) do netsh dhcp server\\%i scope %j show clientsv5&lt;br /&gt;DHCP Server Active Scope Info For /f %i in (DHCPServers.txt) do netsh dhcp server \\%i show scope  find /i "active"&lt;br /&gt;Resolve DHCP clients hostnames for /f "tokens=1,2,3 delims=," %i in (Output from ‘Find Subnets fromDHCP clients’) do @for /f "tokens=2 delims=: " %m in (’"nslookup %j find /i "Name:""’) do echo %m,%j,%k,%i&lt;br /&gt;Find two online PCs per subnet Echo. &gt; TwoClientsPerSubnet.txt &amp;amp; for /f "tokens=1,2,3,4delims=, " %i in (’"find /i "pc" ‘Output from Resolve DHCP clientshostnames’"’) do for /f "tokens=3 skip=1 delims=: " %m in (’"Find /i /c"%l" TwoClientsPerSubnet.txt"’) do If %m LEQ 1 for /f %p in (’"ping -n1 %i  find /i /c "(0% loss""’) do If %p==1 Echo %i,%j,%k,%l&lt;br /&gt;AD Subnet and Site Information dsquery * "CN=Subnets,CN=Sites,CN=Configuration,DC=forestRootDomain" -attr cn siteObject description location&lt;br /&gt;AD Site Information dsquery * "CN=Sites,CN=Configuration,DC=forestRootDomain" -attr cn description location -filter (objectClass=site)&lt;br /&gt;Printer Queue Objects in AD dsquery * domainroot -filter "(objectCategory=printQueue)" -limit 0&lt;br /&gt;Group Membership with user details dsget group "groupDN" -members  dsget user -samid -fn -mi -ln -display -empid -desc -office -tel -email -title -dept -mgr&lt;br /&gt;Total DHCP Scopes find /i "subnet" "Output from DHCP server information"  find /i "subnet"&lt;br /&gt;Site Links and Cost dsquery * "CN=Sites,CN=Configuration,DC=forestRootDomain" -attr cn costdescription replInterval siteList -filter (objectClass=siteLink)&lt;br /&gt;Time gpresult timethis gpresult /v&lt;br /&gt;Check time against Domain w32tm /monitor /computers:ForestRootPDC&lt;br /&gt;Domain Controller Diagnostics dcdiag /s:%logonserver% /v /e /c&lt;br /&gt;Domain Replication Bridgeheads repadmin /bridgeheads&lt;br /&gt;Replication Failures from KCC repadmin /failcacheInter-site Topology servers per site Repadmin /istg * /verbose&lt;br /&gt;Replication latency repadmin /latency /verbose&lt;br /&gt;Queued replication requests repadmin /queue *&lt;br /&gt;Show connections for a DC repadmin /showconn *&lt;br /&gt;Replication summary Repadmin /replsummary&lt;br /&gt;Show replication partners repadmin /showrepl * /all&lt;br /&gt;All DCs in the forest repadmin /viewlist *&lt;br /&gt;ISTG from AD attributes dsquery * "CN=NTDS Site Settings,CN=siteName,CN=Sites,CN=Configuration,DC=forestRootDomain" -attr interSiteTopologyGenerator&lt;br /&gt;Return the object if KCC Intra/Inter site is disabled for each site Dsquery site  dsquery * -attr * -filter "((Options:1.2.840.113556.1.4.803:=1)(Options:1.2.840.113556.1.4.803:=16))"&lt;br /&gt;Find all connection objects dsquery * forestRoot -filter (objectCategory=nTDSConnection) ?attr distinguishedName fromServer whenCreated displayName&lt;br /&gt;Find all connection schedules adfind -b "cn=Configuration,dc=qraps,dc=com,dc=au" -f "objectcategory=ntdsConnection" cn Schedule -csv&lt;br /&gt;Software Information for each server for /f %i in (Output from ‘Domain Controllers’) do psinfo \\%i &amp;amp;filever \\%i\admin$\explorer.exe \\%i\admin$\system32\vbscript.dll\\%i\admin$\system32\kernel32.dll \\%i\admin$\system32\wbem\winmgmt.exe\\%i\admin$\system32\oleaut32.dllCheck Terminal Services Delete Temp on Exit flag For /f %i in (Output from ‘Domain Controllers’) do Reg query"\\%i\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TerminalServer" /v DeleteTempDirsOnExit&lt;br /&gt;For each XP workstation, query the current site and what Group Policy info @dsquery * domainroot -filter"(&amp;amp;(objectCategory=Computer)(operatingSystem=Windows XPProfessional))" -limit 0 -attr cn &gt; Workstations.txt &amp;amp; @For /f%i in (Workstations.txt) do @ping %i -n 1 &gt;NUL &amp;amp; @if ErrorLevel0 If NOT ErrorLevel 1 @Echo %i &amp;amp; for /f "tokens=3" %k in (’"regquery "\\%i\hklm\software\microsoft\windows\currentversion\grouppolicy\history" /v DCName  Find /i "DCName""’) do @for /f %m in(’"nltest /server:%i /dsgetsite  find /i /v "completedsuccessfully""’) do @echo %i,%k,%m&lt;br /&gt;Information on existing GPOs dsquery * "CN=Policies,CN=System,domainRoot" -filter"(objectCategory=groupPolicyContainer)" -attr displayName cnwhenCreated gPCFileSysPath&lt;br /&gt;Copy all Group Policy .pol files for /f "tokens=1-8 delims=\" %i in (’dir /b /s\\%userdnsdomain%\sysvol\%userdnsdomain%\policies\*.pol’) do @echo copy\\%i\%j\%k\%l\%m\%n\%o %m_%n.pol&lt;br /&gt;Domain Controller Netlogon entries for /f %i in (’dsquery server /o rdn’) do echo %i &amp;amp; reg query\\%i\hklm\system\currentcontrolset\services\netlogon\parameters&lt;br /&gt;WINS Statistics for /f "tokens=1,2 delims=," %i in (WINSServers.txt) do netsh wins server \\%i show statistics&lt;br /&gt;WINS Record counts per server for /f "tokens=1,2 delims=," %i in (WINSServers.txt) do netsh wins server \\%i show reccount %iWINS Server Information for /f "tokens=2 delims=," %i in (WINSServers.txt) do netsh wins server \\%i show info&lt;br /&gt;WINS Server Dump for /f "tokens=2 delims=," %i in (WINSServers.txt) do netsh wins server \\%i dump&lt;br /&gt;WINS Static Records per Server netsh wins server \\LocalWINSServer show database servers={} rectype=1&lt;br /&gt;Find policy display name given the GUID dsquery * "CN=Policies,CN=System,DC=domainRoot" -filter (objectCategory=groupPolicyContainer) -attr Name displayName&lt;br /&gt;Find empty groups dsquery * -filter "&amp;amp;(objectCategory=group)(!member=*)" -limit 0-attr whenCreated whenChanged groupType sAMAccountNamedistinguishedName memberOf&lt;br /&gt;Find remote NIC bandwidth wmic /node:%server% path Win32_PerfRawData_Tcpip_NetworkInterface GET Name,CurrentBandwidth&lt;br /&gt;Find remote free physical memory wmic /node:%Computer% path Win32_OperatingSystem GET FreePhysicalMemory&lt;br /&gt;Find remote system information SystemInfo /s %Computer%&lt;br /&gt;Disk statistics, including the number of files on the filesystem chkdsk /i /c&lt;br /&gt;Query IIS web sites iisweb /s %Server% /query "Default Web Site"&lt;br /&gt;Check port state and connectivity portqry -n %server% -e %endpoint% -v&lt;br /&gt;Forest/Domain Functional Levels ldifde -d cn=partitions,cn=configuration,dc=%domain% -r"((systemFlags=3)(systemFlags=-2147483648))" -lmsds-behavior-version,dnsroot,ntmixeddomain,NetBIOSName -p subtree -fcon&lt;br /&gt;Forest/Domain Functional Levels dsquery * cn=partitions,cn=configuration,dc=%domain% -filter"((systemFlags=3)(systemFlags=-2147483648))" -attrmsDS-Behavior-Version Name dnsroot ntmixeddomain NetBIOSName&lt;br /&gt;Find the parent of a process wmic path Win32_Process WHERE Name=’notepad.exe’ GET Name,ParentProcessId&lt;br /&gt;Lookup SRV records from DNS nslookup -type=srv _ldap._tcp.dc._msdcs.{domainRoot}&lt;br /&gt;Find when the AD was installed dsquery * cn=configuration,DC=forestRootDomain -attr whencreated -scope base&lt;br /&gt;Enumerate the trusts from the specified domain dsquery * "CN=System,DC=domainRoot" -filter "(objectClass=trustedDomain)" -attr trustPartner flatName&lt;br /&gt;Find a DC for each trusted domain for /f "skip=1" %i in (’"dsquery * CN=System,DC=domainRoot -filter(objectClass=trustedDomain) -attr trustPartner"’) do nltest /dsgetdc:%i&lt;br /&gt;Check the notification packages installed on all DCs for /f %i in (’dsquery server /o rdn’) do @for /f "tokens=4" %m in(’"reg query\\%i\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa /v"Notification Packages"  find /i "Notification""’) do @echo %i,%m&lt;br /&gt;List ACLs in SDDL format setacl -on %filepath% -ot file -actn list -lst f:sddl&lt;br /&gt;Find out if a user account is currently enabled or disabled dsquery user DC=%userdnsdomain:.=,DC=% -name %username%  dsget user -disabled -dn&lt;br /&gt;Find servers in the domain dsquery * domainroot -filter "(&amp;amp;(objectCategory=Computer)(objectClass=Computer)(operatingSystem=*Server*))" -limit 0&lt;br /&gt;Open DS query window rundll32 dsquery,OpenQueryWindow&lt;br /&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-2198273555060161017?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/2198273555060161017/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/12/ad-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/2198273555060161017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/2198273555060161017'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/12/ad-commands.html' title='AD Command&apos;s'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-3628029326206631714</id><published>2009-07-27T09:16:00.000-07:00</published><updated>2009-07-27T09:17:34.530-07:00</updated><title type='text'>SRV Records</title><content type='html'>&lt;span style="font-size:78%;"&gt;A quick tip to verify the SRV records of the Active Directory&lt;br /&gt;SRV records play an important role for domain controllers in the Active Directory domain. It is not possible for a client computer, for a service, and for an application to know the location of a domain controller without the SRV records. Client computers (Winlogon Service) always query DNS Server to find the IP Address of the domain controller. You can follow the simple steps to ensure SRV records of a domain controller are registered in the DNS Server:&lt;br /&gt;Method 1: Using NSLOOKUP Command&lt;br /&gt;Steps:&lt;br /&gt;Open Command Prompt&lt;br /&gt;Type NSLOOKUP and hit enter&lt;br /&gt;Type Set Type=all and press enter&lt;br /&gt;At NSLOOKUP prompt, type _LDAP._TCP.DC.MSDCS.Domain_Name.com and hit enter.&lt;br /&gt;The above query to the DNS Server will return all the domain controllers in the domain name Domain_Name.com.&lt;br /&gt;Method 2: Using Ping Command:&lt;br /&gt;You can also use the Ping Utility to verify the existence of a host or SRV Record in DNS Server. You need to know the exact location of the SRV records. As an example, if you ping the above SRV record, the ping will return the IP Address for one of the domain controllers in the domain.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-3628029326206631714?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/3628029326206631714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/07/srv-records.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/3628029326206631714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/3628029326206631714'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/07/srv-records.html' title='SRV Records'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-2084626613280167881</id><published>2009-06-14T09:46:00.000-07:00</published><updated>2009-06-14T09:50:19.818-07:00</updated><title type='text'>To customize the Windows 7 logon screen</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:78%;"&gt;To set a custom picture, place a JPG named backgroundDefault.jpg in the %windir%\system32\oobe\info\backgrounds folder. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:78%;"&gt;Now go to the registry and navigate to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background. There should be a DWORD value named OEMBackground (create it if it's missing).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:78%;"&gt;Set the value to 1 and click OK.&lt;br /&gt;Now when you log off or switch users the new background picture will be displayed.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:78%;"&gt;Note:  No reboot is necessary.&lt;br /&gt;You can also place custom files in the backgrounds folder with the name background&lt;resolution&gt; to have different pictures for different resolutions. For example, a 1024×768 resolution picture should be save as background1024x768.jpg.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-2084626613280167881?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/2084626613280167881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/06/to-customize-windows-7-logon-screen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/2084626613280167881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/2084626613280167881'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/06/to-customize-windows-7-logon-screen.html' title='To customize the Windows 7 logon screen'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-5747489729118974688</id><published>2009-06-13T08:37:00.001-07:00</published><updated>2009-06-13T08:53:18.503-07:00</updated><title type='text'>Terminal Services Configuration</title><content type='html'>&lt;span style="font-size:78%;"&gt;Terminal Services Configuration&lt;br /&gt;You can configure new connections for Terminal Services, modify the settings of existing connections, and delete connections by using the Terminal Services Configuration tool (TSCC.msc) or Group Policy (gpedit.msc) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;To specify a maximum number of sessions that can connect to the server&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=2934643840122268150&amp;amp;postID=5747489729118974688#BKMK_GP"&gt;&lt;span style="font-size:78%;"&gt;Using Group Policies (best practice)&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=2934643840122268150&amp;amp;postID=5747489729118974688#BKMK_TSC"&gt;&lt;span style="font-size:78%;"&gt;Using Terminal Services Configuration&lt;/span&gt;&lt;/a&gt;&lt;a id="BKMK_GP"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Using Group Policies (best practice)&lt;br /&gt;Open Group Policy.&lt;br /&gt;In Computer Configuration, Administrative Templates, Windows Components, Terminal Services, double-click the Limit number of connections setting, and then click Enabled.&lt;br /&gt;In the TS Maximum Connections allowed box, type the maximum number of connections you want to allow, and then click OK.&lt;br /&gt;Important&lt;br /&gt;You should thoroughly test any changes you make to Group Policy settings before applying them to users or computers. For more information on testing policy settings, see &lt;/span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl01" onclick="javascript:Track('ctl00_MTContentSelector1_mainContentContainer_ctl00ctl00_MTContentSelector1_mainContentContainer_ctl01',this);" href="http://technet.microsoft.com/en-us/library/cc775741(WS.10).aspx"&gt;&lt;span style="font-size:78%;"&gt;Resultant Set of Policy&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;.&lt;br /&gt;Note&lt;br /&gt;Use the above procedure to configure the local Group Policy object. To change a policy for a domain or an organizational unit, you must log on to the primary domain controller as an Administrator. Then, you must invoke Group Policy by using the Active Directory Users and Computers snap-in.&lt;/span&gt;&lt;a id="BKMK_TSC"&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Using Terminal Services Configuration&lt;br /&gt;Open Terminal Services Configuration.&lt;br /&gt;In the console tree, click Connections.&lt;br /&gt;In the details pane, right-click the connection for which you want to specify a maximum number of sessions, and then click Properties.&lt;br /&gt;On the Network Adapter tab, click Maximum connections, type the maximum number of sessions that can connect to the server, and then click Apply.&lt;br /&gt;Notes&lt;br /&gt;To open Terminal Services Configuration, click Start, click Control Panel, double-click Administrative Tools, and then double-click Terminal Services Configuration.&lt;br /&gt;To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using Run as to perform this procedure. For more information, see &lt;/span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl02" onclick="javascript:Track('ctl00_MTContentSelector1_mainContentContainer_ctl00ctl00_MTContentSelector1_mainContentContainer_ctl02',this);" href="http://technet.microsoft.com/en-us/library/cc785098(WS.10).aspx"&gt;&lt;span style="font-size:78%;"&gt;Default local groups&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;, &lt;/span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl03" onclick="javascript:Track('ctl00_MTContentSelector1_mainContentContainer_ctl00ctl00_MTContentSelector1_mainContentContainer_ctl03',this);" href="http://technet.microsoft.com/en-us/library/cc756898(WS.10).aspx"&gt;&lt;span style="font-size:78%;"&gt;Default groups&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;, and &lt;/span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl04" onclick="javascript:Track('ctl00_MTContentSelector1_mainContentContainer_ctl00ctl00_MTContentSelector1_mainContentContainer_ctl04',this);" href="http://technet.microsoft.com/en-us/library/cc780931(WS.10).aspx"&gt;&lt;span style="font-size:78%;"&gt;Using Run as&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;.&lt;br /&gt;Group Policy overrides the configuration set with the Terminal Services Configuration tool.&lt;br /&gt;By default, the connection is configured to allow an unlimited number of sessions to connect to the server.&lt;br /&gt;Restricting the number of sessions improves performance because fewer sessions are demanding system resources.&lt;br /&gt;Information about functional differences&lt;br /&gt;Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see &lt;/span&gt;&lt;a id="ctl00_MTContentSelector1_mainContentContainer_ctl05" onclick="javascript:Track('ctl00_MTContentSelector1_mainContentContainer_ctl00ctl00_MTContentSelector1_mainContentContainer_ctl05',this);" href="http://technet.microsoft.com/en-us/library/cc776861(WS.10).aspx"&gt;&lt;span style="font-size:78%;"&gt;Viewing Help on the Web&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-5747489729118974688?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/5747489729118974688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/06/terminal-services-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/5747489729118974688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/5747489729118974688'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/06/terminal-services-configuration.html' title='Terminal Services Configuration'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-2710529715035610562</id><published>2009-06-07T10:48:00.000-07:00</published><updated>2009-06-07T10:57:42.197-07:00</updated><title type='text'>Exchange on a cluster – How to configure SAN in VMware.</title><content type='html'>&lt;span style="font-size:78%;"&gt;It brings great pleasure to me to inform you all that I have set up a 3 way exchang ecluster on a SAN in my lab enviornment at EDS. Dont Jump to conclusions yet.The software i want to introduce to you is called &lt;/span&gt;&lt;a href="http://www.rocketdivision.com/wind.html" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;starwind&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;. Its available  &lt;a href="http://www.rocketdivision.com/wind.html"&gt;http://www.rocketdivision.com/wind.html&lt;/a&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Storage Area Network (SAN) is an architecture to attach remote computer storage devices such as disk array controllers, tape libraries and CD arrays to servers in such a way that to the operating system the devices appear as locally attached devices. Although cost and complexity is dropping, as of 2007, SANs are still uncommon outside larger enterprises.&lt;br /&gt;as defined by Wikipedia. Do browse the &lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Storage_Area_Network" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;wiki&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt; for more details.&lt;br /&gt;I used a 30 day trial of Vmware 6.0, Starwind, and Windows 2003 and Exchange 2003 obviously with SP2.&lt;br /&gt;Here is the deal.&lt;br /&gt;Install windows 2003. set up the NICs atleast 1 for the san box and install the starwind software.&lt;br /&gt;It has a good guide to get you started.do install the iscsi initiator software from from microsoft and test if the volumes bind correct.&lt;br /&gt;&lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=12cb3c1a-15d6-4585-b385-befd1319f825&amp;amp;displaylang=en" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;Microsoft iSCSI Software Initiator Version 2.04&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;Install Windows and setup the iscsi initiator software and run it.Read the guide on setting it up.Its actually simple.&lt;br /&gt;1) Go to discovery tab and add the address for the SAN box.&lt;br /&gt;2) On targets tab click logon on each connection if multiple ones are created in SAN.&lt;br /&gt;3) Ensure you select the automatically restore this connection when computer starts check box only.&lt;br /&gt;4) Go to persistent targets tab and click refresh to list the targets.&lt;br /&gt;5) Go to bound volumes/devices to bind the drives.&lt;br /&gt;That's it. Then setup the disks with drive letter and format it. Install the microsoft cluster service and if you did everything right you will have a cluster ready.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-2710529715035610562?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/2710529715035610562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/06/exchange-on-cluster-how-to-configure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/2710529715035610562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/2710529715035610562'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/06/exchange-on-cluster-how-to-configure.html' title='Exchange on a cluster – How to configure SAN in VMware.'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-6451286765043356930</id><published>2009-06-06T21:04:00.000-07:00</published><updated>2009-06-06T21:12:49.857-07:00</updated><title type='text'>To Change the Administrator / Domain  Admin Password in windows 2003 AD</title><content type='html'>&lt;p&gt;&lt;span style="font-size:78%;"&gt;Note: &lt;/span&gt;&lt;span style="font-size:78%;"&gt;The reason for that is that you need to have the local administrator's password in order to perform the following&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;Update: After some reader feedback I'm pleased to say that this procedure ALSO WORKS for Windows Server 2008 Domain Controllers. Feel free to send in your feedback. I kept the original page syntax in relation to Windows Server 2003, but you can now perform the same actions on Windows Server 2008.&lt;br /&gt;&lt;strong&gt;We Need to following Requirement:&lt;/strong&gt;&lt;br /&gt;1. Local access to the Domain Controller (DC).&lt;br /&gt;2. The Local Administrator password.&lt;br /&gt;3. Two tools provided by Microsoft in their Resource Kit: SRVANY and INSTSRV. Download them from &lt;/span&gt;&lt;a href="http://www.petri.co.il/software/srvany.zip"&gt;&lt;span style="font-size:78%;"&gt;HERE&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt; (24kb).&lt;br /&gt;Step 1&lt;br /&gt;Restart Windows 2003 in Directory Service Restore Mode.&lt;br /&gt;Note:  At startup, press F8 and choose Directory Service Restore Mode. It disables Active Directory. When the login screen appears, log on as Local Administrator. You now have full access to the computer resources, but you cannot make any changes to Active Directory.&lt;br /&gt;Step 2&lt;br /&gt;Now we are going to install SRVANY.  This utility can virtually run any programs as a service. The interesting point is that the program will have SYSTEM privileges (LSA) (as it inherits the SRVANY security descriptor), i.e. it will have full access on the system. That is more than enough to reset a Domain Admin password. You will configure SRVANY to start the command prompt (which will run the 'net user' command).&lt;br /&gt;Copy SRVANY and INSTSRV to a temporary folder, mine is called D:'temp. Copy cmd.exe to this folder too (cmd.exe is the command prompt, usually located at %WINDIR%\System32).&lt;br /&gt;Start a command prompt, point to d:\temp (or whatever you call it), and type:&lt;br /&gt;instsrv PassRecovery "d:\temp\srvany.exe"&lt;br /&gt; It is now time to configure SRVANY.&lt;br /&gt;Start Regedit, and navigate to&lt;br /&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\PassRecovery&lt;br /&gt;Create a new subkey called Parameters and add two new values:&lt;br /&gt;name: Application&lt;br /&gt;type: REG_SZ (string)&lt;br /&gt;value: d:\temp\cmd.exe&lt;br /&gt;&lt;br /&gt;name: AppParameters&lt;br /&gt;type: REG_SZ (string)&lt;br /&gt;value: /k net user administrator 123456 /domain&lt;br /&gt;Replace 123456 with the password you want. Keep in my mind that the default domain policy require complex passwords (including digits, respecting a minimal length etc) so unless you've changed the default domain policy use a complex password such as P@ssw0rd&lt;br /&gt;Now open the Services.msc (Control Panel\Administrative Tools\Services) and open the PassRecovery property tab. Check the starting mode is set to Automatic.&lt;br /&gt;Go to the Log On tab and enable the option Allow service to interact with the desktop.&lt;br /&gt;Restart Windows normally, SRVANY will run the NET USER command and reset the domain admin password.&lt;br /&gt;Step 3&lt;br /&gt;Log on with the Administrator's account and the password you've set in step #2.&lt;br /&gt;Use this command prompt to uninstall SRVANY (do not forget to do it!) by typing:&lt;br /&gt;net stop PassRecovery&lt;br /&gt; sc delete PassRecovery&lt;br /&gt;Now delete d:\temp and change the admin password if you fancy.&lt;br /&gt;Done!&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-6451286765043356930?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/6451286765043356930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/06/to-change-administrator-domain-admin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/6451286765043356930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/6451286765043356930'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/06/to-change-administrator-domain-admin.html' title='To Change the Administrator / Domain  Admin Password in windows 2003 AD'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-3851146940709506011</id><published>2009-05-02T22:41:00.000-07:00</published><updated>2009-06-02T10:47:13.191-07:00</updated><title type='text'>Windows 2008 failure Clustering Videos By John Savill</title><content type='html'>&lt;span style="font-size:78%;"&gt;One of the most useful videos I have found on the internet, for failover clustering. Thanks to John Savill for his efforts and time.&lt;br /&gt;Creating Windows Server 2008 Failover Clusters: &lt;/span&gt;&lt;a href="http://www.savilltech.com/Videos/clustercreate/ClusterCreate.wmv" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;http://www.savilltech.com/Videos/clustercreate/ClusterCreate.wmv&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;Configuring a Windows Server 2008 Failover Cluster from the command line: &lt;/span&gt;&lt;a href="http://www.savilltech.com/Videos/clustercmd/clustercmd.wmv" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;http://www.savilltech.com/Videos/clustercmd/clustercmd.wmv&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;Understanding Failover Cluster Quorum: &lt;/span&gt;&lt;a href="http://www.savilltech.com/Videos/ClusterQuorum/ClusterQuorum.wmv" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;http://www.savilltech.com/Videos/ClusterQuorum/ClusterQuorum.wmv&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;Hyper-V Quick Migration: &lt;/span&gt;&lt;a href="http://www.savilltech.com/Videos/QuickMigration/QuickMigration.wmv" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;http://www.savilltech.com/Videos/QuickMigration/QuickMigration.wmv&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;Configuring iSCSI connections from the command line: &lt;/span&gt;&lt;a href="http://www.savilltech.com/Videos/iscsicli/iscsicli.wmv" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;http://www.savilltech.com/Videos/iscsicli/iscsicli.wmv&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt;&lt;br /&gt;Failover Clustering with MELIO File System: &lt;/span&gt;&lt;a title="http://www.savilltech.com/Videos/meliofs/meliofs.wmv" href="http://www.savilltech.com/Videos/meliofs/meliofs.wmv" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;http://www.savilltech.com/Videos/meliofs/meliofs.wmv&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size:78%;"&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-3851146940709506011?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/3851146940709506011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/05/windows-2008-failure-clustering-videos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/3851146940709506011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/3851146940709506011'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/05/windows-2008-failure-clustering-videos.html' title='Windows 2008 failure Clustering Videos By John Savill'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-9183198323285430097</id><published>2008-12-28T11:12:00.000-08:00</published><updated>2009-06-02T11:18:23.813-07:00</updated><title type='text'>Short Cut keys</title><content type='html'>&lt;span style="font-size:78%;"&gt;Accessibility Options - access.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Add/Remove Programs - appwiz.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Add Hardware Wizard - hdwwiz.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Automatic Updates - wuaucpl.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Bluetooth Properties - bthprops.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Display Properties - desk.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Firewall Properties - firewall.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Game Controllers - joy.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Internet Options - inetcpl.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;iSCSI Initiator - iscsicpl.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Java Control Panel - jpicpl32.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Licensing Mode - liccpa.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Mouse Properties - main.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Network Connections - ncpa.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Network Setup Wizard - netsetup.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;ODBC Properties - odbccp32.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Power Options - powercfg.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Regional and Language Options - intl.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Sound and Audio Devices - mmsys.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Stored Passwords - keymgr.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;System Properties - sysdm.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Telephone and Modem Properties - telephon.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Time and Date Settings - timedate.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;User Accounts - nusrmgr.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Windows Security Center - wscui.cpl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Wireless Link - irprops.cpl &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-9183198323285430097?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/9183198323285430097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/06/short-cut-keys.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/9183198323285430097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/9183198323285430097'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/06/short-cut-keys.html' title='Short Cut keys'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-1980882460872221997</id><published>2008-11-28T23:59:00.000-08:00</published><updated>2009-06-02T10:41:12.008-07:00</updated><title type='text'>Performance Tunning on Windows 2003 - Reduce Event ID 2022 1055 and  2021  errors</title><content type='html'>&lt;p&gt;&lt;span style="font-size:78%;"&gt;&lt;strong&gt;Tuning of Server Service: &lt;/strong&gt;&lt;br /&gt;Click &lt;strong&gt;Start&lt;/strong&gt;, click &lt;strong&gt;Run&lt;/strong&gt;, type &lt;strong&gt;Notepad&lt;/strong&gt;, and then click &lt;strong&gt;OK&lt;/strong&gt;.&lt;br /&gt;Copy the following text, and then paste it into Notepad:&lt;br /&gt;&lt;strong&gt;Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters] "MaxFreeConnections"=dword:00001000 "MinFreeConnections"=dword:00000064 "MaxRawWorkItems"=dword:00000200 "MaxWorkItems"=dword:00002000 "MaxMpxCt"=dword:00000800&lt;br /&gt;&lt;/strong&gt;Save the file as &lt;strong&gt;.reg file&lt;/strong&gt; type, and then exit Notepad.&lt;br /&gt;In Windows Explorer, double-click the file to import these registry settings.&lt;br /&gt;&lt;strong&gt;Tuning of Workstation Service: &lt;/strong&gt;&lt;br /&gt;Click &lt;strong&gt;Start&lt;/strong&gt;, click &lt;strong&gt;Run&lt;/strong&gt;, type &lt;strong&gt;Notepad&lt;/strong&gt;, and then click &lt;strong&gt;OK&lt;/strong&gt;.&lt;br /&gt;Copy the following text, and then paste it into Notepad:&lt;br /&gt;&lt;strong&gt;Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters] "MaxCmds"=dword:00001000&lt;br /&gt;&lt;/strong&gt;Save the file as .&lt;strong&gt;reg&lt;/strong&gt; file type, and then exit Notepad.&lt;br /&gt;In Windows Explorer, double-click the file to import these registry settings.&lt;br /&gt;&lt;strong&gt;Tuning of Workstation Timeout:&lt;/strong&gt;&lt;br /&gt;Click &lt;strong&gt;Start&lt;/strong&gt;, click &lt;strong&gt;Run&lt;/strong&gt;, type &lt;strong&gt;Notepad&lt;/strong&gt;, and then click &lt;strong&gt;OK&lt;/strong&gt;.&lt;br /&gt;Copy the following text, and then paste it into Notepad:&lt;br /&gt;&lt;strong&gt;Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters] "SessTimeout"=dword:0000012c&lt;/strong&gt;&lt;br /&gt;Save the file as .&lt;strong&gt;reg&lt;/strong&gt; file type, and then exit Notepad.&lt;br /&gt;In Windows Explorer, double-click the file to import these registry settings.&lt;br /&gt;Above registry fix can be used to increase server performance and throughput.&lt;br /&gt;&lt;strong&gt;Reference Microsoft KB Article:&lt;/strong&gt;&lt;br /&gt;You cannot access the existing File Share resources on a Windows Server 2003 failover cluster &lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/961657" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;http://support.microsoft.com/kb/961657&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;How to troubleshoot Event ID 2021 and Event ID 2022 &lt;/span&gt;&lt;a href="http://support.microsoft.com/kb/317249" target="_blank"&gt;&lt;span style="font-size:78%;"&gt;http://support.microsoft.com/kb/317249&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Don’t forget to leave your comments :)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:78%;"&gt;Prasanth&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-1980882460872221997?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/1980882460872221997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/06/performance-tunning-on-windows-2003.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/1980882460872221997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/1980882460872221997'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/06/performance-tunning-on-windows-2003.html' title='Performance Tunning on Windows 2003 - Reduce Event ID 2022 1055 and  2021  errors'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-7361026398404823246</id><published>2008-11-12T23:29:00.000-08:00</published><updated>2009-06-02T10:41:12.008-07:00</updated><title type='text'>AD Network Port’s -  its mandatory</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_3xZ1QvxcRpc/SiVhbkW3C8I/AAAAAAAAAvA/RvsgtnsAcU4/s1600-h/AD+Port.JPG"&gt;&lt;img style="MARGIN: 0px 10px 10px 0px; WIDTH: 320px; FLOAT: left; HEIGHT: 205px; CURSOR: hand" id="BLOGGER_PHOTO_ID_5342783659188882370" border="0" alt="" src="http://1.bp.blogspot.com/_3xZ1QvxcRpc/SiVhbkW3C8I/AAAAAAAAAvA/RvsgtnsAcU4/s320/AD+Port.JPG" /&gt;&lt;/a&gt;&lt;br /&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/2934643840122268150-7361026398404823246?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/7361026398404823246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/04/ad-network-ports-its-mandatory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/7361026398404823246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/7361026398404823246'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/04/ad-network-ports-its-mandatory.html' title='AD Network Port’s -  its mandatory'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_3xZ1QvxcRpc/SiVhbkW3C8I/AAAAAAAAAvA/RvsgtnsAcU4/s72-c/AD+Port.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-3257042027933062655</id><published>2008-10-17T23:58:00.000-07:00</published><updated>2009-06-02T10:41:12.008-07:00</updated><title type='text'>Command Line Active Directory Query</title><content type='html'>&lt;span style="font-size:78%;"&gt;&lt;strong&gt;Domain Controllers &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Nltest /dclist:%userdnsdomain%&lt;br /&gt;&lt;strong&gt;Domain Controller IP Configuration &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do psexec &lt;a href="file://%25i/"&gt;file://%25i/&lt;/a&gt; ipconfig /all&lt;br /&gt;&lt;strong&gt;Stale computer accounts &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery computer domainroot -stalepwd 180 -limit 0&lt;br /&gt;&lt;strong&gt;Stale user accounts&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery user domainroot -stalepwd 180 -limit 0&lt;br /&gt;&lt;strong&gt;Disabled user accounts &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery user domainroot -disabled -limit 0&lt;br /&gt;&lt;strong&gt;AD Database disk usage &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do dir &lt;a href="file://%25i/admin$/ntds"&gt;file://%25i/admin$/ntds&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Global Catalog Servers from DNS &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dnscmd %logonserver% /enumrecords %userdnsdomain% _tcp find /i "3268"&lt;br /&gt;&lt;strong&gt;Global Catalog Servers from AD &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * "CN=Configuration,DC=forestRootDomain" -filter "(&amp;amp;(objectCategory=nTDSDSA)(options:1.2.840.113556.1.4.803:=1))"&lt;br /&gt;&lt;strong&gt;Users with no logon script &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * domainroot -filter"(&amp;amp;(objectCategory=Person)(objectClass=User)(!scriptPath=*))"-limit 0 -attr sAMAccountName sn givenName pwdLastSet distinguishedName&lt;br /&gt;&lt;strong&gt;User accounts with no pwd required &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * domainroot -filter "(&amp;amp;(objectCategory=Person)(objectClass=User)(userAccountControl:1.2.840.113556.1.4.803:=32))"&lt;br /&gt;&lt;strong&gt;User accounts with no pwd expiry &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * domainroot -filter"(&amp;amp;(objectCategory=Person)(objectClass=User)(userAccountControl:1.2.840.113556.1.4.803:=65536))"&lt;br /&gt;&lt;strong&gt;User accounts that are disabled &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * domainroot -filter "(&amp;amp;(objectCategory=Person)(objectClass=User)(userAccountControl:1.2.840.113556.1.4.803:=2))"DNS Information for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do dnscmd %i /info&lt;br /&gt;&lt;strong&gt;DNS Zone Detailed information &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dnscmd /zoneinfo %userdnsdomain%&lt;br /&gt;&lt;strong&gt;Garbage Collection and tombstone &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * "cn=Directory Service,cn=WindowsNT,cn=Services,cn=Configuration,DC=forestRootDomain" -attrgarbageCollPeriod tombstoneLifetime&lt;br /&gt;&lt;strong&gt;Netsh authorised DHCP Servers &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;netsh dhcp show server&lt;br /&gt;&lt;strong&gt;DSQuery authorised DHCP Servers &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Dsquery * "cn=NetServices,cn=Services,cn=Configuration, DC=forestRootDomain" -attr dhcpServers&lt;br /&gt;&lt;strong&gt;DHCP server information &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;netsh dhcp server &lt;a href="file://dhcp_server/"&gt;file://dhcp_server/&lt;/a&gt; show all&lt;br /&gt;&lt;strong&gt;DHCP server dump &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;netsh dhcp server &lt;a href="file://dhcp_server/"&gt;file://dhcp_server/&lt;/a&gt; dump&lt;br /&gt;&lt;strong&gt;WINS serer information &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Netsh wins server &lt;a href="file://wins_server/"&gt;file://wins_server/&lt;/a&gt; dump&lt;br /&gt;&lt;strong&gt;Group Policy Verification Tool &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;gpotool.exe /checkacl /verbose&lt;br /&gt;&lt;strong&gt;AD OU membership &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery computer -limit 0&lt;br /&gt;&lt;strong&gt;AD OU membership &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery user -limit 0&lt;br /&gt;&lt;strong&gt;List Service Principal Names &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do setspn -L %i&lt;br /&gt;&lt;strong&gt;Compare DC Replica Object Count &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsastat ?s:DC1;DC2;… ?b:Domain ?gcattrs:objectclass ?p:999&lt;br /&gt;&lt;strong&gt;Check AD ACLs &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;acldiag dc=domainTree&lt;br /&gt;&lt;strong&gt;NTFRS Replica Sets &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do ntfrsutl sets %i&lt;br /&gt;&lt;strong&gt;NTFRS DS View &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (’dsquery server -domain %userdnsdomain% -o rdn’) do ntfrsutl ds %i&lt;br /&gt;&lt;strong&gt;Domain Controllers per site &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Dsquery * "CN=Sites,CN=Configuration,DC=forestRootDomain" -filter (objectCategory=Server)&lt;br /&gt;&lt;strong&gt;DNS Zones in AD &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (’dsquery server -o rdn’) do Dsquery * -s %i domainroot -filter (objectCategory=dnsZone)&lt;br /&gt;&lt;strong&gt;Enumerate DNS Server Zones &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (’dsquery server -o rdn’) do dnscmd %i /enumzones&lt;br /&gt;&lt;strong&gt;Subnet information &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Dsquery subnet ?limit 0&lt;br /&gt;&lt;strong&gt;List Organisational Units &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Dsquery OU&lt;br /&gt;&lt;strong&gt;ACL on all OUs &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;For /f "delims=" %i in (’dsquery OU’) do acldiag %i&lt;br /&gt;&lt;strong&gt;Domain Trusts &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;nltest /domain_trusts /v&lt;br /&gt;&lt;strong&gt;Print DNS Zones &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dnscmd DNSServer /zoneprint DNSZone&lt;br /&gt;&lt;strong&gt;Active DHCP leases &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;For /f %i in (DHCPServers.txt) do for /f "delims=- " %j in (’"netshdhcp server &lt;a href="file://%25i/"&gt;file://%25i/&lt;/a&gt; show scope find /i "active""’) do netsh dhcp server\\%i scope %j show clientsv5&lt;br /&gt;&lt;strong&gt;DHCP Server Active Scope Info &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;For /f %i in (DHCPServers.txt) do netsh dhcp server &lt;a href="file://%25i/"&gt;file://%25i/&lt;/a&gt; show scope find /i "active"&lt;br /&gt;&lt;strong&gt;Resolve DHCP clients hostnames &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f "tokens=1,2,3 delims=," %i in (Output from ‘Find Subnets fromDHCP clients’) do @for /f "tokens=2 delims=: " %m in (’"nslookup %j find /i "Name:""’) do echo %m,%j,%k,%i&lt;br /&gt;&lt;strong&gt;Find two online PCs per subnet &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Echo. &gt; TwoClientsPerSubnet.txt &amp;amp; for /f "tokens=1,2,3,4delims=, " %i in (’"find /i "pc" ‘Output from Resolve DHCP clientshostnames’"’) do for /f "tokens=3 skip=1 delims=: " %m in (’"Find /i /c"%l" TwoClientsPerSubnet.txt"’) do If %m LEQ 1 for /f %p in (’"ping -n1 %i find /i /c "(0% loss""’) do If %p==1 Echo %i,%j,%k,%l&lt;br /&gt;&lt;strong&gt;AD Subnet and Site Information &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * "CN=Subnets,CN=Sites,CN=Configuration,DC=forestRootDomain" -attr cn siteObject description location&lt;br /&gt;&lt;strong&gt;AD Site Information &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * "CN=Sites,CN=Configuration,DC=forestRootDomain" -attr cn description location -filter (objectClass=site)&lt;br /&gt;&lt;strong&gt;Printer Queue Objects in AD &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * domainroot -filter "(objectCategory=printQueue)" -limit 0&lt;br /&gt;&lt;strong&gt;Group Membership with user details &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsget group "groupDN" -members dsget user -samid -fn -mi -ln -display -empid -desc -office -tel -email -title -dept –mgr&lt;br /&gt;&lt;strong&gt;Total DHCP Scopes &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;find /i "subnet" "Output from DHCP server information" find /i "subnet"&lt;br /&gt;&lt;strong&gt;Site Links and Cost &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * "CN=Sites,CN=Configuration,DC=forestRootDomain" -attr cn costdescription replInterval siteList -filter (objectClass=siteLink)&lt;br /&gt;&lt;strong&gt;Time gpresult &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;timethis gpresult /v&lt;br /&gt;&lt;strong&gt;Check time against Domain &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;w32tm /monitor /computers:ForestRootPDC&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;strong&gt;Domain Controller Diagnostics &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dcdiag /s:%logonserver% /v /e /c&lt;br /&gt;&lt;strong&gt;Domain Replication Bridgeheads &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;repadmin /bridgeheads&lt;br /&gt;&lt;strong&gt;Replication Failures from KCC &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;repadmin /failcache&lt;br /&gt;&lt;strong&gt;Inter-site Topology servers per site &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Repadmin /istg * /verbose&lt;br /&gt;&lt;strong&gt;Replication latency &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;repadmin /latency /verbose&lt;br /&gt;&lt;strong&gt;Queued replication requests &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;repadmin /queue *&lt;br /&gt;&lt;strong&gt;Show connections for a DC &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;repadmin /showconn *&lt;br /&gt;&lt;strong&gt;Replication summary &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Repadmin /replsummaryShow replication partners repadmin /showrepl * /all&lt;br /&gt;&lt;strong&gt;All DCs in the forest &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;repadmin /viewlist *&lt;br /&gt;&lt;strong&gt;ISTG from AD attributes &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * "CN=NTDS Site Settings,CN=siteName,CN=Sites,CN=Configuration,DC=forestRootDomain" -attr interSiteTopologyGenerator&lt;br /&gt;&lt;strong&gt;Return the object if KCC Intra/Inter site is disabled for each site &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Dsquery site dsquery * -attr * -filter "((Options:1.2.840.113556.1.4.803:=1)(Options:1.2.840.113556.1.4.803:=16))"&lt;br /&gt;&lt;strong&gt;Find all connection objects&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * forestRoot -filter (objectCategory=nTDSConnection) ?attr distinguishedName fromServer whenCreated displayName&lt;br /&gt;&lt;strong&gt;Find all connection schedules&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;adfind -b "cn=Configuration,dc=qraps,dc=com,dc=au" -f "objectcategory=ntdsConnection" cn Schedule –csv&lt;br /&gt;&lt;strong&gt;Software Information for each server&lt;/strong&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (Output from ‘Domain Controllers’) do psinfo &lt;a href="file://%25i/"&gt;file://%25i/&lt;/a&gt; &amp;amp;filever &lt;a href="file://%25i/admin$/explorer.exe"&gt;file://%25i/admin$/explorer.exe&lt;/a&gt; &lt;a href="file://%25i/admin$/system32/vbscript.dll//%25i/admin$/system32/kernel32.dll"&gt;file://%25i/admin$/system32/vbscript.dll//%25i/admin$/system32/kernel32.dll&lt;/a&gt; &lt;a href="file://%25i/admin$/system32/wbem/winmgmt.exe//%25i/admin$/system32/oleaut32.dll"&gt;file://%25i/admin$/system32/wbem/winmgmt.exe//%25i/admin$/system32/oleaut32.dll&lt;/a&gt;&lt;br /&gt;&lt;strong&gt;Check Terminal Services Delete Temp on Exit flag &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;For /f %i in (Output from ‘Domain Controllers’) do Reg query"&lt;a href="file://%25i/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/TerminalServer"&gt;file://%25i/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/TerminalServer&lt;/a&gt;" /v DeleteTempDirsOnExit&lt;br /&gt;&lt;strong&gt;For each XP workstation, query the current site and what Group Policy info &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;@dsquery * domainroot -filter"(&amp;amp;(objectCategory=Computer)(operatingSystem=Windows XPProfessional))" -limit 0 -attr cn &gt; Workstations.txt &amp;amp; @For /f%i in (Workstations.txt) do @ping %i -n 1 &gt;NUL &amp;amp; @if ErrorLevel0 If NOT ErrorLevel 1 @Echo %i &amp;amp; for /f "tokens=3" %k in (’"regquery "&lt;a href="file://%25i/hklm/software/microsoft/windows/currentversion/grouppolicy/history"&gt;file://%25i/hklm/software/microsoft/windows/currentversion/grouppolicy/history&lt;/a&gt;" /v DCName Find /i "DCName""’) do @for /f %m in(’"nltest /server:%i /dsgetsite find /i /v "completedsuccessfully""’) do @echo %i,%k,%m&lt;br /&gt;&lt;strong&gt;Information on existing GPOs &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * "CN=Policies,CN=System,domainRoot" -filter"(objectCategory=groupPolicyContainer)" -attr displayName cnwhenCreated gPCFileSysPath&lt;br /&gt;&lt;strong&gt;Copy all Group Policy .pol files &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f "tokens=1-8 delims=\" %i in (’dir /b /s\\%userdnsdomain%\sysvol\%userdnsdomain%\policies\*.pol’) do @echo copy\\%i\%j\%k\%l\%m\%n\%o %m_%n.pol&lt;br /&gt;&lt;strong&gt;Domain Controller Netlogon entries &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (’dsquery server /o rdn’) do echo %i &amp;amp; reg query\\%i\hklm\system\currentcontrolset\services\netlogon\parameters&lt;br /&gt;&lt;strong&gt;Find policy display name given the GUID &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * "CN=Policies,CN=System,DC=domainRoot" -filter (objectCategory=groupPolicyContainer) -attr Name displayName&lt;br /&gt;&lt;strong&gt;Find empty groups &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * -filter "&amp;amp;(objectCategory=group)(!member=*)" -limit 0-attr whenCreated whenChanged groupType sAMAccountNamedistinguishedName memberOf&lt;br /&gt;&lt;strong&gt;Find remote NIC bandwidth &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;wmic /node:%server% path Win32_PerfRawData_Tcpip_NetworkInterface GET Name,CurrentBandwidth&lt;br /&gt;&lt;strong&gt;Find remote free physical memory &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;wmic /node:%Computer% path Win32_OperatingSystem GET FreePhysicalMemory&lt;br /&gt;&lt;strong&gt;Find remote system information &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;SystemInfo /s %Computer%&lt;br /&gt;&lt;strong&gt;Disk statistics, including the number of files on the filesystem &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;chkdsk /i /c&lt;br /&gt;&lt;strong&gt;Query IIS web sites &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;iisweb /s %Server% /query "Default Web Site"&lt;br /&gt;&lt;strong&gt;Check port state and connectivity &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;portqry -n %server% -e %endpoint% –v&lt;br /&gt;&lt;strong&gt;Forest/Domain Functional Levels &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;ldifde -d cn=partitions,cn=configuration,dc=%domain% -r"((systemFlags=3)(systemFlags=-2147483648))" -lmsds-behavior-version,dnsroot,ntmixeddomain,NetBIOSName -p subtree –fcon&lt;br /&gt;&lt;strong&gt;Forest/Domain Functional Levels&lt;/strong&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * cn=partitions,cn=configuration,dc=%domain% -filter"((systemFlags=3)(systemFlags=-2147483648))" -attrmsDS-Behavior-Version Name dnsroot ntmixeddomain NetBIOSName&lt;br /&gt;&lt;strong&gt;Find the parent of a process &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;wmic path Win32_Process WHERE Name=’notepad.exe’ GET Name,ParentProcessId&lt;br /&gt;&lt;strong&gt;Lookup SRV records from DNS &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;nslookup -type=srv _ldap._tcp.dc._msdcs.{domainRoot}&lt;br /&gt;&lt;strong&gt;Find when the AD was installed &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * cn=configuration,DC=forestRootDomain -attr whencreated -scope base&lt;br /&gt;&lt;strong&gt;Enumerate the trusts from the specified domain &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * "CN=System,DC=domainRoot" -filter "(objectClass=trustedDomain)" -attr trustPartner flatName&lt;br /&gt;&lt;strong&gt;Find a DC for each trusted domain &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f "skip=1" %i in (’"dsquery * CN=System,DC=domainRoot -filter(objectClass=trustedDomain) -attr trustPartner"’) do nltest /dsgetdc:%i&lt;br /&gt;&lt;strong&gt;Check the notification packages installed on all DCs &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;for /f %i in (’dsquery server /o rdn’) do @for /f "tokens=4" %m in(’"reg query\\%i\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa /v"Notification Packages" find /i "Notification""’) do @echo %i,%m&lt;br /&gt;&lt;strong&gt;List ACLs in SDDL format &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;setacl -on %filepath% -ot file -actn list -lst f:sddl&lt;br /&gt;&lt;strong&gt;Find out if a user account is currently enabled or disabled &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery user DC=%userdnsdomain:.=,DC=% -name %username% dsget user -disabled –dn&lt;br /&gt;&lt;strong&gt;Find servers in the domain &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery * domainroot -filter "(&amp;amp;(objectCategory=Computer)(objectClass=Computer)(operatingSystem=*Server*))" -limit 0&lt;br /&gt;&lt;strong&gt;Open DS query window rundll32 &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;dsquery,OpenQueryWindowDon’t forget to leave your comments :)&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2934643840122268150-3257042027933062655?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/3257042027933062655/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2009/02/domain-controllers-nltest.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/3257042027933062655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/3257042027933062655'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2009/02/domain-controllers-nltest.html' title='Command Line Active Directory Query'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2934643840122268150.post-5524112855465432096</id><published>2008-10-02T09:16:00.000-07:00</published><updated>2009-06-02T10:41:12.009-07:00</updated><title type='text'>Distributed File System (DFS)</title><content type='html'>&lt;span style="font-size:78%;"&gt;&lt;strong&gt;What is Distributed File System (DFS)?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;Distributed File System (DFS) allows administrators to group shared folders located on different servers and present them to users as a virtual tree of folders known as a namespace. A namespace provides numerous benefits, including increased availability of data, load sharing, and simplified data migration. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;strong&gt;Explanation: &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;•The Distributed File System is used to build a hierarchical view of multiple file servers and shares on the network. Instead of having to think of a specific machine name for each set of files, the user will only have to remember one name; which will be the 'key' to a list of shares found on multiple servers on the network. Think of it as the home of all file shares with links that point to one or more servers that actually host those shares. DFS has the capability of routing a client to the closest available file server by using Active Directory site metrics. It can also be installed on a cluster for even better performance and reliability. Medium to large sized organizations are most likely to benefit from the use of DFS - for smaller companies it is simply not worth setting up since an ordinary file server would be just fine.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;strong&gt;Understanding the DFS Terminology:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;•It is important to understand the new concepts that are part of DFS. Below is an definition of each of them.&lt;br /&gt;•Dfs root: You can think of this as a share that is visible on the network, and in this share you can have additional files and folders.&lt;br /&gt;•Dfs link: A link is another share somewhere on the network that goes under the root. When a user opens this link they will be redirected to a shared folder.&lt;br /&gt;•Dfs target (or replica): This can be referred to as either a root or a link. If you have two identical shares, normally stored on different servers, you can group them together as Dfs Targets under the same link.The image below shows the actual folder structure of what the user sees when using DFS and load balancing.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;strong&gt;To implement DFS in Test.com domain , you need to do the following&lt;br /&gt;&lt;/strong&gt;1)Create a Domain DFS root on one of the servers, say on Server1 with root name “All Shares”. Domain DFS root details are stored in the Active directory and replicated among all the Domain controllers.&lt;br /&gt;2)Now under the Root “All shares” you can create separate links to point to the various shares in the domain i.e. Share1 on Server1, Share2 on Server2 and Share3 on Server 3&lt;br /&gt;All Shares (DFS Root)&lt;br /&gt;(DFS Links)&lt;br /&gt;-Share 1 (\\Server1\Share1 - Target folder name)&lt;br /&gt;-Share 2 (\\Server2\Share2 - Target folder name)&lt;br /&gt;-Share 3 (\\Server3\Share3 - Target folder name)&lt;br /&gt;Now you can see all the shares (Share1, Share2, Share3) in the following path –&lt;br /&gt;\\Test.com\All Shares&lt;br /&gt;This way user can see all the shares under one root path \\Test.com\All Shares and it will be much easier for the user to remember.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&gt;&lt;strong&gt;Load Balancing and Fault Tolerance&lt;br /&gt;&lt;/strong&gt;With DFS you can configure multiple targets for a DFS link and then configure replication between those targets, so that you can have fault tolerance and load balancing.&lt;br /&gt;Example – In above example if Server1 is down then, there is no way the users can access Share1. However, to avoid this situation you can create a shared folder named “Share1” on Server2 and add it as a 2nd target folder under “All Shares\Share 1” DFS link, then configure replication between \\Server1\Share1 and \\Server2\Share1 This way whenever there is a change made on Share1, the data is replicated to Share1 on Server2 and Vice Versa.&lt;br /&gt;Accordingly, when a user types in \\test.com\all shares\share1 it will connect to either Share1 on Server 1 or Share1 on Server2 which is transparent and is decided by the Active Directory. Now, even if one of the servers is down eg. Server1 is down, the user will be able to access the share normally, since there is a replica of the data on server2, Also, there will not be any change in the way the data is accessed by the user i.e. he is still able to access by typing in \\test.com\all shares\share1 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:+0;"&gt;&lt;br /&gt;&lt;span style="font-size:78%;"&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/2934643840122268150-5524112855465432096?l=askprasanth.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://askprasanth.blogspot.com/feeds/5524112855465432096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://askprasanth.blogspot.com/2007/10/distributed-file-system-dfs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/5524112855465432096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2934643840122268150/posts/default/5524112855465432096'/><link rel='alternate' type='text/html' href='http://askprasanth.blogspot.com/2007/10/distributed-file-system-dfs.html' title='Distributed File System (DFS)'/><author><name>Prasanth</name><uri>http://www.blogger.com/profile/15242178207142025711</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='21' src='http://4.bp.blogspot.com/_3xZ1QvxcRpc/SiVi--4FagI/AAAAAAAAAvI/nFyG18rcCRw/S220/Prasanth.JPG'/></author><thr:total>0</thr:total></entry></feed>
