VMware Cloud Community
patriccc
Contributor
Contributor

Start Powershell scritps from other server

I try to start a Powershell script on a VM windows server.

I try this script in this discussion for update templates automatically.

Automation of Windows Updates for Templates

When i start the script manualy from my manage server then the scripts start perfect. And the script stops perfect. I see all the message in the powerCLI command Windows.

But when i use the task scheduler the scripts hang in the "Running" state.

I se that the vm is convert from template to VM.

And then start the VM.

And then VMWare Tools check.

But then nothing more happening.

It is running for no one day.

I Think the scripts hangs in the powershell command "Invoke-VMScript -ScriptType PowerShell"

I don't see any logs about this. I don't se whats heppening in the scripts.

Does anyone have experience with this problem.

Is the problem in the powershell sripts on the vm or are the problen about task scheduler.

What should I consider when it comes to this problem.

Regards

Patrik

0 Kudos
0 Replies