Showing results for PowerTip - Scripting Blog [archived]

Feb 14, 2016
0
0

PowerTip: Flush file system cache by using PowerShell

Doctor Scripto
Doctor Scripto

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

Scripting Guy!Windows PowerShellPowerTip
Feb 13, 2016
0
0

PowerTip: Use PowerShell to remove app package from image

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to remove an app package from a Windows image.  How can I use Windows PowerShell to remove an app package from a Windows image?  Use the Remove-AppxProvisionedPackage cmdlet, for example: Remove-AppxProvisionedPackage –Path c:\offline –PackageName MyAppxPkg

Scripting Guy!Windows PowerShellPowerTip
Feb 13, 2016
0
0

PowerTip: Fully format drive using PowerShell

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to do a full format of a drive.  How can I use Windows PowerShell to do a full format of a drive?  Use the Format-Volume cmdlet and specify the -FullFormat parameter, for example: Format-Volume -DriveLetter C -FileSystem FAT32 -FullFormat –Force

Scripting Guy!Windows PowerShellPowerTip
Feb 12, 2016
0
0

PowerTip: Use PowerShell to format drive

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to quickly format a drive.  How can I use Windows PowerShell to quickly format a drive?  Use the Format-Volume cmdlet and specify the drive letter, for example: Format-Volume -DriveLetter D

Scripting Guy!Windows PowerShellPowerTip
Dec 3, 2015
0
0

PowerTip: Duplicate File Structure with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Use Copy-Item to duplicate content with Windows PowerShell.  How can I use Windows PowerShell to duplicate content?  Use Copy-Item—for example, to duplicate all files and folders from C:\Foo to D:\Foo, run: Copy-Item C:\Foo D:\Foo -recurse

Windows PowerShellPowerTipguest blogger