I've added these to batch file to run at the end of deployment
sc config "remoteregistry" start= auto
sc start "remoteregistry"
sc config "winrm" start= auto
sc start "winrm"
REG add "HKLM\SYSTEM\CurrentControlSet\services\WinRM" /v Start /t REG_DWORD /d 2 /f
REG add "HKLM\SYSTEM\CurrentControlSet\services\RemoteRegistry" /v Start /t REG_DWORD /d 2 /f
The services are started on the golden vm but commands don't work
The work from my virtual server to my physical machine and vice versa
am I missing something else that needs to be enabled?
No idea what you question is.
This is a PowerShell forum and you are posting batch commands. Why?
If you are asking why Test-Connection fails then please understand that Test-Connection has nothing to do with remoting. Test connection is luke "ping" it just checks to see if the remote system is connected.
All of these things require special firewall settings. You cannot set the firewall remotely.
DNS-entry is ok?
Test it with nslookup.
Is the correct IP-Adress returned?
No idea what you question is.
This is a PowerShell forum and you are posting batch commands. Why?
If you are asking why Test-Connection fails then please understand that Test-Connection has nothing to do with remoting. Test connection is luke "ping" it just checks to see if the remote system is connected.
All of these things require special firewall settings. You cannot set the firewall remotely.
followed https://4sysops.com/archives/enable-powershell-remoting/