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

            String objID = request.Inputs["Package ID"].AsString();

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

            using (connection)
            {
                IResultObject col = null;
                col = CM2012Interop.getSCCMPackageDistributionPoints(connection, objID);

                if (col != null)
                {
                    response.WithFiltering().PublishRange(getObjects(col, connection));
                }
                response.Publish("Number of Collections", ObjCount);
            }
        }