GithubHelp home page GithubHelp logo

landonc / vmrc-direct-links Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 5 KB

Creates an HTML file with direct VMRC links for VMware VMs located in vCenter. It is meant to provide the ability to console to a VM when vCenter is offline during maintenance.

PowerShell 100.00%

vmrc-direct-links's Introduction

VMRC-Direct-Links

Creates an HTML file with direct VMRC links for VMware VMs located in vCenter. It is meant to provide the ability to console to a VM when vCenter is offline during maintenance.

Tested With

  • Powershell 4
  • PowerCLI 6.0
  • vSphere 5.5, 6.0

Configuration

Create a VICredentialStore with credentials for your vcenter server and credentials for every ESXi server in the cluster.

PowerCLI commands to create the VICredentialStore file.

Passwords are hashed but are reversible. Rights to the file are restricted to the user who creates the file

New-VICredentialStoreItem -Host <vcenter_name> -User <user_name> -Password <password> -File 'c:\Path\To\Credential\File.xml'
New-VICredentialStoreItem -Host <esxi_server_01> -User <user_name> -Password <password> -File 'c:\Path\To\Credential\File.xml'
New-VICredentialStoreItem -Host <esxi_server_02> -User <user_name> -Password <password> -File 'c:\Path\To\Credential\File.xml'
New-VICredentialStoreItem -Host <esxi_server_XX> -User <user_name> -Password <password> -File 'c:\Path\To\Credential\File.xml'

Parameters

PARAMETER
-vcenter
    The target vcenter to connect to
-datacenter
    The target datacenter to work/search within
-cluster
    The cluster in which to deploy the cloned templates
-vmFolder
    [Optional] The folder path to the VMs you want to create VMRC links.  If not defined will provide links for all VMs in the defined Cluster
-credPath
    The path to the VICredentialStore file that contains the necessary credentials to connect to vCenter and each ESXi host directly
-outFile
    The file path to where you want the output stored

#####EXAMPLE

./GenerateLinks.ps1 -vcenter yourvcenterserver.domain.local -datacenter 'Datacenter Name' -cluster 'Cluster String' -vmFolder 'Servers\Windows 2003' -credPath 'c:\temp\mycredentails.xml' -outFile 'c:\temp\vmrclinks.html'

vmrc-direct-links's People

Contributors

landonc avatar

Watchers

 avatar James Cloos avatar

Forkers

fcenobi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.