Showing tag results for Windows PowerShell

Jul 24, 2013
Post comments count0
Post likes count0

PowerTip: Count Your PowerShell Scripts

Doctor Scripto
Doctor Scripto

Summary: Learn how to count how many PowerShell scripts you have written.  My boss asked me how many Windows PowerShell scripts I have written. I keep all my scripts in a specific folder. How can I use Windows PowerShell to count them?  Use the Get-ChildItem cmdlet (dir is an alias), and specify the path, a filter, and the&...

Scripting Guy!Windows PowerShellPowerTip
Jul 24, 2013
Post comments count0
Post likes count0

Exploring Active Directory Data Types with PowerShell

Doctor Scripto
Doctor Scripto

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 sche...

Scripting Guy!Windows PowerShellActive Directory
Jul 23, 2013
Post comments count0
Post likes count0

PowerTip: Generate an HTML Battery-Life Report in PowerShell

Doctor Scripto
Doctor Scripto

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 using th...

Scripting Guy!Windows PowerShellPowerTip
Jul 23, 2013
Post comments count0
Post likes count0

Write Users and Proxy Addresses to CSV by Using PowerShell

Doctor Scripto
Doctor Scripto

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 not ...

Scripting Guy!Windows PowerShellscripting techniques
Jul 22, 2013
Post comments count0
Post likes count0

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

Doctor Scripto
Doctor Scripto

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 ParameterN...

Scripting Guy!Windows PowerShellPowerTip