Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Add-AzureVMAdditionalUnattendContent

Add-AzureVMAdditionalUnattendContent

microsoft.azure.commands.compute.dll

Synopsis

Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.

Syntax

Add-AzureVMAdditionalUnattendContent [-VM] [-Content] [-SettingName] [-Profile] [-InformationAction] [-InformationVariable] [<CommonParameters>]

Detailed Description

Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.

Parameters

-VM <PSVirtualMachine>

VM object to modify. Create one using New-AzureVMConfig cmdlet or Get one using the Get-AzureVM cmdlet.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByValue, ByPropertyName)

Accept wildcard characters?

false

-Content <String>

Specifies the base-64 encoded XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less that 4 KB and must include the root element for the setting or feature that is being inserted.

Aliases

None

Required?

false

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-SettingName <String>

Specifies the name of the setting to which the content applies.

Possible values are:

FirstLogonCommands

AutoLogon

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Profile <AzureProfile>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-InformationAction <ActionPreference>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-InformationVariable <String>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

$vm = New-AzureVMConfig -VMName $vmname -VMSize $vmsize;

$vm = Set-AzureVMOperatingSystem -VM $vm -Windows -ComputerName $computerName -Credential $cred

$aucSetting = "AutoLogon";
$aucContent = "<UserAccounts><AdministratorPassword><Value>" + $password + "</Value><PlainText>true</PlainText></AdministratorPassword></UserAccounts>";

$vm = Add-AzureVMAdditionalUnattendContentConfig -VM $vm -Content $aucContent -SettingName $aucSetting;