Browse by Tags

Tagged Content List
  • Blog Post: How Can I Determine Which Domain Controller Authenticated a User?

    Hey, Scripting Guy! In my logon script how can I determine the name of the domain controller that authenticated the user? -- CK Hey, CK. You know, one of the unwritten rules for being a Scripting Guy is that you should never do anything hard more than once a week. (Why is this an unwritten rule? Mainly...
  • Blog Post: Hey, Scripting Guy! How Can I Use Windows PowerShell to Add a Domain User to a Local Group?

    Hey, Scripting Guy! I recently came across your article where you showed people how to use VBScript to add a domain user to a local group. How can I do that same task using Windows PowerShell? -- KE Hey, KE. Before we begin we thought we should mention that the Scripting Guy who writes this column...
  • Blog Post: Use PowerShell to Work with RODC Accounts

    Summary : Microsoft premier field engineer, Ian Farr, talks about using Windows PowerShell to work with RODC accounts. Microsoft Scripting Guy, Ed Wilson, is here. Today I would like to introduce a new guest blogger, Ian Farr. Ian tells us about himself: I started out writing UNIX shell scripts...
  • Blog Post: How Can I Get a List of All the Domains in a Forest?

    Hey, Scripting Guy! How can I get a list of all the domains in a forest? -- NS Hey, NS. Any time you want information about Active Directory your best bet is to go right to the source: simply ask Active Directory to provide you with this information. Here’s a sample script that binds to the global...
  • Blog Post: Use PowerShell to Troubleshoot Active Directory Integrated DNS

    Summary : Microsoft Scripting Guy, Ed Wilson, talks about troubleshooting the status of Active Directory integrated DNS servers. Microsoft Scripting Guy, Ed Wilson, is here. The first ever PowerShell Saturday that was held in Columbus, Ohio was a tremendous success. It was really great to see people...
  • Blog Post: How Can I Create a Folder for Each User in My Domain?

    Hey, Scripting Guy! How can I create a folder for each user in my domain? I’d like the folder name to consist of the user’s first initial and their last name (for example, KMyer). -- GN Hey, GN. You know, this has been an interesting week for the Scripting Guys. Why? Because absolutely nothing interesting...
  • Blog Post: Use PowerShell to Replace netdom Commands to Join the Domain

    Summary : Learn how to replace netdom commands with simple Windows PowerShell cmdlets to rename and reboot the computer or join the domain. Hey, Scripting Guy! It seems that I have been hand building a number of computers recently for a computer lab we are setting up at work. I have written a batch...
  • Blog Post: Use PowerShell to Deploy a New Active Directory Forest

    Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to deploy a new Active Directory forest. Microsoft Scripting Guy, Ed Wilson, is here. Today, I thought I would provide another excerpt from my new Microsoft Press book: Windows PowerShell 3.0 Step by Step, which is available...
  • Blog Post: How Can I Tack a Prefix Onto the Telephone Numbers of All the Users in My Domain?

    Hey, Scripting Guy! How can I tack a prefix onto the telephone numbers of all the users in my domain? -- JB Hey, JB. It’s Monday morning as this column is being written, and the Scripting Guy who actually writes this column is still a bit tired from driving across the state and back in order to attend...
  • Blog Post: How Can I Add a Domain User to a Local Administrators Group?

    Hey, Scripting Guy! How can I add a domain user to the local Administrators group in a computer? -- MB Hey, MB. One reason we started doing this column was because we wanted to know more about what system administrators do (and script) on a regular basis. As it is, sitting here in our luxurious penthouse...
  • Blog Post: Hey, Scripting Guy! How Can I Use Windows PowerShell 2.0 to Retrieve Information About Domain Controllers?

    Hey, Scripting Guy! I need to use Windows PowerShell 2.0 to search Active Directory Domain Services (AD DS) to retrieve information about my Windows Server 2008 and Windows Server 2008 R2 domain controllers. I am specifically interested in determining the holders of the special FSMO roles in AD DS. Is...
  • Blog Post: How Can I Get a List of All the Domain Controllers in My Domain?

    Hey, Scripting Guy! Is it possible to get a list of all the domain controllers in my domain? -- KT Hey, KT. As a matter of fact, there are at least two ways to get a list of all domain controllers in your domain. The first way is pretty easy, but not guaranteed; depending on how you’ve set up Active...