Forum Discussion
Server 2012 not getting gateway
PS C:\Users\abc> Get-NetConnectionProfile
Name : xyz.local
InterfaceAlias : Ethernet
InterfaceIndex : 12
NetworkCategory : DomainAuthenticated
IPv4Connectivity : LocalNetwork
IPv6Connectivity : NoTraffic
PS C:\Users\abc> Test-NetConnection DNSserverIP -Port 53
Test-NetConnection : The term 'Test-NetConnection' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ Test-NetConnection DNSserverIP -Port 53
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Test-NetConnection:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\abc> Test-NetConnection http://www.google.com
Test-NetConnection : The term 'Test-NetConnection' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ Test-NetConnection http://www.google.com
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Test-NetConnection:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
From my end the basics look fine. netprofile and ipconfig look good. hard to TS from remote why it does not work.
what you can see it can only talk to local network.
NLA does not detect internet.
IPv4 Connectivity would be: Internet
then.
There is no other way but to debug networking, VLAN, Gateway reachable, DNS lookup (
Resolve-DNSname yourDCDNSName.domain.com
Resolve-DNSname www.google.com
if these commands do not exist try nslookup instead of Resolve-DNSName.
- yshahzadJun 04, 2024Copper Contributor
I tried the below commands:
PS C:\Users\abc> Resolve-DNSname CompanyDNS
Name Type TTL Section IPAddress
---- ---- --- ------- ---------
CompanyDNS.company.local A 3600 Answer x.y.z.252
PS C:\Users\abc> Resolve-DNSname http://www.google.comName Type TTL Section IPAddress
---- ---- --- ------- ---------
http://www.google.com AAAA 37 Answer 2a00:1450:4006:808::2004
http://www.google.com A 37 Answer 142.251.37.196