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.
5 questions
2
votes
0
answers
324
views
Shorten this dns txt record request script as much as possible
I have made a short script that will pull dns txt records down from a server and combine them into a single string.
DNS txt records are:
1.website.com
...
6
votes
3
answers
339
views
Tips for restricted source in Powershell
Adapted from Tips for restricted source in Python
Just like code-golf, restricted-source pushes one to exploit quirks and hidden features of the Powershell language. Now, We already have a place to ...
7
votes
2
answers
583
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
3
answers
543
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 ...
53
votes
51
answers
9k
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. "...