early-access version 2853
This commit is contained in:
17
externals/vcpkg/scripts/azure-pipelines/windows/sysprep.ps1
vendored
Executable file
17
externals/vcpkg/scripts/azure-pipelines/windows/sysprep.ps1
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
# 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
|
Reference in New Issue
Block a user