protected override void ProcessRecord() { if (string.IsNullOrWhiteSpace(this.Name)) { foreach (ManagementAgent ma in MiisController.GetManagementAgents()) { this.WriteObject(ma); } } else { this.WriteObject(MiisController.GetManagementAgent(this.Name, this.Reload.IsPresent)); } }
protected override void ProcessRecord() { ManagementAgent instance = this.MAInstance; if (instance == null) { foreach (ManagementAgent ma in MiisController.GetManagementAgents()) { ma.SuppressFullSyncWarning(); } } else { instance.SuppressFullSyncWarning(); } }