Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Each student will create a PowerShell script which provides the user at least three options for managing users or information about users The script will

Each student will create a PowerShell script which provides the user at least three options for managing users or information about users
The script will support multiple uses, which will include a help option which will display basic usage information.
At least one function must include the manipulation of user privileges.
The script must:
Include at least two iteration functions.
Include at least 6 conditional structures, one of which is a switch statement.
The script must operate on at least four objects.
Accept command line arguments.
Be able to accept an object from another script.
Be able to pass an object to another script.
The script will follow the Scripting Best Practices as provided.
When run with inappropriate arguments, scripts should print a usage message and exit. The same message could be printed with a --help argument.
Validate inputs and sanity check derived values.
Return an appropriate exit code: zero for success and nonzero for failure.
Use appropriate naming conventions for variables, scripts, and routines.
User variable names that reflect the values they store.
Start every script with a comment block that tells what the script does and what parameters it takes. Include your name and the date. If the script requires non-standard tools, libraries, or modules to be installed, list those as well.
Comment at a useful level. More complexity requires more comments.
Error messages should:
Go to STDERR, not STDOUT.
Include the name of the program thats issuing the error.
State the function of operation that failed.
If a system call fails, include the perror string.
Exit with a code other than 0.
give the code and explain it.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

Q. Consider the common types of incivility shown in Table 2.16.

Answered: 1 week ago

Question

1. Define and describe characteristics of intercultural conflict.

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago