Last active
February 27, 2025 15:48
-
-
Save nshopik/4ab99e27ca9e61f7b8a0 to your computer and use it in GitHub Desktop.
wmic get motherboard model
This file contains 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
wmic baseboard get product /value | |
#powershell | |
$baseboard=Get-WmiObject Win32_baseboard | Select-Object Product | foreach { $_.Product} | |
$name=[System.Text.RegularExpressions.Regex]::Replace($baseboard,"[^0-9a-zA-Z-]","-"); | |
RENAME-COMPUTER -computername (hostname) -newname $name; RESTART-COMPUTER -force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment