Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Use PowerShell to dismount a disk image

Summary:  Learn how to use Windows PowerShell to dismount a virtual disk or ISO. (image)  How can I use Windows PowerShell to dismount a virtual disk? (image)  Use the Dismount-DiskImage cmdlet. It will dismount either an ISO or a virtual hard disk. Specify the path then using -imagepath. Here is an example: Dismount-DiskImage -imagepath...

PowerTip: Flush file system cache by using PowerShell

Summary: Use Windows PowerShell to forcibly write the file system cache to a drive. (image)  How can I use Windows PowerShell to forcibly flush the volume cache by writing it to a drive? (image)  Use the Write-VolumeCache cmdlet and specify the drive letter, for example: Write-VolumeCache c Note  There is no colon following the drive ...