Created
March 21, 2017 18:12
-
-
Save ewypych/3feac66d4e67a93f13eb7477b7169e0f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################## | |
# | |
# Functions for a fast connect to vCenter | |
# and vCloud Director servers | |
# | |
# Change them with your necessities | |
# and paste to one of the Powershell Profiles | |
# | |
# Created by: Emil Wypych | |
# Created on: 21-03-2017 | |
# | |
############################################### | |
function visrv1 { | |
Connect-VIServer -Server some-srv1.vsphere.local | |
} | |
function visrv2 { | |
Connect-VIServer -Server some-srv2.vsphere.local | |
} | |
function cisrv1 { | |
Connect-CIServer -Server somesrv1.example.com | |
} | |
function cisrv2 { | |
Connect-CIServer -Server somesrv2.example.com | |
} | |
function vidisconnect { | |
Disconnect-VIServer -Confirm:$false | |
} | |
function cidisconnect { | |
Disconnect-CIServer -Confirm:$false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment