Automation

 View Only
  • 1.  How to create a local user account - Multiple Servers

    Posted Apr 08, 2023 03:03 AM

    Hello Team,

    Please can someone help me to identify the all virtual machines' local user account details from OS?

    Also how to create a new local user account and set the password to never expires for bulk machines. 



  • 2.  RE: How to create a local user account - Multiple Servers

    Posted Apr 08, 2023 08:26 AM

    Do you mean local accounts in the Guest OS?



  • 3.  RE: How to create a local user account - Multiple Servers

    Posted Apr 08, 2023 02:56 PM

    Yes  I am looking at local user account creation in the Guest OS for bulk VMs, then need to add that local user account account to the "Administrators" Group permissions.



  • 4.  RE: How to create a local user account - Multiple Servers
    Best Answer

    Posted Apr 08, 2023 03:19 PM

    That is not really a PowerCLI question, but something to be done inside the Guest OS.
    You can run code inside the Guest OS via the Invoke-VMScript cmdlet, provided the VMs have VMware Tools installed.