Use PowerShell to Query AD DS and Not Use LDAP Dialect

Summary: Learn how to use the Filter parameter and the Windows PowerShell Expression Language on the Active Directory module cmdlets.  Hey, Scripting Guy! I do not know why you like ADSI so much. The syntax is obscure, and it makes things hard to read. Yesterday’s blog that used Get-ADComputer could have been so much better…


Use PowerShell to Query AD DS for Servers and then Find Hotfixes

Summary: Microsoft Scripting Guy, Ed Wilson, talks about querying the AD DS module via PowerShell and using the results to find hotfixes.  Hey, Scripting Guy!  We have a server running Windows Server 2008 R2 that is acting as one of our domain controllers. I do not have access to install the Remote Server Administration Tools (RSAT) on…


The Ins and Outs of Using DSQuery with Windows PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using DSQuery to return results for use in Windows PowerShell.  Hey, Scripting Guy!  I like using the DSQuery tool to search Active Directory Domain Services (AD DS). Can I use that tool with Windows PowerShell? —WS  Hello WS, Microsoft Scripting Guy, Ed Wilson, is here. Yes, it…


Search AD for Missing Email Addresses Using PowerShell

Summary: Learn how to use Windows PowerShell and the Active Directory cmdlets to find and replace missing email addresses.   Hey, Scripting Guy! I am hoping you can help me. We recently decommissioned a domain and moved all the users from that domain into an organizational unit (OU) under our corporate domain. This has simplified…


Search Active Directory for User and Office Locations

Summary: Search Active Directory for user and office locations by using Windows PowerShell and no scripting.   Hey, Scripting Guy! I am looking for an easy way to search Active Directory. For example, I need to find information out about users. We are moving offices in our city, and I need to find users who…


Use PowerShell to Clean Up Active Directory After a Stalled Migration

Summary: Use Windows PowerShell to clean up extended user attributes following a stalled Active Directory migration.   Microsoft Scripting Guy Ed Wilson here. Today I am proud to announce the return of Microsoft MVP Nicolas Blank to the Hey, Scripting Guy! Blog. Nicolas has more than 14 years’ experience on various versions of Exchange and…


Query Active Directory Without Writing a Script

  Summary: Learn how to use Windows PowerShell to query Microsoft Active Directory without having to write a script.   Hey, Scripting Guy! I would like to use cmdlets to work with Active Directory. Are there any Windows PowerShell cmdlets in Windows Server 2008 R2 that can be used?  — BW    Hello BW, Microsoft…

2

Use PowerShell to Query Active Directory from the Console

   Summary: Learn how to query Active Directory by using Windows PowerShell without writing a script.   Hey, Scripting Guy! Occasionally I have to perform a quick query of Active Directory, but I do not want to write a complicated VBScript or Windows PowerShell script. Is there a way to use Windows PowerShell to query…

7

Error Handling and Exporting Active Directory Users to CSV

  Summary: Learn how to handle errors in Windows PowerShell and how to export user information from Microsoft Active Directory to a CSV file.   In this post: Exporting Active Directory Users to CSV Adding Comments to a Script File Error Handling in Windows PowerShell     Exporting Active Directory Users to CSV Hey, Scripting…

1

Use PowerShell and Active Directory Cmdlets to Update Users in Active Directory

Summary: Learn how to use Windows PowerShell and the Active Directory cmdlets to update user objects in Active Directory.   Hey, Scripting Guy! Watching you write a custom function to search Active Directory is about as much fun as watching paint dry. One reason we upgraded to Windows Server 2008 R2 was to gain access…

10