NewsGator Powershell Provider uploaded to CodePlex
The NewsGator Powershell Provider project was recently created at CodePlex, and this afternoon I did an initial check-in of the project as it currently stands. I encourage you to download the code, build it, and give it a whirl! (And once you stop laughing at it, create some work-items on the site for me to work on, or just post something in the comments here.)
To get it to connect to your NewsGator account, you’ll have to make the following changes:
- Update the “username” and “password” entries in app.config to your NewsGator login.
- Either a) update the “NewsgatorLocation” setting in app.config to match a valid NewsGator location, or b) create a NewsGator location called “NewsGator Powershell Edition”.
- Copy the built assembly file + app.config file + Newsgator.format.ps1xml files to your powershell run directory (you might be able to skip this step if you want).
- Follow the instructions found here (but I’ll summarize—run these commands):
- set-alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil
- installutil Lerch.PowerShell.Providers.dll
- add-pssnapin NewsgatorSnapIn
- If you want to benefit from formatting that makes sense, run the following command:
- Update-FormatData -PrependPath Newsgator.format.ps1xml
It’s been a while since I’ve done this, so if I missed a step, I apologize.
Keep in mind this is a rough initial version (v0.001 maybe?), and it’s missing a lot of potential functionality. And I’d also appreciate comments on some of my design decisions (such as lazy retrieval of new posts, and a non-lazy per-session non-updating cache of folders and subscriptions).
Thanks!