100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

WGU D411|C916 EEP2 Task 2: Server Roles and Features|2025 Update with complete solution.

Rating
-
Sold
-
Pages
5
Uploaded on
11-03-2025
Written in
2024/2025

WGU D411|C916 EEP2 Task 2: Server Roles and Features|2025 Update with complete solution.










Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
March 11, 2025
Number of pages
5
Written in
2024/2025
Type
Other
Person
Unknown

Subjects

Content preview

WGU D411|C916 EEP2 Task 2: Server Roles and Features

Scripting and Automation — C916

PRFA — EEP2

Competencies


4049.1.2 : Server Roles and Features

The graduate writes scripts to install and manage server roles and features.

Introduction


In this task, you will create PowerShell script. PowerShell enables administrators to perform
administrative tasks on both local and remote systems. You will be expected to manage an
Active Directory server and an SQL server within the PowerShell environment. This
management will include the configuration and administration of the servers.



For this task, you will use the Performance Assessment Lab Area accessed by the Performance
Assessment Lab Area link to access the virtual lab environment to complete this task.

Scenario

You have been hired as a consultant at a company. The company previously had an SQL
server and Active Directory server configured throughout two separate Windows 2012 servers.
However, all of the drives (including backups) were destroyed due to unforeseen circumstances,
and you need to write one PowerShell script named “restore.ps1” that can accomplish all of the
required tasks from the local server.
Requirements


Your submission must be your original work. No more than a combined total of 30% of a
submission can be directly quoted or closely paraphrased from sources, even if cited correctly.
Use the report provided when submitting your task as a guide.



You must use the rubric to direct the creation of your submission because it provides detailed
criteria that will be used to evaluate your work. Each requirement below may be evaluated by

, more than one rubric aspect. The rubric aspect titles may contain hyperlinks to relevant portions
of the course.



A. Create a PowerShell script named “restore.ps1” within the “Requirements2” folder. For
the first line, create a comment and include your first and last name along with your student
ID.

Note: The remainder of this task shall be completed within the same script file, “restore.ps1.”

B. Write a single script within the “restore.ps1” file that performs all of the following functions
without user interaction:
1. Create an Active Directory organizational unit (OU) named “finance.”
2. Import the financePersonnel.csv file (found in the “Requirements2” directory) into
your Active Directory domain and directly into the finance OU. Be sure to include the
following properties:
• First Name
• Last Name
• Display Name (First Name + Last Name, including a space between)
• Postal Code
• Office Phone
• Mobile Phone
3. Create a new database on the Microsoft SQL server instance called “ClientDB.”
4. Create a new table and name it “Client_A_Contacts.” Add this table to your new
database.
5. Insert the data from the attached “NewClientData.csv” file (found in the
“Requirements2” folder) into the table created in part B4.

C. Apply exception handling using try-catch for System.OutOfMemoryException.

D. Run the script within the Performance Assessment Lab Area environment. After the
script executes successfully, run the following cmdlets individually from within your
Requirements2 directory:
1. Get-ADUser -Filter * -SearchBase “ou=finance,dc=consultingfirm,dc=com” -
Properties DisplayName,PostalCode,OfficePhone,MobilePhone > .\AdResults.txt
2. Invoke-Sqlcmd -Database ClientDB –ServerInstance .\SQLEXPRESS -Query
‘SELECT * FROM dbo.Client_A_Contacts’ > .\SqlResults.txt

Note: Ensure you have all of the following files intact within the “Requirements2” folder,
including the original files:
• “restore.ps1”



• “AdResults.txt”

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Wiseman NURSING
View profile
Follow You need to be logged in order to follow users or courses
Sold
6726
Member since
4 year
Number of followers
3843
Documents
26081
Last sold
6 hours ago
Testsprint

Updated exams .Actual tests 100% verified.ATI,NURSING,PMHNP,TNCC,USMLE,ACLS,WGU AND ALL EXAMS guaranteed success.Here, you will find everything you need in NURSING EXAMS AND TESTBANKS.Contact us, to fetch it for you in minutes if we do not have it in this shop.BUY WITHOUT DOUBT!!!!Always leave a review after purchasing any document so as to make sure our customers are 100% satisfied. **Ace Your Exams with Confidence!**

3.9

1375 reviews

5
677
4
248
3
211
2
76
1
163

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions