Add-​Azure​Rm​Vmss​Additional​Unattend​Content

Adds information to the unattended Windows Setup answer file.

Syntax

Add-AzureRmVmssAdditionalUnattendContent
   [-VirtualMachineScaleSet] <VirtualMachineScaleSet>
   [[-PassName] <PassNames>]
   [[-ComponentName] <ComponentNames>]
   [[-SettingName] <SettingNames>]
   [[-Content] <String>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Add-AzureRmVmssAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file.

Examples

Example 1: Add information to the unattended Windows Setup answer file

PS C:\> Add-AzureRmVmssAdditionalUnattendContent -VirtualMachineScaleSet $VMSS -ComponentName  $AUCComponentName -Content  $AUCContent -PassName $AUCPassName -SettingName  $AUCSetting

This command adds information to the unattended Windows Setup answer file.

Required Parameters

-VirtualMachineScaleSet

Specify the virtual machine Scale Set object. You can use the New-AzureRmVmssConfig cmdlet to create the object.

Type:VirtualMachineScaleSet
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-ComponentName

Specifies the name of the component to configure with the added content. The only allowable value is Microsoft-Windows-Shell-Setup.

Type:ComponentNames
Parameter Sets:MicrosoftWindowsShellSetup
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Content

Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component.

Type:String
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PassName

Specifies the name of the pass that the content applies to. The only allowable value is oobeSystem.

Type:PassNames
Parameter Sets:OobeSystem
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SettingName

Specifies the name of the setting to which the content applies. The acceptable values for this parameter are::

  • FirstLogonCommands
  • AutoLogon
Type:SettingNames
Parameter Sets:AutoLogon, FirstLogonCommands
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False