コード例 #1
0
        public void Execute(IActivityRequest request, IActivityResponse response)
        {
            SCCMServer = settings.SCCMSERVER;
            userName   = settings.UserName;
            password   = settings.Password;

            int nodeID = request.Inputs["Folder ID"].AsInt32();

            //Setup WQL Connection and WMI Management Scope
            WqlConnectionManager connection = CMInterop.connectSCCMServer(SCCMServer, userName, password);

            using (connection)
            {
                CMInterop.deleteConsoleFolder(connection, nodeID);

                ObjCount++;

                response.Publish("Number of Object Container Nodes", ObjCount);
            }
        }