Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with the following PowerShell script and outcome. create 2 new unix users (your choice of UID) wolverine & sparty Create 2 new

I need help with the following PowerShell script and outcome.

  1. create 2 new unix users (your choice of UID) wolverine & sparty
  2. Create 2 new groups (your choice of GUID) maize & green
  3. Assign the users their respective groups. i,e. wolverine, maize, sparty, green

The wolverine group has 20 games won and 10 lost, while the Sparty team had 21 games one and 8 lost.

All of the above should be created within a loop and I would like it to be written so that it doesn't constantly have to re-entered.

1) Create a loop and read in the attached text file

2) Read the scores by school and determine if MSU or Michigan won or lost

3) Have the user (wolverine or sparty) put in the correct score into their own win file

- if the wolverines win, have user put the score into the win file

** wolverine adds score to broncos/win.txt

** wolverines win over broncos 55-10 **

- if the wolverines encounter a loss, that the sparty user put the score in the loss file

** wolverines lose to fightingIrish 24-17 **

** sparty adds score to fightingIrish/win.txt

NOTE: you must change the permission on the file in order to write to it

Any file permissions must be done in a separate script.

if wolverine lose sparty calls permission script to alter the appropriate folder(s).

4) please zip contents of wolverines and sparty directories

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_2

Step: 3

blur-text-image_3

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

MFDBS 91 3rd Symposium On Mathematical Fundamentals Of Database And Knowledge Base Systems Rostock Germany May 6 9 1991

Authors: Bernhard Thalheim ,Janos Demetrovics ,Hans-Detlef Gerhardt

1991st Edition

3540540091, 978-3540540090

More Books

Students also viewed these Databases questions

Question

Explain how cultural differences affect business communication.

Answered: 1 week ago

Question

List and explain the goals of business communication.

Answered: 1 week ago