i have a VM which behaves weirdly sometimes. When im running some powershell code from my c# application, the machines suddenly stops pinging with its hsotname. It even happens when im doing nothing and all of a sudden it stops pinging with its hostname. When i tried to ping with its ip , it works perfectly and the nslookup also gives me the information about the computer along with its hostname. I have tried all those IPFlush etc commands , but they have no effect.
does any one know why this thing happens???
and also i found a way to resolve this, whenever the machine doesnt ping with its hostname, i run the Enable/Disable WSManCredssp command. as soon as i run either of those commands the machine miraculously starts pinging with its hostname.