Automation

 View Only
  • 1.  host profile root password script update

    Posted Sep 11, 2018 02:49 PM

    Hey Luc,

    I've been digging through your scripts for host profile configuration and came across your root password set for host profile script.

    When I went to execute the script I'm getting an error:  The property 'Policy' cannot be found on this object.

    its referencing to the part of the script that does so: (line 49) $spec.ApplyProfile.Security.Policy = @($secpol)

    Digging through API's I do not see anything pertaining to policy under vmware.vim.hostprofileconfigspec.applyprofile.security

    am I missing something here or has the script not been touched in a while and is now deprecated due to API changes.

    thanks in advance!



  • 2.  RE: host profile root password script update

    Posted Sep 11, 2018 03:34 PM

    Which vSphere version are you using?

    The format/layout of the HostProfile object might have changed



  • 3.  RE: host profile root password script update

    Posted Sep 11, 2018 03:57 PM

    vCenter: 6.5 U1g

    PowerCLI: 10.1.0 Build 8346946

    Powershell: 5.1.14409.1005



  • 4.  RE: host profile root password script update

    Posted Sep 11, 2018 06:22 PM

    It looks as if the SecurityProfile part is not visible anymore in PowerCLI.

    I'll have to some further tests.



  • 5.  RE: host profile root password script update

    Posted Sep 11, 2018 08:38 PM

    Thanks a bunch for all your help in the community!



  • 6.  RE: host profile root password script update

    Posted Oct 03, 2019 10:42 AM

    Hello, I'm searching also for a solution to change the password for all the host profiles by powershell.

    Did you find a solution for 6.5?



  • 7.  RE: host profile root password script update

    Posted Oct 03, 2019 11:03 AM

    Not really.

    My method from Change The Root Password In Hosts And Host Profiles doesn't seem to work anymore in recent vSphere releases.



  • 8.  RE: host profile root password script update

    Posted Mar 19, 2021 02:55 PM

    We were about to head down this road and I found this thread. I am going to assume nothing has changed since 6.5 (we are mostly on 7.0)?



  • 9.  RE: host profile root password script update

    Posted Mar 19, 2021 05:02 PM

    There is KB68079 , but I haven't found a way yet to automate it.



  • 10.  RE: host profile root password script update

    Posted Feb 28, 2022 03:45 PM

    Any update on this for 6.7 or 7.0?