esemény
ápr. 29. 14 - ápr. 30. 19
Csatlakozzon a Végső Windows Server virtuális eseményhez április 29-30-án, ahol részletes technikai előadásokat tart, és élő Q&A-t tart a Microsoft mérnökeivel.
Regisztráljon mostEzt a böngészőt már nem támogatjuk.
Frissítsen a Microsoft Edge-re, hogy kihasználhassa a legújabb funkciókat, a biztonsági frissítéseket és a technikai támogatást.
Displays the host name portion of the full computer name of the computer.
Fontos
This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network.
hostname
Parameter | Description |
---|---|
/? | Displays help at the command prompt. |
Any parameter different than /?
produces an error message and sets the errorlevel to 1.
%COMPUTERNAME%
usually will print the same string as hostname
, but in uppercase._CLUSTER_NETWORK_NAME_
is defined, hostname
will print its value.hostname
echo %COMPUTERNAME%
set "_CLUSTER_NETWORK_NAME_=Altered Computer Name"
hostname
esemény
ápr. 29. 14 - ápr. 30. 19
Csatlakozzon a Végső Windows Server virtuális eseményhez április 29-30-án, ahol részletes technikai előadásokat tart, és élő Q&A-t tart a Microsoft mérnökeivel.
Regisztráljon most