MSFN Forum: Firewall Exception - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Firewall Exception How to build one?

#1 User is offline   t3c 

  • Group: Members
  • Posts: 2
  • Joined: 04-May 09

Posted 04 May 2009 - 05:21 AM

Hi,

im currently messing with my unattended.xml trying to do a firewall exception for remote desktop.

This the main part (i think) that should be interesting:

		<component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
			<fDenyTSConnections>false</fDenyTSConnections>
		</component>
		<component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
			<UserAuthentication>0</UserAuthentication>
		</component>
		<component name="Networking-MPSSVC-Svc" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
			<FirewallGroups>
				<FirewallGroup>
					<Active>true</Active>
					<Group>Remote Desktop</Group>
					<Profile>all</Profile>
				</FirewallGroup>
			</FirewallGroups>
			<RunSynchronous>
				<RunSynchronousCommand>
					<Path> netsh advfirewall firewall add rule name="RemoteDesktop" protocol=TCP dir=in localport=3389 action=allow</Path>
					<Description>Enable Remote Desktop</Description>
					<Order>1</Order>
				</RunSynchronousCommand>
			</RunSynchronous>
		</component>


The installation is running fine but there is no exception for the remote desktop.

Any ideas?

greetings,
t3c

This post has been edited by t3c: 04 May 2009 - 05:22 AM



#2 User is offline   leen2 

  • Member
  • Group: Members
  • Posts: 44
  • Joined: 17-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 May 2009 - 09:53 AM

You are missing the action in FirewallGroups. It should be:

<FirewallGroups>
<FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop">
<Active>true</Active>
<Group>Remote Desktop</Group>
<Profile>all</Profile>
</FirewallGroup>
</FirewallGroups>

#3 User is offline   t3c 

  • Group: Members
  • Posts: 2
  • Joined: 04-May 09

Posted 06 May 2009 - 12:40 AM

Thank you for you answer leen2, but if i add the wcm:action part and view the unattend.xml in IE it says that it finished successfully but there was an error with a Resource at the Firewall Group line. When i try to install it my DXUnion crashes because of my broken unattend.xml file.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy