News for hackers. Stuff that matters.
Re:Microsoft’s PowerShell Core Offers Cross-Platform Automation by Arnavion on Monday January 22, 2018 @04:53PM (#16208294)
>Very few basic functions have been implemented in powershell

>nslookup

    [System.Net.Dns]::GetHostAddresses('google.com') | % ToString
>In addition some powershell commands managed to be inferior to their batch equivalent. Setting a registry key is a prime example. ... it takes several commands in powershell for something that is done in one command with reg.exe.

    sp 'HKLM:\path\to\key' name 'value'
Re:Microsoft’s PowerShell Core Offers Cross-Platform Automation by cm2187 on Monday January 22, 2018 @05:03PM (#16208381)
On nslookup, my point is that it shouldn't crash a powershell script. It's a valid windows command.

On the registry, your command will fail if HKLM:\path\to\key doesn't exist whereas reg.exe would create the key automatically

Re:Microsoft’s PowerShell Core Offers Cross-Platform Automation by Arnavion on Monday January 22, 2018 @05:11PM (#16208471)
>On nslookup, my point is that it shouldn't crash a powershell script.

It does not "crash" a powershell script for any meaningful definition of "crash".