PowerTip: Use PowerShell Get-Member to See Properties of Active Directory Users

Summary: Learn how to use the Windows PowerShell Get-Member cmdlet to see all the properties of an Active Directory user account.  How can you use the Get-Member cmdlet to see all of the properties of a user account in Active Directory?          Use the Get-ADUser cmdlet from the ActiveDirectory module, and use a wildcard for the value of the Properties parameter…. Read more

Use PowerShell to Modify Existing User Accounts in Active Directory

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to modify existing user accounts in Active Directory. Microsoft Scripting Guy, Ed Wilson, is here. The other day, I recorded a TechNet Radio podcast with Blain Barton and Matt Hester named, “The 10 non-scary things about Windows PowerShell 3.0.” It should be released… Read more

PowerTip: Use a Single Line PowerShell Command to List All Users in an OU

Summary: Use a single line Windows PowerShell command to list all users in an OU.  How can I list all users in a particular organizational unit (OU)?        Use the Get-ADUser cmdlet from the ActiveDirectory Module (available from the RSAT tools). Specify the SearchBase as the name of the OU, and use a wildcard pattern for the Filter…. Read more

Create Test Users in a Test Active Directory Environment by Using PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, creates a bunch of test users in a test AD DS environment by using Windows PowerShell.  Hey, Scripting Guy! I have a problem at work. It seems that the people who fill out titles and descriptions for the users in Active Directory do not follow a standard naming convention—heck, they… Read more

PowerTip: Find PowerShell Aliases for Cmdlets from a Specific Module

Summary: See how to find all Windows PowerShell aliases for cmdlets and functions exposed by a specific module.  How can I find all of the aliases defined for commands (functions or cmdlets) in a specific module?          Use the Get-Command cmdlet (gcm is alias) to return all the commands from the module, and… Read more

How to Run PowerShell Scripts from a Shared Directory

Summary: Guest bloggers Judith Herman and June Blender discuss how to run Windows PowerShell scripts from a shared directory. Microsoft Scripting Guy, Ed Wilson, is here. Today, we have a guest blog with two writers Judith Herman and June Blender. June has been a guest blogger before (see more here), but this is the first… Read more

PowerTip: Use PowerShell to Enable the Windows Firewall

Summary: Learn how to use Windows PowerShell to enable the Windows Firewall.  How can I use Windows PowerShell to enable the Windows Firewall on my computer?        On Windows 8 or Windows Server 2012, use the Set-NetFirewallProfile cmdlet. Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True  On earlier versions of Windows, use NetSh. netsh advfirewall set allprofiles state on… Read more

Weekend Scripter: Playing Around with Windows Firewall

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to work with Windows Firewall on Windows 8 and Windows Server 2012. Microsoft Scripting Guy, Ed Wilson, is here. The Scripting Wife returned home from the Windows PowerShell Saturday #003 event in Atlanta, Georgia, last night, and she was exhausted—happy, but exhausted. First of all we had… Read more

PowerTip: Use Saved Help Files to Update PowerShell Help

Summary: Learn how to use saved Help files to update Windows PowerShell Help on servers without Internet access.  How can I update Windows PowerShell 3.0 Help on a server without Internet access?            Use the Save-Help cmdlet to save the help to an accessible destination, and then use the update-Help cmdlet with the source parameter. Save-Help… Read more

Weekend Scripter: Getting Directory Listings from Remote Servers

Summary: Microsoft Scripting Guy, Ed Wilson, shows how to get a directory listing from remote servers by using Windows PowerShell and how to write results to an CSV file. Microsoft Scripting Guy, Ed Wilson, is here. It is here: Windows PowerShell Saturday #003 in Atlanta, Georgia (Alpharetta). The speaker’s dinner last night was great, and… Read more