Pages: [1]
Print
Author Topic: Powershell Script to Add a console/shell user to all ESX servers in VI  (Read 1312 times)
dma0211
Newbie
*
Posts: 15


View Profile
« on: March 31, 2009, 07:39:16 AM »

Code:
$VIServer = Read-Host "Please enter a Virtual Center name"

connect-viserver $VIServer

foreach ($hostx in get-vmhost ) {
Connect-VIServer -server $hostx.name
New-VMHostAccount -ID newuser -grantshellaccess
}
Logged
Pages: [1]
Print
Jump to: