Showing results for March 2015 - Scripting Blog [archived]

Mar 31, 2015
0
0

PowerTip: Create Array in PowerShell

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to easily create an array.  Can I use Windows PowerShell to create an array of strings and avoid typing quotation marks            around all the strings?  Instead of creating an array, such as this: $array = “a”,”b”,”c”,”d”,&rdqu...

Scripting Guy!Windows PowerShellscripting techniques
Mar 31, 2015
0
0

Help Comparing Objects in PowerShell

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, helps a reader compare two objects in Windows PowerShell.  Hey, Scripting Guy! I am having a problem with a script. I wrote a function to compare virtual machines with virtual drives that I have on my hard drive, and it works just fine. But when I try to put the thing into a larger script, and get t...

Scripting Guy!Windows PowerShellscripting techniques
Mar 30, 2015
0
0

PowerTip: Use PowerShell to See if Media Center is Installed

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to determine if a Windows 8.1 has Media Center installed.  How can I use Windows PowerShell to determine if a version of Windows 8.1 has Media Center installed?  Use WMI and look at the Caption property of the Win32_OperatingSystem WMI class, for example: (Get-CimInstance Win32_OperatingSyste...

Scripting Guy!Windows PowerShellPowerTip
Mar 30, 2015
0
0

Use PowerShell to Detect if Hypervisor is Present

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to determine if a hypervisor is present  Hey, Scripting Guy! I have been trying to use WMI to determine if a server has the hypervisor present. I found the WMI class, and even the properties I need. But alas, the WMI class seems to be broken, and it is causing my...

Scripting Guy!Windows PowerShellscripting techniques
Mar 29, 2015
0
0

PowerTip: How to Find PowerShell User Groups

Doctor Scripto
Doctor Scripto

Summary: Learn how to find Windows PowerShell user groups.  Where do I begin a search to find if there is a Windows PowerShell user group in my area?  There are two primary places for finding Windows PowerShell user group information:

Scripting Guy!Windows PowerShellPowerTip