The Surly Admin

Father, husband, IT Pro, cancer survivor

Of Mistakes and Modules

Recently I’ve been doing more with Powershell functions, and blissfully telling people to run the script and then the function is available to you.  This is great if you use a Powershell ISE, either the built in one or a third-party one like PowerGUI.  ISE’s will keep functions alive after you’ve run your script, which is a great feature while you’re testing a new script.  The shell, on the other hand, isn’t so forgiving.  Run it there and it loads into memory and as soon as the script finishes it promptly is DUMPED from memory.

Oops, sorry about that!

Continue reading

Advertisements

September 9, 2012 Posted by | General, PowerShell, Random Thoughts, Technical | , , | 1 Comment