Showing results for September 2015 - Scripting Blog [archived]

Sep 30, 2015
0
0

PowerTip: Launch Console Command Embedded in Powershell Variable

Doctor Scripto
Doctor Scripto

Summary: Use a variable to launch a Windows PowerShell cmdlet and maintain the value of $LastExitCode.  How can I use Windows PowerShell to launch a variable that contains the path to a console application            while retaining the error code?  Use the & character before the content in...

Windows PowerShellPowerTipguest blogger
Sep 30, 2015
0
0

Use PowerShell to Create Windows To Go Keys—Part 3

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to apply an image to a Windows To Go key and make it bootable. Hey, Scripting Guy! Now that I have a Windows To Go key partitioned and formatted for use, how do I apply the operating system image to it?—MR Hello MR,Honorary Scripting Guy, Sean Kearney, is here to continue forth and show you the next s...

Windows PowerShellguest bloggerSean Kearney
Sep 29, 2015
0
0

PowerTip: Use PowerShell to Find Where Drive Letter is Stored

Doctor Scripto
Doctor Scripto

Summary: Use the Get-Partition and Get-Disk cmdlets to identify data storage locations.  How can I use Windows PowerShell to easily figure out which disk a particular drive letter is on?  Use Get-Partition with the drive letter and pipe the results to Get-Disk, for example: Get-Partition –DriveLett...

Windows PowerShellPowerTipguest blogger
Sep 29, 2015
0
0

Use PowerShell to Create Windows To Go Keys—Part 2

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to partition a Windows To Go device. Hey, Scripting Guy! Am I able to use Windows PowerShell to set up the necessary partitions to prepare a Window To Go key?—LL Hello LL,Honorary Scripting Guy, Sean Kearney, is here. I'm continuing with my little chat about setting up Windows To Go keys through Windo...

Windows PowerShellguest bloggerSean Kearney
Sep 28, 2015
0
0

PowerTip: Use PowerShell to Identify Bootable Disks

Doctor Scripto
Doctor Scripto

Summary: Use the Get-Disk cmdlet to identify all bootable devices that are attached.  How can I use Windows PowerShell to see which USB devices are set to be bootable on my workstation?  Use the Get-Disk cmdlet and filter on the BootFromDisk and BusType properties, for example: Get-Disk | Where { $_...

Windows PowerShellPowerTipguest blogger