public void Execute(IActivityRequest request, IActivityResponse response) { SCCMServer = settings.SCCMSERVER; userName = settings.UserName; password = settings.Password; String collectionID = request.Inputs["Collection ID"].AsString(); String variableName = request.Inputs["Variable Name"].AsString(); //Setup WQL Connection and WMI Management Scope WqlConnectionManager connection = CMInterop.connectSCCMServer(SCCMServer, userName, password); using (connection) { CMInterop.deleteSCCMCollectionVariable(connection, variableName, collectionID); response.Publish("Variable Name", variableName); response.Publish("Collection ID", collectionID); } }