Link to home
Start Free TrialLog in
Avatar of ivan rosa
ivan rosaFlag for United States of America

asked on

WMIClass options for deployment

Hello Folks,

i'm trying to identify the SCCM site for few computers. I know a local script in powershell would be something like
$SCCMSiteCode = $([WmiClass]"\\localhost\ROOT\ccm:SMS_Client").GetAssignedSite()
$SCCMSiteCode.sSiteCode

Open in new window


however i'm not quiet sure how can I implement it to other PCs remotely. also have to say  "invoke-" is not enabled in my environment

does anybody have any thoughts or other methods?
thanks for looking!
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ivan rosa

ASKER

you did it again oBda.

hm. I just learned something new today!