VMware Cloud Community
tomattufts
Enthusiast
Enthusiast

Run program as guest works only if user is logged in

Hi All,

I am attempting to run a powershell script in the run program as guest workflow to configure Windows Server 2012 VMs. My problem is that the workflow runs successfully only if the authenticated user is logged in. If the user is not logged in it fails. I am running the script with the following parameters.

Anyone have any ideas to get around having to have the user logged in?

vmUsername:     tester

vmPassword:     SecureString

vm:       myGuest

interactiveSession:     no

programPath:     C:\Windows\system32\cmd.exe

arguments:     /c powershell c:\OrchestratorInstall\myPsScript.ps1

0 Kudos
1 Reply
Belker
Contributor
Contributor

I know this is old, but did you ever find a resolution to this?

I'm experiencing something similar and was wondering if you changed something related to the secure string saving to the logged in user's profile.

0 Kudos