PowerShell Logo Small

Use-WindowsUnattend



This is the built-in help made by Microsoft for the command 'Use-WindowsUnattend', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Applies an unattended answer file to a Windows image.

SYNTAX


Use-WindowsUnattend [-LogLevel <LogLevel>] [-LogPath <String>] [-NoRestart] [-ScratchDirectory <String>] [-SystemDrive <String>] [-WindowsDirectory <String>] -Online
-UnattendPath <String> [<CommonParameters>]
Use-WindowsUnattend [-LogLevel <LogLevel>] [-LogPath <String>] [-NoRestart] [-ScratchDirectory <String>] [-SystemDrive <String>] [-WindowsDirectory <String>] -Path <String>
-UnattendPath <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Use-WindowsUnattend cmdlet applies an unattended answer file (Unattend.xml) to a Windows image.


If you are updating device drivers using an unattended answer file, you must apply the answer file to an offline image and specify the settings in the offlineServicing
configuration pass.


If you are updating packages or other settings using an unattended answer file, you can apply the answer file to an offline or online image. Specify the settings in the
offlineServicing configuration pass.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/p/?linkid=289368

REMARKS

<

Examples


Example 1

PS C:\>Use-WindowsUnattend –Path c:\offline –UnattendPath c:\test\answerfiles\myunattend.xml



This command applies an answer file, myunattend.xml, to the Windows image that is mounted to c:\offline.






Example 2

PS C:\>Use-WindowsUnattend –Online –UnattendPath c:\test\answerfiles\myunattend.xml



This command applies an answer file, myunattend.xml, to the online Windows image.