Question: using powershell 1.Create a variable $a and assign it a value of 3 then use the write-host command to display the value. 2. Write a

using powershell

1.Create a variable $a and assign it a value of 3 then use the write-host command to display the value.

2. Write a command to find the type of variable $a.

3. Create a variable $myname with your firstname and surname in it. Use the pipe symbol and gm to work out what methods are available to make it all uppercase or lowercase.

4. Write a command that display only the services that are running.

5. Write a command that display only the services that are not running.

6. Write a command that display only the services, starting with the letter w that are running.

7. Write a command that redirect all chrome processes to a file name process.txt. Write a command to output the content of process.txt file. 8. Write a command that redirect (add) all processes containing the word host to process.txt file above.

9. Write a command that will ask users about their location (Where do you live?). The command should read the input from a user and store it in a variable $location. Use another command to output the users response.

10.Write a command that will give you the current date in the following format: Tuesday, October 16, 2018. Write a command that will give only the current year

needing only the commands

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!