exam questions

Exam AZ-800 All Questions

View all questions & answers for the AZ-800 exam

Exam AZ-800 topic 9 question 1 discussion

Actual exam question from Microsoft's AZ-800
Question #: 1
Topic #: 9
[All AZ-800 Questions]

HOTSPOT -
You need to meet the technical requirements for Server4.
Which cmdlets should you run on Server1 and Server4? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://4sysops.com/wiki/enable-powershell-remoting/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
gass
Highly Voted 2 years, 9 months ago
Server1:Set-Item Server4:Enable-PsRemoting
upvoted 14 times
PrettyFlyWifi
10 months, 1 week ago
I think this is the other way round. Surely you would use Set-Item on the Workgroup server to "trust" the Server1 that's going to manage it remotely? Otherwise you're setting Server4 to manage Server1 and that's not the requirement? Then Enable-PSRemoting on Server1 as you can use it for firewall related settings for remote connections. Technically you do this on both servers though, it's not a good question.
upvoted 2 times
...
...
johosofat
Highly Voted 2 years, 5 months ago
Technically these are all missing answers- that don't address the whole situation. both sides need to use set-item and both sides need to be enabled for psremoting. this may be to conservative answer but in the real world i would do : Server 4 Enable-psremoting Set-Item WSMan:\localhost\Client\TrustedHosts -Value "Ip of server1" -Force Server 1 Enable-psremoting Set-Item WSMan:\localhost\Client\TrustedHosts -Value "Ip of server4" -Force It doesnt matter what order you run any of these- you will read trusted host is not needed on the domain computer- except- its connected to a non-domain server- so its... needed.
upvoted 5 times
Payday123
1 year, 5 months ago
"PowerShell remoting is enabled by default on Windows Server platforms." https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-7.3 So it looks like all you need to do is to add trusted hosts on both sides?
upvoted 1 times
...
...
ltkiller
Most Recent 2 months, 3 weeks ago
Since no answer was really clear in explanation on why and what, i've tested it, answer given was correct: Server 4, Enable-PSRemoting -Force On Server1, since Server4 is a workgroup server, you'll need to set Server4 as a trusted host for remoting. Run the following on Server1: Set-Item WSMan:\localhost\Client\TrustedHosts -Value "Server4" -Force To make this work add Server4 to DNS or Hosts file Setup connection for testing: $cred = Get-Credential Enter-PSSession -ComputerName Server4 -Credential $cred Type hostname, should see Server4 Exit Get list of all trustedhosts on Server1: Get-ChildItem WSMan:\localhost\Client\ or Get-Item WSMan:\localhost\Client\TrustedHosts
upvoted 1 times
...
dump3s
6 months, 3 weeks ago
The source computer needs to add the destination computer in "TrustedHosts" file: Set-Item WSMan:\localhost\Client\TrustedHosts -Value "SERVER4-IP" -Concatenate -Force The destination computer needs to allow remote connection: Enter-PSRemoting PS: Remoting Powershell is enabled by default in Windows Server (regardless of whether it is in the domain or not) but, in this kind of context, shows that the remote powershell needs to be enabled. Summary: Server1 - Set-Item Server4 - Enable-PSRemoting
upvoted 1 times
...
sardonique
8 months, 2 weeks ago
if computer A (domain member) has to manage Computer B, and computer B is out of a domain, like Workgroup, Computer B has to be in private network and not public, the you run the command enable-psremoting -force; Computer A doesn't trust computer B, so you need to run Set-Item WSMan:\localhost\Client\TrustedHosts -Value "IP Computer B" -Concatenate -Force. Enjoy!
upvoted 2 times
...
Joedn
11 months ago
Valid 05/28/2024
upvoted 1 times
...
rknichols01
1 year, 3 months ago
this is from Co-Pilot Here are the steps to enable PowerShell remoting on each server: Open PowerShell with administrative privileges on each server. Run the following command: Enable-PSRemoting -Force. If you are in a workgroup environment, add the IP address of the remote host to the trusted hosts list in the local machine 1. On Server4, run the following command: Set-Item WSMan:\localhost\Client\TrustedHosts -Value <IP address of Server1> -Concatenate.
upvoted 1 times
...
Payday123
1 year, 5 months ago
"PowerShell remoting is enabled by default on Windows Server platforms. " Don't need to enable it https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-7.3
upvoted 1 times
...
MR_Eliot
1 year, 7 months ago
Provided answer seems correct.
upvoted 1 times
...
syu31svc
2 years ago
Start-Service is out of the question https://learn.microsoft.com/en-us/powershell/module/servermanager/enable-servermanagerstandarduserremoting?view=windowsserver2022-ps Provides one or more standard, non-Administrator users access to event, service, performance counter, and role and feature inventory data for a server that you are managing by using Server Manager Answer is correct
upvoted 1 times
...
JohnO1971
2 years, 6 months ago
https://4sysops.com/archives/enable-powershell-remoting-on-a-standalone-workgroup-computer/ Local (Workgroup) Server Set-Item Remote (Domain) Server Enable-PsRemoting
upvoted 4 times
...
TheUltimateHac
2 years, 11 months ago
So answers should be *Enabke-PsRemoting *Set-Item
upvoted 1 times
AnonymousJhb
2 years, 9 months ago
wrong way around. Enable-PsRemoting on the destination / remote server
upvoted 2 times
...
...
VinoTee
2 years, 11 months ago
Here's a highlighted answer from below link: https://4sysops.com/wiki/enable-powershell-remoting/#:~:text=On%20workgroup%20group%20computers%20%5E,Value%20%2210.0.2.33%22%20%2DForce
upvoted 3 times
...
Davoo84
2 years, 11 months ago
Trustedhost s-value
upvoted 1 times
...
AS007
2 years, 12 months ago
Set-Item as Server 4 is not in domain? https://4sysops.com/wiki/enable-powershell-remoting/
upvoted 4 times
AvoKikinha
2 years, 11 months ago
Agree: Enable-PSRemoting -Force -SkipNetworkProfileCheck Authentication in PowerShell remoting relies on Active Directory. By default, only computers that are domain members can connect via PowerShell remoting. In a workgroup environment, you have to add the IP addresses of the computers to the TrustedHosts list manually: Set-Item WSMan:\localhost\Client\TrustedHosts -Value "10.0.2.33" -Force
upvoted 2 times
prepper666
2 years, 10 months ago
Wrong! -SkipNetworkProfileCheck = Indicates that this cmdlet enables remoting on client versions of the Windows operating system when the computer is on a public network. This parameter enables a firewall rule for public networks that allows remote access only from computers in the same local subnet. This parameter does not affect server versions of the Windows operating system, which, by default, have a local subnet firewall rule for public networks. If the local subnet firewall rule is disabled on a server version, Enable-PSRemoting re-enables it, regardless of the value of this parameter.
upvoted 2 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago