Turning Commands into Scripts
Now we are going to make any commands into scripts for
automation.
See into above image. Get-WmiObject command is used to get
Total size and Free size of computer.
Here I hardcoded ComputerName and Drive. So see
into below image how I use variables to remove hardcode.
Now I am going to add parameters into my script.
We can use param() to make our script parameterize.
Now we are going...