Add-AzVmssAdditionalUnattendContent
Voegt informatie toe aan het antwoordbestand voor Windows Setup zonder toezicht.
Notitie
Dit is de vorige versie van onze documentatie. Raadpleeg de meest recente versie voor actuele informatie.
Syntax
Add-AzVmssAdditionalUnattendContent
[-VirtualMachineScaleSet] <PSVirtualMachineScaleSet>
[[-PassName] <PassNames>]
[[-ComponentName] <ComponentNames>]
[[-SettingName] <SettingNames>]
[[-Content] <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De cmdlet Add-AzVmssAdditionalUnattendContent voegt informatie toe aan het antwoordbestand voor Windows Setup zonder toezicht.
Voorbeelden
Voorbeeld 1: Informatie toevoegen aan het antwoordbestand voor windows-installatie zonder toezicht
Add-AzVmssAdditionalUnattendContent -VirtualMachineScaleSet $VMSS -ComponentName $AUCComponentName -Content $AUCContent -PassName $AUCPassName -SettingName $AUCSetting
Met deze opdracht wordt informatie toegevoegd aan het antwoordbestand voor Windows Setup zonder toezicht.
Parameters
Hiermee geeft u de naam van het onderdeel dat moet worden geconfigureerd met de toegevoegde inhoud. De enige toegestane waarde is Microsoft-Windows-Shell-Setup.
| Type: | Nullable<T>[ComponentNames] |
| Accepted values: | MicrosoftWindowsShellSetup |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Hiermee geeft u de xml-opgemaakte inhoud op die wordt toegevoegd aan het unattend.xml-bestand voor het opgegeven pad en het opgegeven onderdeel.
| Type: | String |
| Position: | 4 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
De referenties, het account, de tenant en het abonnement dat wordt gebruikt voor communicatie met Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Hiermee geeft u de naam op van de pass waarop de inhoud van toepassing is. De enige toegestane waarde is oobeSystem.
| Type: | Nullable<T>[PassNames] |
| Accepted values: | OobeSystem |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Hiermee geeft u de naam van de instelling waarop de inhoud van toepassing is. De acceptabele waarden voor deze parameter zijn:
- FirstLogonCommands
- Autologon
| Type: | Nullable<T>[SettingNames] |
| Accepted values: | AutoLogon, FirstLogonCommands |
| Position: | 3 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Geef het virtuele-machineschaalsetobject op. U kunt de cmdlet New-AzVmssConfig gebruiken om het object te maken.
| Type: | PSVirtualMachineScaleSet |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Invoerwaarden
Nullable<T>[[Microsoft.Azure.Management.Compute.Models.PassNames, Microsoft.Azure.Management.Compute, Version=23.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]
Nullable<T>[[Microsoft.Azure.Management.Compute.Models.ComponentNames, Microsoft.Azure.Management.Compute, Version=23.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]
Nullable<T>[[Microsoft.Azure.Management.Compute.Models.SettingNames, Microsoft.Azure.Management.Compute, Version=23.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]