Using REST API’s from PowerShell with the Dream SDK
Awhile back I wrote a Get-Web script, which I later converted to a compiled Get-Web cmdlet and module (pssnapin) ... adding support for POST forms. At the time, it seemed like GET and POST with some string variables pretty much covered what I’d ever want to do with web pages, however I found a few [...]
Project Report Accepted — Defense Scheduled!
Well, my project report has been accepted and I’m defending my Master’s on December 2nd, 2008 at 4:30pm. You’re all invited to come and see how slick my Self-Organizing Maps Recommender is, from database to PowerShell cmdlets and all.
Update to PoshNet and Get-DNS
This is just a short note about Get-DNS (my dig for PowerShell cmdlet). Someone emailed me to ask how they could specify the dns servers, and the answer was that you couldn’t. So then I looked a bit deeper, and realized that the code I copied from CodeProject already had support for that, so I [...]
PowerShell and Hashtable oddities
Hashtables are IEnumerable, but they don’t behave that way in PowerShell … this seems to cause all sorts of odd behavior …
A Better Get-Credential in one line of code
For too long I have ignored the deficiencies in Get-Credential, so now I am going to fix them. Ready? function Get-Credential($caption,$msg,$domain,$name){$Host.UI.PromptForCredential($caption,$msg,$name,$domain)} Ok, that’s better than the default, whew! At least you can specify the prompt text and the domain and default user name … but there are so many other options that are missing from [...]
Clip.exe and the missing Paste.exe
One of the guys on #PowerShell in IRC was asking about how to get the contents of the clipboard in PowerShell, and after we had tried several different scripts, we realized that in Version 1, because PowerShell runs in an MTA thread, you cannot access the clipboard without creating a new thread (in STA mode). [...]
Of DekiWiki and PowerShell: A Script (Module)
You may not have noticed, but there are several wiki’s with PowerShell content in them, but generally speaking, they are the results of the effort of a single person (or very a small group) ... and none of them seems to have captured the attention of the general PowerShell community. Certainly, the PowerShell Community site [...]
Stupid Laws: the Don’t Protect Me edition
This is just a rant about crazy politicians and the over-legislation of protecting people against themselves. http://www.motorcycle.com/news/passenger-age-cap-proposed-in-ontario-87568.html This law would (if passed) prevent driving a motorcycle on a highway if another person under the age of 14 years is a passenger on the motorcycle. In support of the law, Helena Jaczek “cited statistics that show [...]
PowerShell User Group and Community News!
I keep forgetting to mention this! I’m speaking at the next PowerShell Virtual User Group this Thursday, November 13th at 12PM EST. Join us if you’re interested in any of my PowerShell CodePlex projects (PoshConsole, PoshCode, WASP). Actually, join us even if you’re not, because there’s going to be a demo of the latest version [...]
PowerShell Sessions 2008
Props to Luciano Guereche for the download links (and icons)... incidentally, the url format for those links works for any of the sessions, so you can just replace the “ES24” with whichever session you want and use my Get-Web Cmdlet or even the WGet Script to pull down whatever ones you want in a loop [...]