< Back
Add-AzureRmVmssAdditionalUnattendContent
Post
NAME Add-AzureRmVmssAdditionalUnattendContent
SYNOPSIS
Adds information to the unattended Windows Setup answer file.
SYNTAX
Add-AzureRmVmssAdditionalUnattendContent [-VirtualMachineScaleSet] <PSVirtualMachineScaleSet> [[-PassName] {OobeSystem}] [[-ComponentName]
{MicrosoftWindowsShellSetup}] [[-SettingName] {AutoLogon | FirstLogonCommands}] [[-Content] <String>] [-DefaultProfile <IAzureContextContainer>]
[-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Add-AzureRmVmssAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file.
PARAMETERS
-ComponentName <ComponentNames>
Specifies the name of the component to configure with the added content. The only allowable value is Microsoft-Windows-Shell-Setup.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Content <String>
Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component.
Required? false
Position? 4
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PassName <PassNames>
Specifies the name of the pass that the content applies to. The only allowable value is oobeSystem.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-SettingName <SettingNames>
Specifies the name of the setting to which the content applies. The acceptable values for this parameter are::
- FirstLogonCommands
- AutoLogon
Required? false
Position? 3
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VirtualMachineScaleSet <PSVirtualMachineScaleSet>
Specify the virtual machine Scale Set object. You can use the New-AzureRmVmssConfig (./New-AzureRmVmssConfig.md)cmdlet to create the object.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
VirtualMachineScaleSet
Parameter 'VirtualMachineScaleSet' accepts value of type 'VirtualMachineScaleSet' from the pipeline
OUTPUTS
Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet
NOTES
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.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... endcontent
New-AzureRmVmssConfig
SYNOPSIS
Adds information to the unattended Windows Setup answer file.
SYNTAX
Add-AzureRmVmssAdditionalUnattendContent [-VirtualMachineScaleSet] <PSVirtualMachineScaleSet> [[-PassName] {OobeSystem}] [[-ComponentName]
{MicrosoftWindowsShellSetup}] [[-SettingName] {AutoLogon | FirstLogonCommands}] [[-Content] <String>] [-DefaultProfile <IAzureContextContainer>]
[-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Add-AzureRmVmssAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file.
PARAMETERS
-ComponentName <ComponentNames>
Specifies the name of the component to configure with the added content. The only allowable value is Microsoft-Windows-Shell-Setup.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Content <String>
Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component.
Required? false
Position? 4
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PassName <PassNames>
Specifies the name of the pass that the content applies to. The only allowable value is oobeSystem.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-SettingName <SettingNames>
Specifies the name of the setting to which the content applies. The acceptable values for this parameter are::
- FirstLogonCommands
- AutoLogon
Required? false
Position? 3
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VirtualMachineScaleSet <PSVirtualMachineScaleSet>
Specify the virtual machine Scale Set object. You can use the New-AzureRmVmssConfig (./New-AzureRmVmssConfig.md)cmdlet to create the object.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
VirtualMachineScaleSet
Parameter 'VirtualMachineScaleSet' accepts value of type 'VirtualMachineScaleSet' from the pipeline
OUTPUTS
Microsoft.Azure.Commands.Compute.Automation.Models.PSVirtualMachineScaleSet
NOTES
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.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... endcontent
New-AzureRmVmssConfig