Question
Answers to each item in Questions 1, 2 and 3 must be an image of a screen dump. If the screen output is too lengthy
Answers to each item in Questions 1, 2 and 3 must be an image of a screen dump. If the screen output is too lengthy just crop the area where you typed the command. 1. Open a PowerShell shell window and execute each of the following commands a. Find the alias to Write-Output cmdlet, and execute it. b. Find the underneath cmdlet name for cd and execute it. c. Find the underneath cmdlet for cls and execute it. d. Type [String] | gm (Hit return) and then type [String] | Get-Member (Hit Return) Whats the difference between the two commands? (Show Screen Dumps) e. Execute the following commands one under the other (Take one screen dump for all) Clear-Host $Num = 49.6814343 [System.Math]::Round($Num, 2) f. Find and execute a command to find all the Members in the Math class in PowerShell g. Execute a command to find the PI value in Math. 2. Create a directory in your work environment name test_users. Write a PowerShell script to: a. Create the following output Enter Users Full Name : Enter Users ID : Enter Users Job Location : eg: PX17 , AM91 [AA99 pattern must ,match] Enter Users Manager Code : Run this script, read input and print the result on screen.(Get a screen dump) b. Add more code to the above script to pipe the output (i.e. users information) to a file named firstname_lastname.usr and save that file in the test_users directory created above. [Test with at least 2 users. Then Get a screen dump of the test_users directory] 3. Write a PowerShell script to a. Read a file name with the pattern firstname_lastname.usr and then read that file from the test_users directory and echo that users information from the file.[get minimum of 2 user screen dumps] b. If the entered file name is not existing in the test_users directory echo a message file : does not exists. [Enter non existing file name and get a screen dump of the result]
Answers to each item in Questions 1, 2 and 3 must be an image of a screen dump. If the screen output is too lengthy just crop the area where you typed the command. 1. Open a PowerShell shell window and execute each of the following commands a. Find the alias to Write-Output cmdlet, and execute it. b. Find the underneath cmdlet name for cd and execute it. C. Find the underneath cmdlet for cls and execute it. d. Type [String] gm (Hit return) and then type [String Get-Member (Hit Return) What's the difference between the two commands? (Show Screen Dumps) Execute the following commands one under the other (Take one screen dump for all) Clear-Host $Num 49.6814343 System.Math]::Round($Num, 2) Find and execute a command to find all the Members in the Math class in PowerShell Execute a command to find the PI value in Math. e. f. g. 2. Create a directory in your work environment name testusers. Write a PowerShell script to a. Create the following output Enter User's Full Name Enter User's ID Enter User's Job Location :Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started