Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 175326

Windows 10 2015 LTSB VM

$
0
0

I am deploying a Windows 10 2015 Enterprise LTSB VM from a template and am having issues with configuring the VM after deployment.

The VM Deploys just fine but configuration thereafter is not working.

I am sure my workflow is correct as I am using it at the same time to deploy some Windows Server 2012 R2 Standard VM's and they work just fine.

 

It may have to do with the additional security on Windows 10 and running remote powershell and powercli scripts

 

At the moment my template has:

A User that has Administrator privileges

I have set the Execution policy to Bypass (Set-ExecutionPolicy Bypass)

Invoke-VMScript or Copy-VMGuestFile do not work.

Scripts are being executed with the Administrator user

 

Examples of failing commands are:

$st = 'TZUtil /s ' + '"' + $Using:timezone + '"'

Invoke-VMScript -VM $vmname -ScriptType Powershell -Guestuser $guestuser -GuestPassword $guestpass -ScriptText $st

 

$st = "mkdir c:\Build"

Invoke-VMScript -VM $vmname -ScriptType Powershell -GuestUser $guestuser -GuestPassword $guestpass -ScriptText $st

 

#Copy the VMInfo file to the VM

Copy-VMGuestFile -VM $vmname -LocalToGuest -Source C:\Build\VMInfo.ps1 -Destination C:\Build -GuestUser $guestuser -GuestPassword $guestpass

 

Anyone got any ideas?

Thanks


Viewing all articles
Browse latest Browse all 175326

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>