I just started using power shell and the first assignment wants us to log everything we do into a log file.
The way that the lab is telling us to do it is as follows:
"Create a file by executing the following command: date >> LAB-winsrv.log"
"Do an ipconfig to show all interfaces and output the results to the logfile"
"Use ipconfig to bring back up the interface you shut down above and output the results of that command to the logfile"
So basically, it will ask you to perform a quite simple task and then have the resulting output added to the log file that was created. However, I am having trouble figuring out exactly how to do that.