Question: Write code that when executed in PowerShell, will satisfy the following requirements: Fill in the missing code to satisfy the following: create a custom object
Write code that when executed in PowerShell, will satisfy the following requirements:
Fill in the missing code to satisfy the following:
create a custom object called myLabObject
Assign the computerName key the name of your computer
Assign the FirstName Key to be a value that is entered via prompt
Assign the Date key the cmdlet to get the current Date and Time
Show the RAMinGB value as GB instead of bytes
Answer
PSCustomObject@
ComputerName Answer
FirstName Answer
"Enter First Name:"
Date Answer
RAMinGB GetCimInstance wincomputersystemTotalPhysicalMemoryAnswer
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
