mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 22:19:02 +08:00
8054263f15
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
18 lines
499 B
PowerShell
18 lines
499 B
PowerShell
# Copyright (c) Microsoft Corporation.
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
<#
|
|
.SYNOPSIS
|
|
Prepares the virtual machine for imaging.
|
|
|
|
.DESCRIPTION
|
|
Runs the `sysprep` utility to prepare the system for imaging.
|
|
See https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--system-preparation--overview
|
|
for more information.
|
|
#>
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
Write-Host 'Running sysprep'
|
|
& C:\Windows\system32\sysprep\sysprep.exe /oobe /generalize /mode:vm /shutdown
|