Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft Exam AZ-800 Topic 5 Question 69 Discussion

Actual exam question for Microsoft's AZ-800 exam
Question #: 69
Topic #: 5
[All AZ-800 Questions]

SIMULATION

Task 2

You need to ensure that you can manage SRV1 remotely by using PowerShell

Show Suggested Answer Hide Answer
Suggested Answer: A

To manage SRV1 remotely using PowerShell, you'll need to set up PowerShell Remoting. Here's a step-by-step guide:

Step 1: Enable PowerShell Remoting on SRV1 On SRV1, run the following command to enable PowerShell Remoting:

Enable-PSRemoting -Force

This command configures the computer to receive PowerShell remote commands that are sent by using the WS-Management technology.

Step 2: Configure the TrustedHosts List (If Needed) If you're managing SRV1 from a computer that is not part of the same domain, you'll need to add the managing computer's name to the TrustedHosts list on SRV1:

Set-Item wsman:localhostClientTrustedHosts -Value 'ManagingComputerName' -Concatenate -Force

Replace ''ManagingComputerName'' with the name of your managing computer.

Step 3: Start a Remote Session From your managing computer, start a remote session with SRV1 using the Enter-PSSession cmdlet:

Enter-PSSession -ComputerName SRV1 -Credential (Get-Credential)

This command prompts you for credentials and then starts a remote session with SRV1.

Step 4: Run Remote Commands Once the remote session is established, you can run any PowerShell command as if you were directly on SRV1. For example:

Get-Service

This command gets the status of services on SRV1.

Step 5: Exit the Remote Session When you're finished, exit the remote session:

Exit-PSSession

Note: Ensure that both the managing computer and SRV1 are properly configured to communicate over the network, and that any firewalls allow for the necessary ports (default is 5985 for HTTP and 5986 for HTTPS) to be open for WS-Management traffic12.

By following these steps, you should be able to manage SRV1 remotely using PowerShell. Make sure you have the appropriate administrative privileges to perform these actions.


Contribute your Thoughts:

Timothy
6 days ago
You can use PowerShell remoting to manage SRV1 from a remote computer.
upvoted 0 times
...
Andrew
9 days ago
I'm not sure how to do it though, I need to study more about PowerShell.
upvoted 0 times
...
Melvin
23 days ago
I agree, it can save time and make tasks more efficient.
upvoted 0 times
...
Timothy
1 months ago
I think managing SRV1 remotely using PowerShell is important.
upvoted 0 times
...
William
1 months ago
Hmm, a remote PowerShell management task? Sounds like a job for the 'magic wand' cmdlet!
upvoted 0 times
Davida
4 days ago
User3: I agree, it's like having a magic wand for IT tasks.
upvoted 0 times
...
Chantay
11 days ago
User2: Me too, it's so powerful and efficient.
upvoted 0 times
...
Teri
27 days ago
User1: I love using PowerShell for remote management tasks.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77