-
Needs PowerShell 3.0 or better
-
Enable execution of PowerShell scripts by starting an administratively privileged command prompt and issuing:
powershell set-executionpolicy unrestricted
-
Download vipr.psm1
-
Create a new script or type interactively on PowerShell command prompt:
Import-Module .\vipr.psm1 Vipr-Login -viprApiUri https://myViprInstance:4443 -user myUserID -password myPassword Vipr-GetHosts Vipr-GetTenant Vipr-AddHost -hostname myHostname -type Windows Vipr-AddInitiator -hostId myHostId -portWwn 10:00:00:00:11:22:33:44 Etc.