All articles

  1. System Image Backup from Command Line

    wbAdmin start backup -backupTarget:<drive to save backup to> -include:<drive to save backup of> -allCritical -quiet
    

    -allCritical will make sure all system state and system drives is captured if you back up the OS drive. -quiet just ensures there is no user prompt.

    More Info:

  2. Check Disk in PowerShell

    I use check disk as one of my basic troubleshooting tools. Here's the new PowerShell commands that serve the same purpose with the advantage of all PowerShell features. My favorite part of this command is that it's much faster than the original.

    # chkdsk /f
    Repair-Volume -DriveLetter H -Scan
    
    # chkdsk /scan …
  3. DISM Image Repair in PowerShell

    DISM has saved many an online image (i.e the one running on my PC) the past few years. Here's those commands in a much easier to remember PowerShell format.

    # Dism.exe /Image:<...> /Cleanup-Image /ScanHealth
    Repair-WindowsImage -ScanHealth
    
    # Dism.exe /Image:<...> /Cleanup-Image /RestoreHealth
    Repair-WindowsImage -RestoreHealth
    

    More Info: