My drop-site for interesting snippets and tips. If it's useful to you as well, great!
Translate This Page
Translate this page
PowerShell for N00bs
PowerShell for Non-N00bs
Browse by Tags
Tagged Content List
Filtering Show-NetIPSec Rules based on IP Address
Get-NetIPSecRule seems a little half-baked. A coworker asked me to come up with a way to only return IPsec rules for a given address. I’m surprised Show-NetIPSecRule natively doesn’t have that, nor does each record have the RemoteAddress property, which would be against which I would filter...
1 Sep 2014
YOMER Yet One More Error Reporting (Method)
I wrote about creating an Out-Error function before to avoid outputting the stack dump that a normal Write-Error displays. Many newcomers to PSH take one look at the huge blob of angry red text and throw up their hands in frustration. Write-Error is useful in populating $Error, which is very useful...
7 Aug 2014
Reinventing the Wheel: Get-WmiChildNamespace and Get-WmiChildPropertyData
I love and hate WMI. I love how it offers the ability to access so many parts of the OS that PowerShell has not (yet) exposed via cmdlet. I hate how the taxonomy is so deep, how you need to know what you’re looking for to find it. Also, I’ve been having a hard time differentiating between...
23 Jun 2014
Copy-History – Copy a Previous Command to the Clipboard
It’s great that I can see my history with Get-History, but what if I want to edit it? I can hit up-arrow to find it, but that doesn’t work if I copy-and-paste functions into my PowerShell window as I write/test the function? In that case, I have to hit up-arrow through each line that I pasted...
20 Jun 2014
Page 1 of 1 (4 items)
© 2014 Microsoft Corporation.
Privacy & Cookies