We often need to make documentation either for our customers or for our own good 🙂
The beautiful way is with screenshots and lots of colors, but these are not much efficient.
For example if you do these often or you need to do them again, screenshots are pictures you can’t copy from and often you have to do all steps through the web interfaces.
So, how can we make it more efficient with Powershell?
By telling PowerShell to write everything you type and get inside your PowerShell Windows to a txt file 🙂
Excellent for taking efficient advantage of the commands again, and also to see excatly what you have done.
TechNet Article: http://technet.microsoft.com/en-us/library/ee176924.aspx
PowerShell Command:
Get-Process | Out-File c:scriptstest.txt Get-Process | Out-File c:scriptstest.txt -width 120
It can also be written in a script you run everytime you start PowerShell, or into the Profile of your PowerShell command software.
Leave a Reply
You must be logged in to post a comment.