midiboy Posted November 24, 2007 Posted November 24, 2007 (edited) Hi guys,Did a search on firewall and vista but did not come up with a solution. I would like to change firewall settings in Vista during the unattended setup. So far I tried adding Remote Desktop to the exceptions list.If I change those settings in Vista and observe registry change then the following changes are recorded by Regshot:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Epoch]"Epoch"=dword:00000012[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules]"RemoteDesktop-In-TCP"="v2.0|Action=Allow|Active=FALSE|Dir=In|Protocol=6|Profile=Domain|Profile=Private|LPort=3389|App=Sstem|Name=Remotedesktop (TCP eingehend)|Desc=@FirewallAPI.dll,-28756|EmbedCtxt=@FirewallAPI.dll,-28752|Edge=FALSE|""{C7826956-5A07-4A17-8E99-B83D704EE483}"="v2.0|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Public|LPort=3389|App=System|Name=Remoteesktop (TCP eingehend)|Desc=@FirewallAPI.dll,-28756|EmbedCtxt=@FirewallAPI.dll,-28752|Edge=FALSE|"However, if I add those registry keys during audit phase (user selectable during WPI setup), they do not work. Any ideas ?Thanks,Alex Edited December 10, 2007 by midiboy
midiboy Posted December 10, 2007 Author Posted December 10, 2007 Hi again,just found out that the same firewall setting seems to create slightly different registry entries each time. So on another installation the entries in the registry are like this:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Epoch]"Epoch"=dword:00000017[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules]"RemoteDesktop-In-TCP"="v2.0|Action=Allow|Active=FALSE|Dir=In|Protocol=6|Profile=Domain|LPort=3389|App=System|Name=Remotedesktop (TCP eingehend)|Desc=@FirewallAPI.dll,-28756|EmbedCtxt=@FirewallAPI.dll,-28752|Edge=FALSE|""{7464F2B7-09EC-4DFC-B3F9-F669C74F2C15}"="v2.0|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Private|LPort=3389|App=System|Name=Remotedesktop (TCP eingehend)|Desc=@FirewallAPI.dll,-28756|EmbedCtxt=@FirewallAPI.dll,-28752|Edge=FALSE|"How do I create a simple firewall rule unattended ? Obviously it does not work like this. Is there a commandline tool or something ??Thanks for your help !Alex
Br4tt3 Posted December 14, 2007 Posted December 14, 2007 Rather than doing it trough .reg settings.... u can do it through netsh scripts....
midiboy Posted March 2, 2008 Author Posted March 2, 2008 Hi Br4tt3,thanks for that info. Did this with the following script now:netsh firewall set service type = remotedesktop mode = enableThis does work during audit phase (I do get an OK as a reply) but after the unattended installation finished and I am back at the desktop (of the same user: administrator) the Remote Desktop firewall exception is again disabled. Any ideas ?? How can I make this setting stick ??Thanks for any help !Alex
midiboy Posted March 2, 2008 Author Posted March 2, 2008 Hi !Answering my own question here. It works if I do this:netsh firewall set service type = remotedesktop mode = enable scope=ALL profile=ALLWhen not specifying the profile=ALL command, it is not working for all profiles (work/domain).Bye,Alex
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now