Showing results for January 2014 - Scripting Blog [archived]

Jan 31, 2014
0
0

PowerTip: Learn to Use Where or ForEach in PowerShell 4.0

Doctor Scripto
Doctor Scripto

Summary: Learn the easy way to use Where or ForEach in Windows PowerShell 4.0. I am running Windows PowerShell 4.0 and I want to know the easy way to use Where or ForEach. In Windows PowerShell 4.0, object arrays have a built-in .Where() and .ForEach() methods.          ...

Scripting Guy!Windows PowerShellPowerTip
Jan 31, 2014
3
0

Comparing PowerShell PSSessions and CIM Sessions

Doctor Scripto
Doctor Scripto

Summary: Guest blogger, Trevor Sullivan, compares Windows PowerShell PSSessions and CIM sessions. Microsoft Scripting Guy, Ed Wilson, is here. Today we have the exciting conclusion to Honorary Scripting Guy, Trevor Sullivan’s guest blog series on CIM. To see more of Trevor’s guest posts, see these Hey, Scripting Guy! Blog posts. You can reach Trev...

Scripting Guy!Windows PowerShellscripting techniques
Jan 30, 2014
0
0

PowerTip: Use PowerShell to Retrieve CIM Methods

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to retrieve CIM methods.  How can I use Windows PowerShell to dynamically obtain a list of CIM methods?  Use the following script: Clear-Host;   $ClassList = Get-CimClass;  foreach ($CimClass in $ClassList) {    foreach ($CimMethod in $CimClass.CimClassMethods) { &...

Scripting Guy!Windows PowerShellPowerTip
Jan 30, 2014
0
0

Invoking CIM Methods with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Guest blogger, Trevor Sullivan, talks about invoking CIM methods via Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Today we have another guest post from Trevor Sullivan. Trevor is an Honorary Scripting Guy, and a recognized Microsoft Community Contributor (MCC). To see more of Trevor’s guest posts, see these Hey, Script...

Scripting Guy!Windows PowerShellscripting techniques
Jan 29, 2014
0
0

PowerTip: Copy Information to the Clipboard with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to easily copy information to the clipboard by using Windows PowerShell.  How can I use Windows PowerShell to copy WMI information to the Windows Clipboard           so I can use it in another application?  Use the external clip.exe utility to copy Windows PowerShell pipeline output to your Wind...

Scripting Guy!Windows PowerShellPowerTip