top of page

Trouver le sitecode SCCM (MECM) en PowerShell

Dernière mise à jour : 17 janv.

L'information du sitecode SCCM (MECM) est stockée dans WMI, nous pouvons donc aller rechercher l'info en utilisant du PowerShell.


Voici la commande à utiliser :


$SCCMSiteCode = $([WmiClass]"\\localhost\ROOT\ccm:SMS_Client").GetAssignedSite()
$SCCMSiteCode.sSiteCode

Si tu souhaites en savoir plus sur la méthode SMS_Client je te redirige sur ce lien :


Enjoy ! 😎

bottom of page