great debate Search Results

Great Debate: The Conclusion

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

PowerShell Great Debate: "Fixing" Output

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

PowerShell Great Debate: What's Write-Verbose For?

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

PowerShell Great Debate: Can You Have Too Much Help?

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

PowerShell Great Debate: Script or Function?

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

PowerShell Great Debate: PowerShell Versions?

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

PowerShell Great Debate: The Purity Laws

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

PowerShell Great Debate: Credentials

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

PowerShell Great Debate: Piping in a Script

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

PowerShell Great Debate: Backticks

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