Example #1
0
 public PingTest(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
     : base(logger, networkServices, fileAndFolderServices)
 {
     ActionName  = "Ping Test";
     Description = "Runs a ping test against the device list.";
     Category    = "Other";
 }
Example #2
0
 public PingTest(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) 
     : base(logger, networkServices, fileAndFolderServices)
 {
     ActionName = "Ping Test";
     Description = "Runs a ping test against the device list.";
     Category = "Other";
 }
 protected SccmScheduleActionBase(ILoggerService logger, IWmiServices wmiService,
     ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
     : base(logger, networkServices, fileAndFolderServices)
 {
     WmiService = wmiService;
     SccmClientService = sccmClientService;
 }
Example #4
0
 public FileCopy(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
     : base(logger, networkServices, fileAndFolderServices)
 {
     ActionName = "File Copy";
     Description = "Copy file to all devices in the list.";
     Category = "Other";
 }
 public AppDeploymentScheduleSccm(ILoggerService logger, IWmiServices wmiService, ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) 
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName = "Application Deployment Evaluation Cycle";
     Description = "Forces SCCM to schedule an Application Deployment check on the client.";
     Category = "SCCM";
 }
  public HardwareInventoryCycleSccm(ILoggerService logger, IWmiServices wmiService, ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) 
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName = "Hardware Inventory Cycle";
     Description = "Forces SCCM to schedule a Hardware Inventory check on the client.";
     Category = "SCCM";
 }
 public UserPolicyRetrievalCycleSccm(ILoggerService logger, IWmiServices wmiService, ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) 
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName = "User Policy Retrieval Cycle";
     Description = "Forces SCCM to schedule a User Policy Retrieval check on the client.";
     Category = "SCCM";
 }
Example #8
0
        protected Action(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
        {
            Logger                = logger;
            NetworkServices       = networkServices;
            FileAndFolderServices = fileAndFolderServices;

            CancellationToken = new CancellationTokenSource();
        }
Example #9
0
        public DeleteOldProfiles(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices) : base(logger, networkServices, fileAndFolderServices)
        {
            _wmi = wmiServices;

            ActionName = "Delete Old User Profiles";
            Description = "Deletes profiles older than a provided date.";
            Category = "Windows Management";
        }
        public SccmRemoteAccessRegModify(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IRegistryServices registryServices) : base(logger, networkServices, fileAndFolderServices)
        {
            _registry = registryServices;

            ActionName = "SCCM Remote Access Registry Modify";
            Description = "Changes the remote access options for SCCM remote control.";
            Category = "SCCM";
        }
Example #11
0
        protected Action(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
        {
            Logger = logger;
            NetworkServices = networkServices;
            FileAndFolderServices = fileAndFolderServices;

            CancellationToken = new CancellationTokenSource();
        }
Example #12
0
        public ForceLogOff(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName  = "Force Log Off";
            Description = "Forces the remote user to log off.";
            Category    = "Windows Management";

            _wmiServices = wmiServices;
        }
Example #13
0
        public ForceReboot(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName  = "Force Reboot";
            Description = "Force reboots the remote computer.";
            Category    = "Windows Management";

            _wmiServices = wmiServices;
        }
Example #14
0
        public RunGpUpdate(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IPsExecServices psExecServices) 
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "Force Group Policy Update";
            Description = "Forces a GPUpdate on the machine(s).";
            Category = "Windows Management";

            _psExecServices = psExecServices;
        }
Example #15
0
        public GetSerialNumber(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices) 
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "Get Device Serial Number";
            Description = "Gets the serial number of the selected device.";
            Category = "Reporting";

            _wmiServices = wmiServices;
        }
Example #16
0
        public ForceLogOff(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices) 
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "Force Log Off";
            Description = "Forces the remote user to log off.";
            Category = "Windows Management";

            _wmiServices = wmiServices;
        }
Example #17
0
        public TightVNCInstall(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IPsExecServices psExecServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "TightVNC Install";
            Description = "Installs the version of TightVNC from the components directory. [Requires Credentials]";
            Category = "Windows Management";

            _psExecServices = psExecServices;
        }
Example #18
0
        public GetLoggedOnUser(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices) 
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "Get Logged On User";
            Description = "Gets the logged in user of a remote system.";
            Category = "Reporting";

            _wmiServices = wmiServices;
        }
Example #19
0
        public DeleteGpoCache(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IPsExecServices psExecServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "Delete GPO Cache";
            Description = "Deletes the GPO cache of the remote computer(s) and forces GPUpdate.";
            Category = "Windows Management";

            _psExecServices = psExecServices;
        }
Example #20
0
        public GetSystemModel(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices) 
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "Get Device Model ID";
            Description = "Gets the model ID of the selected device.";
            Category = "Reporting";

            _wmiServices = wmiServices;
        }
Example #21
0
        public RunGpUpdate(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IPsExecServices psExecServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName  = "Force Group Policy Update";
            Description = "Forces a GPUpdate on the machine(s).";
            Category    = "Windows Management";

            _psExecServices = psExecServices;
        }
Example #22
0
        public ForceReboot(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices) 
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "Force Reboot";
            Description = "Force reboots the remote computer.";
            Category = "Windows Management";

            _wmiServices = wmiServices;
        }
Example #23
0
        public RepairWmi(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices) 
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "Repair WMI";
            Description = "Repairs the WMI of the device(s).";
            Category = "Windows Management";

            _wmiServices = wmiServices;
        }
Example #24
0
 public SoftwareUpdateScanCycle(ILoggerService logger, IWmiServices wmiService,
                                ISccmClientServices sccmClientService, INetworkServices networkServices,
                                IFileAndFolderServices fileAndFolderServices)
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName  = "Software Update Scan Cycle";
     Description = "Forces SCCM to schedule a Software Update check on the client.";
     Category    = "SCCM Client Actions";
 }
Example #25
0
        public TightVNCRemove(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices) 
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName = "TightVNC Remove";
            Description = "Removes TightVNC from the specified computers. [Requires Credentials]";
            Category = "Windows Management";

            _wmiServices = wmiServices;
        }
Example #26
0
        public FileCopy(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWindowService windowService)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName  = "File Copy";
            Description = "Copy file to all devices in the list.";
            Category    = "Other";

            _windowService          = windowService;
            HasUserInterfaceElement = true;
            UiCallback = CallbackMethod;
        }
Example #27
0
        public RepairWmi(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName          = "Repair WMI";
            Description         = "Repairs the WMI of the device(s).";
            Category            = "Windows Management";
            RequiresCredentials = true;

            UiCallback = CallbackMethod;
            HasUserInterfaceElement = true;

            _wmiServices = wmiServices;
        }
Example #28
0
        public SccmRemoteAccessRegModify(
            ILoggerService logger,
            INetworkServices networkServices,
            IFileAndFolderServices fileAndFolderServices,
            IRegistryServices registryServices,
            IWindowService windowService) : base(logger, networkServices, fileAndFolderServices)
        {
            _windowService = windowService;
            _registry      = registryServices;

            ActionName  = "SCCM Remote Access Registry Modify";
            Description = "Changes the remote access options for SCCM remote control.";
            Category    = "SCCM";

            HasUserInterfaceElement = true;
            UiCallback = CallbackMethod;
        }
Example #29
0
        public Logger(IFileAndFolderServices fileAndFolderServices)
        {
            _fileAndFolderServices    = fileAndFolderServices;
            Application.Current.Exit += OnApplicationExit;

            _logFilePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\Andromeda\\Logs";
            _fullLogPath = _logFilePath + "\\" + LogFileName;

            ValidateLogDirectoryExists();

            if (!File.Exists(_fullLogPath))
            {
                _fileAndFolderServices.CreateNewTextFile(_fullLogPath);
            }

            _cancellationToken = new CancellationTokenSource();
            _loggingTask       = Task.Factory.StartNew(ProcessQueue, _cancellationToken.Token);

            LogMessage("Logger initiated.");
        }
Example #30
0
        public Logger(IFileAndFolderServices fileAndFolderServices)
        {
            _fileAndFolderServices = fileAndFolderServices;
            Application.Current.Exit += OnApplicationExit;

            _logFilePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\Logs";
            _fullLogPath = _logFilePath + "\\" + LogFileName;

            ValidateLogDirectoryExists();

            if (!File.Exists(_fullLogPath))
            {
                _fileAndFolderServices.CreateNewTextFile(_fullLogPath);
            }

            var loggingThread = new Thread(new ThreadStart(ProcessQueue));
            loggingThread.IsBackground = true;
            loggingThread.Start();

            LogMessage("Logger initiated.");
        }
Example #31
0
 public WmiServices(ILoggerService logger, IFileAndFolderServices fileAndFolderServices, IPsExecServices psExecServices)
 {
     _logger = logger;
     _fileAndFolderServices = fileAndFolderServices;
     _psExecServices = psExecServices;
 }
Example #32
0
 protected SccmScheduleActionBase(ILoggerService logger, IWmiServices wmiService,
                                  ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
     : base(logger, networkServices, fileAndFolderServices)
 {
     WmiService        = wmiService;
     SccmClientService = sccmClientService;
 }
Example #33
0
 public UserPolicyRetrievalCycleSccm(ILoggerService logger, IWmiServices wmiService, ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName  = "User Policy Retrieval Cycle";
     Description = "Forces SCCM to schedule a User Policy Retrieval check on the client.";
     Category    = "SCCM Client Actions";
 }
Example #34
0
        public GetSystemModel(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName  = "Get Device Model ID";
            Description = "Gets the model ID of the selected device.";
            Category    = "Reporting";

            _wmiServices = wmiServices;
        }
Example #35
0
        public DeleteOldProfiles(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices, IWindowService windowService) : base(logger, networkServices, fileAndFolderServices)
        {
            _wmi           = wmiServices;
            _windowService = windowService;

            ActionName  = "Delete Old User Profiles";
            Description = "Deletes profiles older than a provided date.";
            Category    = "Windows Management";

            UiCallback = CallbackMethod;
            HasUserInterfaceElement = true;
        }
Example #36
0
 public StartCmrcService(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) : base(logger, networkServices, fileAndFolderServices)
 {
     ActionName  = "Start CMRCService";
     Description = "Starts the CMRC Service on remote device(s).";
     Category    = "SCCM";
 }
Example #37
0
        public GetLoggedOnUser(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName  = "Get Logged On User";
            Description = "Gets the logged in user of a remote system.";
            Category    = "Reporting";

            _wmiServices = wmiServices;
        }
Example #38
0
 public HardwareInventoryCycleSccm(ILoggerService logger, IWmiServices wmiService, ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName  = "Hardware Inventory Cycle";
     Description = "Forces SCCM to schedule a Hardware Inventory check on the client.";
     Category    = "SCCM Client Actions";
 }
Example #39
0
        public GetSerialNumber(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IWmiServices wmiServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName  = "Get Device Serial Number";
            Description = "Gets the serial number of the selected device.";
            Category    = "Reporting";

            _wmiServices = wmiServices;
        }
Example #40
0
        public DeleteGpoCache(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices, IPsExecServices psExecServices)
            : base(logger, networkServices, fileAndFolderServices)
        {
            ActionName  = "Delete GPO Cache";
            Description = "Deletes the GPO cache of the remote computer(s) and forces GPUpdate.";
            Category    = "Windows Management";

            _psExecServices = psExecServices;
        }
Example #41
0
 public AppDeploymentScheduleSccm(ILoggerService logger, IWmiServices wmiService, ISccmClientServices sccmClientService, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices)
     : base(logger, wmiService, sccmClientService, networkServices, fileAndFolderServices)
 {
     ActionName  = "Application Deployment Evaluation Cycle";
     Description = "Forces SCCM to schedule an Application Deployment check on the client.";
     Category    = "SCCM Client Actions";
 }
Example #42
0
 public WmiServices(ILoggerService logger, IFileAndFolderServices fileAndFolderServices, IPsExecServices psExecServices)
 {
     _logger = logger;
     _fileAndFolderServices = fileAndFolderServices;
     _psExecServices        = psExecServices;
 }
Example #43
0
 public CleanComputerCaches(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) : base(logger, networkServices, fileAndFolderServices)
 {
     ActionName  = "Clean Computer Temp/Cache Files";
     Description = "Cleans the temp and caches files on a remote device.";
     Category    = "Maintenance";
 }
Example #44
0
 public ResetWindowsUpdateService(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) : base(logger, networkServices, fileAndFolderServices)
 {
     ActionName  = "Reset Windows Update Service";
     Description = "Resets the Windows Update Service on a device and clears update cache.";
     Category    = "Windows Management";
 }
Example #45
0
 public CleanComputerCaches(ILoggerService logger, INetworkServices networkServices, IFileAndFolderServices fileAndFolderServices) : base(logger, networkServices, fileAndFolderServices)
 {
     ActionName = "Clean Computer Temp/Cache Files";
     Description = "Cleans the temp and caches files on a remote device.";
     Category = "Maintenance";
 }