Showing tag results for scripting techniques

Mar 31, 2015
Post comments count0
Post likes count0

Help Comparing Objects in PowerShell

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
Post comments count0
Post likes count0

Use PowerShell to Detect if Hypervisor is Present

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 27, 2015
Post comments count0
Post likes count0

Use PowerShell to Remove Optional Features from Windows VHD

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to remove optional features from Windows virtual hard disks.  Hey, Scripting Guy! I have a number of virtual machines that have optional features that they do not need, such as Windows Media Player. In fact, the virtual machines are set up with no audio, so havin...

Scripting Guy!Windows PowerShellscripting techniques
Mar 26, 2015
Post comments count0
Post likes count0

PowerTip: Find DISM-Related PowerShell Cmdlets

Doctor Scripto

Summary: Learn how to find all Windows PowerShell cmdlets that work with DISM.  How can I find all Windows PowerShell cmdlets that work with Deployment Image Servicing and Management (DISM)?  Use the Get-Command cmdlet and specify the DISM module: Get-Command -Module dism

Scripting Guy!Windows PowerShellscripting techniques
Mar 26, 2015
Post comments count0
Post likes count0

Use PowerShell to Add Files to Offline Windows Image

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to add files to an offline Windows image.  Hey, Scripting Guy! I have a number of VHDs that I need to add files to. I know that I can use File Manager to mount the VHD and then copy the files, but I am hoping that I can use Windows PowerShell to do this. The VHDs...

Scripting Guy!Windows PowerShellscripting techniques