CIM via PowerShell
Jump to navigation
Jump to search
Getting Started
The PowerShell components required (below), are only capable of being installed on Windows 6 and later (Vista, Win2k8, Windows 7). Windows XP and Windows 2003 are not capable of performing the remoting features required in order to be able to support WinRM (although this may change in future releases). See PowerShell Installed Version in order to determine what version of Powershell you have installed currently.
- Windows 2008 only - Windows 7 and Win2k8 R2 are shipped with these already installed
Useful Commands
New-WSManSessionOption
- http://technet.microsoft.com/en-us/library/dd819512.aspx
- Creates a WSMan Session option hashtable which can be passed into WSMan cmdlets
Get-WSManInstance
- http://technet.microsoft.com/en-us/library/dd819521.aspx
- Retrieves an instance of a management resource that is specified by a resource URI
Get-View
- Gets a vSphere .net object view
AcquireCimServicesTicket
- http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.HostSystem.html
- Creates and returns a one-time credential used to establish a remote connection to a CIM interface
HostServiceTicket = ManagedObjectReference.AcquireCimServicesTicket()
- Managed Object Reference - http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vmodl.ManagedObjectReference.html