Difference between revisions of "CIM via PowerShell"

From vwiki
Jump to navigation Jump to search
m (Added "Useful Commands")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Getting Started ==
== 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 [[Power_Shell#Installed_Version|PowerShell Installed Version]] in order to determine what version of Powershell you have installed currently.
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 [[Power_Shell#Installed_Version|PowerShell Installed Version]] in order to determine what version of Powershell you have installed currently.
* [http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=c913aeab-d7b4-4bb1-a958-ee6d7fe307bc&displaylang=en Windows PowerShell 2.0 (CTP3/RTM)] - Only required on Win 2k8 (Win7 and Win2k8 R2 are shipped with this already installed)
* '''Windows 2008 only''' - Windows 7 and Win2k8 R2 are shipped with these already installed
* [https://connect.microsoft.com/WSMAN/Downloads WinRM 2.0 CTP3]
** [http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=c913aeab-d7b4-4bb1-a958-ee6d7fe307bc&displaylang=en Windows PowerShell 2.0 (CTP3/RTM)]
** [https://connect.microsoft.com/WSMAN/Downloads WinRM 2.0 (CTP3/RTM)]


== Useful Commands ==
== Useful Commands ==
Line 9: Line 10:
* http://technet.microsoft.com/en-us/library/dd819512.aspx
* http://technet.microsoft.com/en-us/library/dd819512.aspx
* Creates a WSMan Session option hashtable which can be passed into WSMan cmdlets
* 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
* <code>HostServiceTicket = ManagedObjectReference.AcquireCimServicesTicket()</code>
** Managed Object Reference - http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vmodl.ManagedObjectReference.html

Latest revision as of 02:51, 18 January 2010

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.

Useful Commands

New-WSManSessionOption

Get-WSManInstance

Get-View

  • Gets a vSphere .net object view

AcquireCimServicesTicket