.net - How do I get the localhost name in PowerShell? -


How do I get the localhost (machine) name in PowerShell? I'm using PowerShell 1.0. You can only use the .NET Framework method:

[System.Net.Dns] :: GetHostName ()

also

$ env: COMPUTERNAME


Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c - Different access levels with PAM -