Compare the name entered to your first name. If the user enters a name other than your name (ie. if I entered Jason), the program should respond
operating systems question
everything explains in the file please follow the instructions
Requirements: | .doc file
PowerShell Scripting Lab
Create a PowerShell script named XXScript where XX is the initials of your first and last name.
The script should do the following:
Require the user to input their first name. (1 point)
Compare the name entered to your first name. If the user enters a name other than your name (ie. if I entered Jason), the program should respond with Hello Jason, you are not authorized to use this system? and then the script should terminate without displaying an options menu. (as seen above, the message should be printed in red on the screen)
If the first name is the same as your first name, the script will respond with a
greeting that says Hello Dave (this should be your name, not mine), welcome to the PowerShell menu system. Please make a choice from the displayed menu options:?. (4 points)
If the user is valid (ie. your name), then display a menu that offers the following options: (5pts)
Check the version of PowerShell you are running
Create a new folder
Create a new file
Print the 5 most recent entries in the PowerShell Event Log
Exit Menu system
The menu prompt should appear as such: Please Enter Your Choice: (1 point)
Create the 4 PowerShell commands that will execute the actions in menu items 1 – 4. After running each of the options, the results should be paused on the screen, and the menu should be redisplayed until the user selects option 5, Exit. (16 points)
If the user selects option 5, Exit, they should receive a message that says Have a GREAT day and thank you for using the PowerShell menu system!?. The menu should NOT be rerun if this option is selected. (2 points)
Prior to redisplaying the options menu, the screen should be paused (this can be accomplished with the PowerShell Pause? command) and then cleared after the user presses a key to continue. (2 points)
Please upload your PowerShell script to the Assignments? folder on D2L.
Below you can see screen shots of what your menu system should look like.
If a name other than your name? is entered:
If your name is entered?:
Selecting option ?1:
After selecting option ?1 (or any of the options other than option ?5) and pressing the key to continue:
Selecting option ?2:
Selecting option ?3:
Selecting option ?4:
Selecting option ?5:
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.