PowerShell for Developer presentation @ CINNUG - wrapup
There was a good crowd at tonight's CINNUG meeting for my Windows PowerShell presentation - thank you to all who were in attendance.
My PowerPoint deck and other materials may be found at the download page here (If you want to skip the fluff and get the .zip straightaway look here).
There were a few questions that came up during that talk that either I wanted to double-check on or needed to research an answer, so here they are:
Q: How do I permanently load a custom cmdlet?
A: Put it into your profile script.
Create a profile.ps1 file and place it in your profile dir. Add Add-PSSnapin MyCustomCmdlet to your profile script.
The profile would be \Documents and Settings\<profile>\My Documents\WindowsPowerShell\ on Windows XP and Windows Server 2003. It would be \Users\<profile>\Documents\WindowsPowerShell on Windows Vista. Look at this entry on MSDN for Customizing Windows PowerShell for more.
Q: How do I FTP from PowerShell?
A: Options:
- Take a look at this script by Joannes Vermorel.
- NetCmdlets http://www.nsoftware.com/powershell
- Take a look at this script posted to the microsoft.public.windows.powershell newsgroup
Again, thank to all who were in attendance and happy PowerShell-ing. ...and for some fun, check out PowerShell Invaders (you may need to sign the script depending on your execution policy).