great debate
Search Results
September 10, 2013|
Books
All this Summer, we've been encouraging your feedback in a series of Great Debate posts. Most of the topics came from the 2013 Scripting Games, where we definitely saw people …...
Read More
August 27, 2013|
Uncategorized
When should a script (or more likely, function) output raw data, and when should it "massage" its output? The classic example is something like disk space. You're querying WMI, and …...
Read More
August 20, 2013|
Uncategorized
This was a fascinating thing to see throughout The Scripting Games this year: When exactly should you use Write-Verbose, and why? The same question applies to Write-Debug. "I use Write-Debug to provide …...
Read More
August 13, 2013|
Uncategorized
In The Scripting Games this year, more than a few folks took the time to write detailed comment-based help. Awesome. No debating it - comment-based help is a good thing. But …...
Read More
August 6, 2013|
Uncategorized
One of the most frequent comments in The Scripting Games this year was along the lines of, "you should have submitted this as a function, not a script." Of course, …...
Read More
August 1, 2013|
Uncategorized
Today's Great Debate is a bonus, offered from former team member June Blender. Take it away, June! Like several of the excellent debates in our Great Debate series, this debate …...
Read More
July 30, 2013|
Uncategorized
This should be interesting. During The Scripting Games, I observed (and in some cases made) a great many comments that I'm lumping under the name "Purity Laws." You shouldn't use …...
Read More
July 23, 2013|
Uncategorized
Credentials suck. You obviously don't want to hardcode domain credentials into a script - and PowerShell actually makes it a bit difficult to do so, for good reason. On the …...
Read More
July 16, 2013|
Uncategorized
Take a look at this: # version 1 Get-Content computers.txt | ForEach-Object { $os = Get-WmiObject Win32_OperatingSystem -comp $_ $bios = Get-WmiObject Win32_BIOS -comp $_ $props = @{computername=$_;...
Read More
July 10, 2013|
Uncategorized
Here's an age-old debate that we can finally, perhaps, put an end to: The backtick character for line continuation. The basic concept looks like this: Get-WmiObject -Class Win32_BIOS ` -ComputerName …...
Read More