New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-800 Exam - 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:

0/2000 characters
Adelina
2 months ago
Don't forget to check firewall settings too!
upvoted 0 times
...
Alpha
3 months ago
Not sure if this is the best method, seems risky.
upvoted 0 times
...
Marva
3 months ago
You need to enable PS Remoting first.
upvoted 0 times
...
Augustine
3 months ago
Totally agree, it's essential for remote management!
upvoted 0 times
...
Norah
3 months ago
Wait, can you really manage it without RDP?
upvoted 0 times
...
Deonna
3 months ago
I think we might need to use the `Enable-PSRemoting` cmdlet, but I’m a bit confused about the parameters.
upvoted 0 times
...
Lawrence
4 months ago
I feel like I should check the firewall settings as well, but I can't recall the exact commands we used in class.
upvoted 0 times
...
Azalee
4 months ago
I remember practicing a similar question where we had to configure WinRM. I hope that’s part of this task too.
upvoted 0 times
...
Leoma
4 months ago
I think we need to enable PowerShell Remoting on SRV1, but I’m not entirely sure how to do that.
upvoted 0 times
...
Bette
4 months ago
This seems straightforward enough. I'll just need to double-check the syntax and make sure I'm following the best practices for remote PowerShell management.
upvoted 0 times
...
Allene
4 months ago
No problem, I've done tasks like this before. I'll start by checking the server name, then use the appropriate cmdlets to establish a remote session and run my commands.
upvoted 0 times
...
Galen
5 months ago
Wait, how do I know which PowerShell commands to use? I'm a bit confused on the best approach here.
upvoted 0 times
...
Renea
5 months ago
Okay, I think I can handle this. I just need to review the PowerShell remoting commands and make sure I have the right permissions to access the server.
upvoted 0 times
...
Kati
5 months ago
Hmm, this looks like a PowerShell task. I'll need to make sure I have the right cmdlets and syntax to connect to the remote server.
upvoted 0 times
...
Carlota
9 months ago
PowerShell? More like 'Power-Nap-Shell' if you ask me.
upvoted 0 times
Frederica
7 months ago
Just keep practicing and you'll become a PowerShell pro in no time!
upvoted 0 times
...
Stefan
7 months ago
True, it can save you a lot of time and automate tasks efficiently.
upvoted 0 times
...
Elly
8 months ago
But once you get the hang of it, it's actually quite powerful.
upvoted 0 times
...
Lashanda
8 months ago
I know, PowerShell can be a bit intimidating at first.
upvoted 0 times
...
...
Pamela
9 months ago
Finally, a chance to show off my 'Remote Desktop Ninja' skills!
upvoted 0 times
Corazon
8 months ago
I'm ready to tackle this task and show off my PowerShell expertise!
upvoted 0 times
...
Pamella
8 months ago
I think I'll need to brush up on my remote management skills for this one.
upvoted 0 times
...
Tyra
9 months ago
I'm excited to try out my PowerShell skills on this task!
upvoted 0 times
...
...
Timothy
9 months ago
You can use PowerShell remoting to manage SRV1 from a remote computer.
upvoted 0 times
...
Andrew
9 months ago
I'm not sure how to do it though, I need to study more about PowerShell.
upvoted 0 times
...
Melvin
10 months ago
I agree, it can save time and make tasks more efficient.
upvoted 0 times
...
Timothy
10 months ago
I think managing SRV1 remotely using PowerShell is important.
upvoted 0 times
...
William
10 months ago
Hmm, a remote PowerShell management task? Sounds like a job for the 'magic wand' cmdlet!
upvoted 0 times
Davida
9 months ago
User3: I agree, it's like having a magic wand for IT tasks.
upvoted 0 times
...
Chantay
9 months ago
User2: Me too, it's so powerful and efficient.
upvoted 0 times
...
Teri
10 months ago
User1: I love using PowerShell for remote management tasks.
upvoted 0 times
...
...

Save Cancel