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 ...
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 ...
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 –...
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 ...
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...