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 [...]
NativeConsole.cs – Run console apps and get their output
To those of you who are not software developers: feel free to skip this post A while ago I wrote a little class for calling console apps from a .Net application, and I’ve been using it in several of my apps (most notably in PoshConsole) and it works great, but since the only place I’ve [...]