Scripting Blog

A place to learn about PowerShell and share stories of automation

Exploring Active Directory Data Types with PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to explore Active Directory data types.  Hey, Scripting Guy! I need a way to see the data types of various Active Directory attributes. I know I can look up this information on MSDN, but I want to explore these on my own. Have you written an Active Directory...

PowerTip: Generate an HTML Battery-Life Report in PowerShell

Summary: Use Windows PowerShell and generate an HTML battery-life report.  How can I generate an HTML battery-life report on my laptop to see expected battery life?  Open Windows PowerShell as an administrator and type the following command: powercfg /batteryreport The command reports a destination for the report that you open by ...

Write Users and Proxy Addresses to CSV by Using PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about writing all proxy addresses and user names to a CSV file by using Windows PowerShell.  Hey, Scripting Guy! Yesterday’s blog post, Export User Names and Proxy Addresses to CSV File, showed me an easy way to get a couple of proxy addresses from Active Directory, but all users do...

PowerTip: Discover which PowerShell Cmdlets Have Parameter to Accept Specific Type

Summary: Learn how to find Windows PowerShell cmdlets that have a specific parameter that accepts specific types. How can I find all Windows PowerShell cmdlets that have a parameter named ComputerName that accepts an array of strings? Import all the modules, then use the Get-Command cmdlet to look for a ...

Export User Names and Proxy Addresses to CSV File

Summary: Microsoft Scripting Guy Ed Wilson talks about using Windows PowerShell to export user names and proxy addresses to a CSV file from Active Directory.  Hey, Scripting Guy! I am trying to produce a report of our users in Active Directory and their associated proxy addresses. I want it in Excel, so I am using the Export-CSV cmdlet. ...

Feedback usabilla icon