Archive for the 'Windows Server' Category

How to Remotely Get Members of Local Administrators Group

There are a several programs and scripts to get the members of local administrators group on a Windowx XP or Win2K Pro computers. Recently I wrote a batch file based on the command
psexec -n 5 \\<computer_name> net localgroup administrators
‘psexec’ is a  command line utility that allows you to run processes on remote computers. The utility [...]

How to exports memebers of Active Directory group

There are a lot of scripts floating around to export members of AD group. Following is one way of displaying first and last names via command line
dsquery group -name <name_of_the_group> | dsget group -members | dsget user -fn -ln
To learn more about dsquery and dsget, please see http://technet.microsoft.com/en-us/library/cc732952.aspx, and http://technet.microsoft.com/en-us/library/cc755162.aspx.

Updating DNS Entries while Minimizing the Downtime

If you ever need to update the DNS records for your servers, make sure that you set the TTL value to few seconds first. This will minimize your downtime to a few seconds.
TTL (or time to live) is the amount of time for which other computers or DNS servers will cache your IP address. Suppose [...]