Questions tagged [powershell]

This challenge is related to the PowerShell language. Note that challenges that require the answers to be in a specific language are generally discouraged.

Filter by
Sorted by
Tagged with
7
votes
2answers
297 views

PowerShell: test connection in as few characters as possible

I need this down to as few characters as possible. I would use Test-NetConnection but I need PSv2 compatability. Any help would be appreciated. ...
6
votes
3answers
395 views

Doing shorter comparisons in PowerShell

One of the annoying bits about PowerShell, which helps amplify its disadvantage against other languages in code-golf, is that there are no symbolic comparison or logical operators. A comparison that ...
45
votes
41answers
4k views

Tips for golfing in PowerShell

What general tips do you have for golfing in Windows PowerShell? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to PowerShell (e.g. "...