Quantcast
Channel: SCSM PowerShell Cmdlets
Viewing all articles
Browse latest Browse all 306

New Post: Get-SCSMObject not returning computers

$
0
0
Maybe you're looking at the wrong class. Have you tried Microsoft.Windows.Computer$ instead?

Try to go backwards instead like this:

$Class = Get-SCSMClass -Name system.entity #most parent class

$obj = Get-SCSMObject -Class $Class -Filter "Name -like servername" #make sure to have filter here, or you're gonna wait all night : )

$obj.GetLeastDerivedNonAbstractClass()

This will get you the class of the object.

Viewing all articles
Browse latest Browse all 306

Trending Articles



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