Jan 30, 2017 · The second line calls get-adcomputer to return the AD computer object of the host name. Then, we check to make sure the computer name was actually found. If it wasn't, it'll tell you and return nothing. If it was found, then we find the OU that matches the one given in the Distinguished Name of the computer and return that object.
Host Hardware one-liner: Details the hosts hardware details: Click Here: vProfiles: A Script to automatically configure your hosts from an existing host: Click Here: More One Liners: List number of VM’s per resource pool and list Host, Cluster, Number of VMs and number of templates: Click Here: Provision ESX Hosts through PowerShell: A Link ...