PowerShell for Windows Admins

Jan 9 2014   4:34PM GMT

Cim cmdlet aliases

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

I don’t use aliases in scripts/functions and don’t use them much at the command line. One alias I do use reasonably often is gwmi for Get-WmiObject – mainly because I do a lot with WMI.  I’m using the CIM cmdlets much more these days and suddenly realised that I didn’t know if they had aliases.

One quick trip to Get-Alias and I had the answer:

£> Get-Alias | where Definition -like ‘*Cim*’

CommandType     Name
———–     —-
Alias           gcai -> Get-CimAssociatedInstance
Alias           gcim -> Get-CimInstance
Alias           gcls -> Get-CimClass
Alias           gcms -> Get-CimSession
Alias           icim -> Invoke-CimMethod
Alias           ncim -> New-CimInstance
Alias           ncms -> New-CimSession
Alias           ncso -> New-CimSessionOption
Alias           rcie -> Register-CimIndicationEvent
Alias           rcim -> Remove-CimInstance
Alias           rcms -> Remove-CimSession
Alias           scim -> Set-CimInstance

Also note change in the way the data is presented compared to earlier versions of Get-Alias

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: