Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Created December 11, 2013 18:43
Show Gist options
  • Save jcpowermac/7916071 to your computer and use it in GitHub Desktop.
Save jcpowermac/7916071 to your computer and use it in GitHub Desktop.
Add PowerPath License
### SCRIPT TO ADD POWERPATH LICENSES TO VDI HOSTS ####
Get-Vmhost | % {
rpowermt setup add_host host=$_ username=root password=
rpowermt register host=$_
$vmhostname = $_.Name.ToString().split('.')[0];
rpowermt check_registration host=$vmhostname
}
### END ###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment