Reply to Message

View discussion in a popup

Replying to:
chicagovm
Enthusiast
Enthusiast

Ouch.. well.. I just would like a wflw which installs or removes the agents on VMs, after the OS / Mcafee agent is installed. So, seeing how you do you have it installed in the template.. we did try that.. I think we had an issue but fixable.


Otherwise, I just would like to figure out how to call PS commands to install or query from a wflow with a "pop-up" sort of the server name.

Our decommission process requires the engineers to remove the agent locally from a PS command on the server ( in our case multiple servers )  locally with the following PS command -

$resID = Get-WmiObject -computername OURSCCMSERVER -Query "select resourceID from sms_r_system where name like 'SERVER_NAME'" -Namespace "root\sms\site_xx01"; $computerID = $resID.ResourceID; $comp = [wmi]"\\OURSCCMSERVER\root\sms\site_xx01:sms_r_system.resourceid=$computerID"; $comp.psbase.delete()

or from the SCCM console by deleting..

So, not sure which is easier..at this point.

Reply
0 Kudos