Question: Please help, I can't figure this out! (using Powershell) For this Assignment you are going to automate an assignment you have already done for use
Please help, I can't figure this out! (using Powershell)
For this Assignment you are going to automate an assignment you have already done for use on many computers! The intent is that this script can be run from a network location or a USB stick and populate many computers information into individual files for reference later. Using whatever mechanism you would prefer create a script file (.ps1) that meets the following criteria: Document your script with your Name, ASURITE, Student ID, and Date in the header of the file. Your script must save it's output as a file named `.inventory` in the current directory, where is the computers name. For example, a computer named "desktop-abc123" should output to a file named "desktop-abc123.inventory" in the same directory the script is run from. It should overwrite any previous file that may exist there with the same name. Your script must store your name and ASURITE in the first line of the file output and the date and time the file was generated (all on one line). If this is not present(missing), you will receive a 0. Run each of the following commands in the order given on this page: `Get-WmiObject Win32_ComputerSystem`
`Get-WmiObject Win32_Bios`
`Get-WmiObject Win32_Processor`
`Get-WmiObject Win32_PhysicalMemory`
`Get-WmiObject Win32_DiskDrive`
`Get-WmiObject Win32_LogicalDisk`
`Get-WmiObject Win32_NetworkAdapter`
`Get-WmiObject Win32_OperatingSystem`
`Get-WmiObject Win32_Videocontroller`
`Systeminfo`
Each command should be prepended with a header that contains a break that follows the following format:
-------------------------------
-------------------------------
Upload your .ps1 script named as "FirstName-LastName-Assignment7a.ps1", where your name replaces the proper field, to this Assignment section before the Deadline
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
