The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Summary: Use a variable to launch a Windows PowerShell cmdlet and maintain the value of $LastExitCode.
(image) How can I use Windows PowerShell to launch a variable that contains the path to a console application while retaining the error code?
(image) Use the & character ...
Summary: Use Windows PowerShell to apply an image to a Windows To Go key and make it bootable.(image) 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(image) Hello MR,Honorary Scripting Guy, Sean Kearney, is here to continue forth ...
Summary: Use the Get-Partition and Get-Disk cmdlets to identify data storage locations.
(image) How can I use Windows PowerShell to easily figure out which disk a particular drive letter is on?
(image) Use Get-Partition with the drive letter and pipe the results to Get-Disk, for example:
Get-...
Summary: Use Windows PowerShell to partition a Windows To Go device.(image) Hey, Scripting Guy! Am I able to use Windows PowerShell to set up the necessary partitions to prepare a Window To Go key?—LL(image) Hello LL,Honorary Scripting Guy, Sean Kearney, is here. I'm continuing with my little chat about setting up Windows To ...
Summary: Use the Get-Disk cmdlet to identify all bootable devices that are attached.
(image) How can I use Windows PowerShell to see which USB devices are set to be bootable on my workstation?
(image) Use the Get-Disk cmdlet and filter on the BootFromDisk and BusType properties, for example:
...