Anthony Lucia
asked on
FQDN and hostname
On WIndows 2008 I perform the following:
What I actually need is the fully qualified host name
How can I get that , what command should I run
c:\>hostname
cont6
What I actually need is the fully qualified host name
How can I get that , what command should I run
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Run the command I provided:
(gwmi WIN32_ComputerSystem).Doma in from a powershell window, it should give you the domain of the computer.
(gwmi WIN32_ComputerSystem).Doma
Is the pc a domain member?
If the computer in the workgroup it will display a blank line.
If the computer in the workgroup it will display a blank line.
(gwmi WIN32_ComputerSystem).Name + "." + (gwmi WIN32_ComputerSystem).Doma in
Will return the fqdn of the computer
Will return the fqdn of the computer
ASKER
Open in new window
but did not get the domain