Tag Archives: Set-Content

Convert History to Script

Whenever I teach or speak about PowerShell, a recurring mantra is that there is no difference between running a PowerShell script and executing commands interactively in the shell, except that it saves you typing. You can create a PowerShell script … Continue reading

Posted in PowerShell, Scripting | Tagged , , | 1 Comment

Get Profiles

Keith Hill posted a bit of PowerShell code a few days ago that piqued my interest. I knew that in PowerShell, the $profile variable would list your current profile. PS C:\> $profile C:\Users\Jeff\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 This is handy because it makes it … Continue reading

Posted in PowerShell v2.0, Scripting | Tagged , , , , | Comments Off