Quantcast
Channel: THWACK: Popular Discussions - Script Lab
Viewing all articles
Browse latest Browse all 9937

How can I have PowerShell talk to SAM and CMDB

$
0
0

     I have a powershell script that talks to SAM at the backend, which then talks to CMDB. PS calls SAM.exe then "Unmanage" a CI from CMDB.

      # Unamanage CI in CMDB

      c:\SAM\SAM.exe /BATCH /h $PCName /f UNMANAGE  /c $ChangeNumber

    

     # Remanages CI in CMDB

      c:\SAM\SAM.exe /BATCH /h $PCName /f MANAGE

 

Is there a way that I can also update a field called "Memory" to "16GB" after it has unmanaged the PCName.

 

Any help would be grateful.


Viewing all articles
Browse latest Browse all 9937

Trending Articles



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