Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

PowerTip: Use PowerShell to Find Cmdlets that Use CIM

$
0
0

Summary: Use Windows PowerShell to find cmdlets that use CIM.

Hey, Scripting Guy! Question I want to see what Windows PowerShell cmdlets will use a CIM session, but when I use Get-Command,
           only a couple things return. How can I fix this?

Hey, Scripting Guy! Answer Windows PowerShell automatically loads modules, but when looking for parameters, it does not load modules.
           Therefore, if you want to see all the commands that use a CIM session, first load the modules, then search for 
           commands that accept the CIMSession parameter, for example:

Get-Module -ListAvailable | Import-Module

Get-Command -ParameterName cimsession


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>