Condividi tramite


Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!

PowerShell One-Liner: Removing a System Variable

We've learned we can create system variables on a remote machine with the setx.exe command: PSH>...

Author: timdunn Date: 10/13/2009

PowerShell for N00bs: $env:temp vs. %TEMP%

A while ago, we snuck in something. PSH> dir $env:temp | less $env:temp is PowerShell's way of...

Author: timdunn Date: 10/11/2009

PowerShell for Non-N00bs: Certificates Installed on a Remote Host

Okay, we know how to examine when a certificate file expires. How about whne a certificate that's...

Author: timdunn Date: 10/07/2009

PowerShell for Non-N00bs: Certificate Files

Let's say we have a certfiicate file. ("We have a certificate file." Yuck-yuck, haw-haw.) When does...

Author: timdunn Date: 10/05/2009

Free Beginner's PowerShell eBook

Thanks to MSDN's Keith Hill for his "Effective Windows PowerShell" ebook posted to...

Author: timdunn Date: 09/30/2009

We all know PSH can output objects. When the cmdlets or input give it objects to work with,...

Author: timdunn Date: 09/27/2009

We all know PSH can output objects. When the cmdlets or input give it objects to work with,...

Author: timdunn Date: 09/26/2009

PowerShell One-Liner: What's the Function Name?

Rather than have to put the function's name in the error mesage (and then forgetting to change it...

Author: timdunn Date: 09/24/2009

PowerShell One-Liner: Hardware SKU

Someone asked me what kind of server I was running in the lab. Uh, I don't have lab access, and even...

Author: timdunn Date: 09/22/2009

PowerShell One-Liner: Strings to Arrays and Back Again

I'm (just) a old-school Perl hacker and miss their join() and split() functions. Turns out, while...

Author: timdunn Date: 09/20/2009

PowerShell One-Liner: Stripping Comments and Blanks

I know, I know, XML is the new standard. There are still times where flat files are easier. Time is...

Author: timdunn Date: 09/17/2009

TechTips: Debuggers, Process Explorer and Symbols

(Thanks to David Solomon for this: https://www.solsem.com/lab-setup.html) WinDbg - install from...

Author: timdunn Date: 09/15/2009

PowerShell One-Liner: Decrypt-SecureString

Let's say you have a $secureString. If you don't have one handy, create one: PSH> $secureString =...

Author: timdunn Date: 09/10/2009

Here's how to create a shortcut in PowerShell. Actually, it's how to create a shortcut with COM in...

Author: timdunn Date: 09/06/2009

Tech Tips: Command Prompt++ - the console.exe tool

Much of this blog deals with PowerShell, which is primarily command-line. PowerShell.exe is built on...

Author: timdunn Date: 09/05/2009

PowerShell One-Liner: List Time Formats

Part of the Power in PowerShell is access to .NET objects. Let's take the simple (ha!) Get-Date...

Author: timdunn Date: 08/29/2009

TechTips: Don't Recall, Delay (Your Email, That Is)

Instead of saying 'oops' and sending out a recall request after re-reading the email and realizing I...

Author: timdunn Date: 08/27/2009

PowerShell for N00bs 4: More Properties than a Monopoly Board

We used Select-Object -Property to, well, select properties (after all, PowerShell is trying to move...

Author: timdunn Date: 08/25/2009

PowerShell One-Liner: Is this a debug build or not?

In a dev environment, there are debug builds and there are retail builds. And there are debug builds...

Author: timdunn Date: 08/23/2009

PowerShell One-Liner: sort | uniq -c

Another track, this time for me to collect useful scripting snippets. Here's one: In Unix, if I have...

Author: timdunn Date: 08/21/2009

PowerShell for Non-N00bs: My Script Outline

This is more for me to know where to go looking for this. I don't expect anyone else to laud it and...

Author: timdunn Date: 08/19/2009

PowerShell for N00bs 3: What's a.k.a. short for?

"Also known as." It's an abbreviation, a TLA. (What's a TLA short for? "Three Letter Acronymn." See:...

Author: timdunn Date: 08/16/2009

PowerShell for N00bs 2: Power Under the Hood

"Hello, World!" That's how you write "Hello, World" in PowerShell. No, this isn't a flashback to...

Author: timdunn Date: 08/14/2009

PowerShell for Non-N00bs: How Much is That Character in the Window? (Or, How to Change Your Password Without Really Trying)

I'm creating a slightly different track here. PowerShell for Non-N00bs is for me to track some of...

Author: timdunn Date: 08/10/2009

Automated Logins with PuTTY, Pagent, ssh and ssh-agent

Passwords are a necessary evil, but they get in the way when we have to administer multiple Unix...

Author: timdunn Date: 08/08/2009

PowerShell for N00bs 1: Hello, World

"Hello, World!" That's how you write "Hello, World" in PowerShell. Give it a try: PSH> "Hello,...

Author: timdunn Date: 08/05/2009

PowerShell for N00bs 0: References

(I actually wrote this blog after PowerShell for N00bs 1: Hello, World, but the content of this...

Author: timdunn Date: 08/04/2009

<Previous