Showing archive results for September 2013

Sep 25, 2013
Post comments count0
Post likes count0

PowerTip: Make Multiple WMI Queries to Remote Machine

Doctor Scripto

Summary: Learn how to make multiple WMI queries to a remote machine more efficient.  How can I make running multiple WMI queries against a remote machine more efficient?  Create a CIM session with New-CimSession, and use that in your calls instead of a computer name: $sess = New-CimSession –Computername server02 Get-CimInstance...

Scripting Guy!Windows PowerShellPowerTip
Sep 25, 2013
Post comments count0
Post likes count0

The Admin’s First Steps: Documenting Servers

Doctor Scripto

Summary: Richard Siddaway talks about using Windows PowerShell to automate the creation of your server documentation.  Hey, Scripting Guy! I’ve just starting learning Windows PowerShell, and I understand how to use it as a scripting language and shell. But what can I use it for in my environment to make my job easier? Can you give me som...

Scripting Guy!Windows PowerShellscripting techniques
Sep 24, 2013
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Access Online Help

Doctor Scripto

Summary: Learn how to access online Help easily by using Windows PowerShell.  How can I ensure that I am always accessing the latest Help content—even if I suspect my Help file for Windows PowerShell is out-of-date, and I do not have time to download and install the latest? Use the –Online switch when using the Get-H...

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

Are You Safe?

Doctor Scripto

Summary: Windows PowerShell MVP, Jeffery Hicks, talks about profiling scripts. Microsoft Scripting Guy, Ed Wilson, is here. Today we have as our guest blogger, Jeffery Hicks, Windows PowerShell MVP and author. To read more of Jeff’s previous guest posts, see these Hey, Scripting Guy! Blog posts. Jeffery Hicks is a Microsoft MVP in Windows Pow...

Scripting Guy!Windows PowerShellscripting techniques
Sep 23, 2013
Post comments count0
Post likes count0

PowerTip: Create Array with Five Numbers

Doctor Scripto

Summary: Easily create an array that contains five numbers with Windows PowerShell.   How can I use Windows PowerShell to easily create an array that contains five numbers?  Use the Range operator and assign the results to a variable: $a = 1..5

Scripting Guy!Windows PowerShellPowerTip