Question

Create a powershell script to create a user named: Week10User (provide whatever other details that may...

Create a powershell script to create a user named: Week10User (provide whatever other details that may be required to create the user.)

II. Create a script to create a group named: Week10Group

III. Create a script to add the user Week10User into the Week10Group.

IV. Create a script to create an organizational unit named: Week10OU V. Create a script to delete the user Week10User from the group named Week10Group.

VI. Create a script to add a user named Week10User into the Week10OU.

VII. Create a script to delete the group named Week10Group.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution

I.             sudo useradd -m -d /home/Week10User Week10User

II.            sudo groupadd Week10Group

III.           sudo usermod -a -G Week10Group Week10User

IV.          sudo groupadd Week10OU

V.            sudo gpasswd -d Week10User Week10Group

VI.          sudo usermod -a -G Week10OU Week10User

VII.         sudo groupdel Week10Group

--

all the best

Add a comment
Know the answer?
Add Answer to:
Create a powershell script to create a user named: Week10User (provide whatever other details that may...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Create a powershell script to create a user named: Week10User (provide whatever other details that may...

    Create a powershell script to create a user named: Week10User (provide whatever other details that may be required to create the user.) II. Create a script to create a group named: Week10Group III. Create a script to add the user Week10User into the Week10Group. IV. Create a script to create an organizational unit named: Week10OU V. Create a script to delete the user Week10User from the group named Week10Group. VI. Create a script to add a user named Week10User into...

  • UNIX QUESTION Exercise #1. [8 Marks] Create a script that does the following: a. Takes 4...

    UNIX QUESTION Exercise #1. [8 Marks] Create a script that does the following: a. Takes 4 input parameters b. Using the shell special variables print the following: i. The command you executed ii. First input iii. Second input iv. Third input v. Fourth Input vi. Process Id vii. Total number of input parameters [ by querying the system for it ] Exercise #2. [8 Marks] Creates a script that does the following: a. Takes two input parameters b. Using the...

  • Problem 1 Write a BASH script to create a user account from the Linux system on...

    Problem 1 Write a BASH script to create a user account from the Linux system on which your script is run. The script should process two positional parameters. First positional parameter is supposed to be a string with a user name (e.g., user_name) Second positional parameter is supposed to be a string with a user password (e.g., user_password) In your script: Check if two positional parameters were passed to your script when it was invoked If NOT, print an appropriate...

  • LINUX 140U Create a file named script1.sh that contains a bash script that: Accepts NO command...

    LINUX 140U Create a file named script1.sh that contains a bash script that: Accepts NO command line arguments and does NOT use the read command. I will give you no credit if your bash script includes a read command. Also, you need to have at least one for..in loop in your code even if there may be other ways to do this problem. The script will go through a list of entries in the current directory (do not process subdirectories):...

  • Section IV: Create the following users and groups (remember to setup a password for each user)...

    Section IV: Create the following users and groups (remember to setup a password for each user) User Name Login Name Group Membership Additional Details Naweed SNaweed Finance, Accountant Comment: Naweed Sayed Said SSaid Finance Comment Said Sadat John SJohn Finance Comment: John Smith Ali HAI Finance Comment: Temp worker Account Expiry: 25-Dec-2020 Jenny Denny Human Resources Comment: Jenny Daniel Prince MPrince Human Resources Comment: Michael Prince Faheem NFaheem Human Resources Comment: Faheem Nazeri Ahmad MAhmad IT Developer Comment: Ahmad Mushtiq...

  • Question 2: Your task is to create a GUI application that allows a user to create a group of Hero objects s (think Lord of the Your group may be a small band of two or three Heroes or it may cons...

    Question 2: Your task is to create a GUI application that allows a user to create a group of Hero objects s (think Lord of the Your group may be a small band of two or three Heroes or it may consist of Rines or the Marvel Cinenatic Universe here) You have been given the compiled version of the dlass encapsulating a Hero and you have also been given the specification. Your job is to create a GUI application that...

  • Hi I beed this assignment to be in a script in linux from codio. Can someone...

    Hi I beed this assignment to be in a script in linux from codio. Can someone please help me step by step thank you. Overview: In this milestone, you will demonstrate your ability to create a basic script in Linux. Review the Final Project Guidelines and Rubric document to see how this milestone will prepare you for the scripting portion of the project. You will perform this milestone in Codio in the unit called “Milestone 2: Scripting.” You will create...

  • Question 1 Which items in the following list are required for the preparation of a proper...

    Question 1 Which items in the following list are required for the preparation of a proper bank reconciliation I. Bank Statement II. Cash Receipts Journal III. Sales Journal IV. General Ledger V. Prior months bank reconciliation VI. Cash Disbursements Journal VII. Account Payable trial balance A. I, II, III, V, VI B. I, II, III, IV, V, VI C. I, II, IV, V, VI, VII D. I, II, V, VI E. I, II, IV, V, VI Question 2 One objective...

  • Question 1 a. Define the following matrices in a script file (M-file), ? = ( 8...

    Question 1 a. Define the following matrices in a script file (M-file), ? = ( 8 9 10 11; 23 9 16 15 ;11 12 3 6; 1 2 8 9 ) ? = ( 2 21 7 15; 12 4 8 22; 23 9 5 13; 23 4 21 22) ℎ = (4 9 12 15) b. Add suitable lines of codes to the M-file to do the following. Each of the following points should be coded in only...

  • In this problem, you will create a selectable “To Do” List. To add a task to...

    In this problem, you will create a selectable “To Do” List. To add a task to this list, the user clicks the Add Task button and enters a description of the task. To delete a task from the list, the user selects the task and then clicks the Delete Task button. Open the HTML and JavaScript files provided as start-up files (index.html from within todo_list_Q.zip file). Then, review the HTML in this file. Note, within the div element, there is...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT