3 ms·
>Very few basic functions have been implemented in powershell >nslookup [System.Net.Dns]::GetHostAddresses('google.com') | % ToString >In addition some p
by Arnavion 9y ago
>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'
- cm2187 9y agoOn 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
- Arnavion 9y ago>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".