VMware Cloud Community
BRomister
Contributor
Contributor

Set-OSCustomizationSPecs does not work

Hi Folks!

I have a trouble when setting OSCustomizationSPecs  to machine

when machine is created or when cloning from template I need to do some customizations like change netbios name, computer name, workgroupe for examle.

I've created OSCustomizationSPecs win7x64

$newosSpec = New-OSCustomizationSpec -Name 'Win7x64' `

    -FullName 'Glenn Sizemore' `

    -OrgName 'Get-Admin' `

    -OSType 'Windows' `

    -Type 'Persistent' `

    -Workgroup 'test'

    -NamingScheme 'Vm' `

and I can see it in Customization Specs managet in GUI client

so, it's ok

trying to apply.

PS C:\temp\vmware_scripts> Get-VM -Name test-vm | Set-VM -OSCustomizationSpec Wi

n7x64 -confirm:$false

and it's ok, no errors

output:

Name                 PowerState Num CPUs MemoryGB

----                 ---------- -------- --------

test-vm              PoweredOff 2        2,000

starting VM and do not see changes, restrart again, the same, no chages

Pleas help.

0 Kudos
0 Replies