VMware Cloud Community
legioon
Enthusiast
Enthusiast

Is it possible to run any script in vm without OS credential

hi all,

I need to run a script or powershell command in vm via powerCLI or vCO and get results  There is a workflow in vCO for this, but it needs to be credential, For example, I need to take disk informations from os.

can i do this using vm tools or anything else without using any os credential?

Thanks

0 Kudos
1 Reply
vembutech1
Hot Shot
Hot Shot

You can run any powershell script as service. You don't require user authentication for running. You can make it as system service or runs under a user.

https://support.microsoft.com/en-us/help/137890/how-to-create-a-user-defined-service

0 Kudos