Created
August 21, 2017 07:22
-
-
Save sanae10001/8c95021fa1f985da7eca78789a822428 to your computer and use it in GitHub Desktop.
Get computer name via command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macos: | |
1. networksetup -getcomputername | |
2. scutil --get ComputerName | |
windows: | |
1. echo %ComputerName% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment