Skip to content

Instantly share code, notes, and snippets.

@ewypych
Created March 21, 2017 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewypych/3feac66d4e67a93f13eb7477b7169e0f to your computer and use it in GitHub Desktop.
Save ewypych/3feac66d4e67a93f13eb7477b7169e0f to your computer and use it in GitHub Desktop.
##############################################
#
# 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