Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
If you enjoyed this story, be sure to follow Lifehacker on MSN.