Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

I cant connect anymore to remote host without specifying the FQDN

$
0
0

Hi guys, 

I've a strange behavior when working with remote hosts ( create or enter a new pssesion, or invoke-command) :

It used to work with netbios name, but now i have to specify the FQDN of the remote host.

This doesnt seems related to DNS and the problem is on my workstation only. Does anyone have a clue ?

I'm running windows7 64bits entreprise with powershell v4

Here are some testing (domain hidden for confidentiality) :

 

  • nslookup OK

PS>nslookup rodc-mridf                                                                                   
Serveur :   rodc-mridf.xxx.com                                                                
Address:  10.110.1.13                                                                                                                                                                                          
Nom :    rodc-mridf.xxx.com                                                                  
Address:  10.110.1.13                                                                                    

 

  • New session with netbios name -> not OK

PS>New-PSSession -cn rodc-mridf                                                                          
New-PSSession : [rodc-mridf] La connexion au serveur distant rodc-mridf a échoué avec le message d'erreur 
services Web et a obtenu une réponse indiquant que l'URL HTTP n'était pas disponible. Cette réponse est ha
Gestion des services Web. Pour plus d'informations, voir la rubrique d'aide about_Remote_Troubleshooting. 
Au caractère Ligne:1 : 1                                                                                 
+ New-PSSession -cn rodc-mridf                                                                           
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                           
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession
    + FullyQualifiedErrorId : URLNotAvailable,PSSessionOpenFailed                                         
Microsoft.PowerShell.Core\FileSystem::\\web-mridf\powershell ---------------------------------------------

  • new session with FQDN -> OK

 PS>New-PSSession -cn rodc-mridf.xxx.com                                                      

                                                                                                         
 Id Name            ComputerName    State         ConfigurationName     Availability                      
 -- ----            ------------    -----         -----------------     ------------                      
  4 Session4        rodc-mridf.x... Opened        Microsoft.PowerShell     Available       

  • pinging netbios name OK

PS>ping rodc-mridf                                                                                                                    Envoi d'une requête 'ping' sur RODC-MRIDF.xxx.com [10.110.1.13] avec 32 octets de données :   
Réponse de 10.110.1.13 : octets=32 temps=1 ms TTL=128                         
Statistiques Ping pour 10.110.1.13:                                                                      
    Paquets : envoyés = 1, reçus = 1, perdus = 0 (perte 0%),                                              
Durée approximative des boucles en millisecondes :                                                        
    Minimum = 1ms, Maximum = 1ms, Moyenne = 1ms                

 

Thanks

 


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>