예제 #1
0
        public override string[] Execute(ParsedArgs args)
        {
            if (string.IsNullOrEmpty(args.ProcessName))
            {
                throw new EDDException("ProcessName cannot be empty");
            }

            LDAP          procQuery       = new LDAP();
            List <string> procComputers   = procQuery.CaptureComputers();
            WMI           processSearcher = new WMI();
            List <string> systemsWithProc = processSearcher.CheckProcesses(procComputers, args.ProcessName);

            return(systemsWithProc.ToArray());
        }