Your network contains several servers that run Windows Server 2012 R2 and client
computers that run Windows 8.1.
You download several signed Windows PowerShell scripts from the Internet.
You need to run the PowerShell scripts on all of the servers and all of the client computers.
What should you modify first?
A.
The environment variables on all of the servers
B.
The execution policy on all of the servers
C.
The execution policy on all of the client computers
D.
The environment variables on all client computers
Explanation:
First modify the environment variables on the server, then modify them on client computers.
This answer and explanation contradicts each other. The answer says: C) the execution policy on all of the client computers but the explanation says “First modify the environment variables on the server, then modify then on client computers”
Which one is it for real?, I have seen many other dumps with the answer: D) The environment variables on all computers.
Thanks,
answer is B… u must first set the excution policy for script u downloaded… to either unrestricted, restricted, signed or unsigned
http://windowsitpro.com/powershell/ps-101-checking-and-setting-powershell-execution-policy
One of the first steps to working successfully with PowerShell scripts is to correctly select the Execution Policy. If the Execution Policy is too strict, the scripts you find on sites like WindowsITPro and myITforum will not run. If it is too lenient, you leave yourself wide open for potential security issues.
The answer is B.
If you’ve just installed a new version of Windows on your computer or have never opened a PowerShell window before, PowerShell’s Execution Policy will probably be set to the default, which is the Restricted policy.
According to this document:
https://technet.microsoft.com/en-us/library/hh847748.aspx
Windows 2012 R2 has the policy set to RemoteSigned by default
Windows 2012 and Windows 8, and 8.1, have the policy set to Restricted.
So, in this case, answer is C.
Tricky question
The scripts are to be run on both servers and clients and both by default have Restricted execution policy. Execution policy needs to be changed on both but which one should be done first? One can change the policy on either client or the server first, so the question is a tricky one.
Monu,
See my reply to Singh
Correcting myself:
Default execution policy on Windows Server 2012 R2 is RemoteSigned
Default execution policy on Windows 8, Windows Server 2012, and Windows 8.1 is Restricted.
Answer is C.
http://technet.microsoft.com/en-us/library/hh847748.aspx
Sorry, I did not see your reply
I think this question you were supposed choose two of the answers.
The questions states: “What should you modify first?”
By definition you cannot do two things “first”. So there is only one answer.
What is the true answer?
freshly installed 2012r2:
PS C:\Users\Administrator> Get-ExecutionPolicy
RemoteSigned
and from my non modified 8.1 desktop:
PS C:\Users\gb> Get-ExecutionPolicy
Restricted
So C is the right answer as i’d have to change the client
according to another dumps, answer is C.
thanx, this helps indeed..:)
me as well was thinking the answert was B, nopw i understand better
See v.6 of this question.
Answer is C.
Explanation:
The default execution policy of Windows Server 2012 is RemoteSigned meaning that as long as a
valid signature is used on the scripts, they will run. However, the client computers have a default execution policy of restricted meaning that no scripts will run in PowerShell whatsoever, so this would have to be changed before the scripts could be executed on the client computers.