Question

Locked

power shell

By kilaruv ·
how to connet a remote system through power shell?

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Windows PowerShell

More here:
http://technet.microsoft.com/en-us/magazine/cc671178.aspx

Remote system through power shell.

# Get the Root Management Server.
$managementServer = Get-ManagementServer -Root: $true

# Create the discovery configuration for computer2 and computer3.
$discoConfig = New-WindowsDiscoveryConfiguration -ComputerName: computer2, computer3

# Discover the computers.
$discoResult = Start-Discovery -ManagementServer: $managementServer -WindowsDiscoveryConfiguration: $discoConfig

# Install an agent on each computer.
Install-Agent -ManagementServer: $managementServer -AgentManagedComputer: $discoResult.CustomMonitoringObjects

At this point, the agent is installed on the remote system that should be monitored, but there is still one last step where the management server must actually accept the new agent before it is completely monitored. If no further action is taken, the monitoring server will automatically accept the new agent for monitoring. But this acceptance process can also be fast-tracked by using the Get-AgentPendingAction cmdlet. This one-liner will fast-track the agent acceptance process:

Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.

Back to Windows Forum
2 total posts (Page 1 of 1)  

Operating Systems Forums