PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which cmdlet should you add to the script?

Your network contains an Active Directory forest.
You set the Windows PowerShell execution policy to allow unsigned scripts on a domain
controller in the network.
You create a Windows PowerShell script named new-users.ps1 that contains the following
lines:
new-aduser user1
new-aduser user2
new-aduser user3
new-aduser user4
new-aduser user5
On the domain controller, you double-click the script and the script runs. You discover that
the script fails to create the user accounts.
You need to ensure that the script creates the user accounts. Which cmdlet should you add
to the script?

Which script should you run?

You have a Windows PowerShell script that contains the following code:
import-csv Accounts.csv | Foreach {New-ADUser -Name $_.Name -Enabled $true –
AccountPassword $_. password}
When you run the script, you receive an error message indicating that the format of the
password is incorrect.The script fails.
You need to run a script that successfully creates the user accounts by using the password
contained in accounts.csv.
Which script should you run?

You need to resolve the issue that causes Application1 to fail

Your network contains an Active Directory forest. The functional level of the forest is
Windows Server 2008 R2.
Your company’s corporate security policy states that the password for each user account
must be changed at least every 45 days.
You have a user account named Service1. Service1 is used by a network application named
Application1.
Every 45 days, Application1 fails.
After resetting the password for Service1, Application1 runs properly. You need to resolve
the issue that causes Application1 to fail. The solution must adhere to the corporate security
policy.
What should you do?