Solved

Windows Server 2008 - retain firewall settings after sysprep

Posted on 2011-03-01
1
2,423 Views
Last Modified: 2012-05-11
Greetings experts -

I'm deploying Windows Server 2008 x86 and x64 (not R2) in our virtual environment via sysprepped template.  On the master VM I enabled firewall exceptions for "Remote Desktop Connection" and "File and Printer Sharing" so folks can immediately ping and then RDP to the deployed VM without having to log into the console first.

Unfortunately sysprep seems to reset the firewall to defaults, disabling both of these exceptions in the deployed VM.

Is there some way to tell sysprep to not do this?  By local group policy, the registry, etc.?

Thanks in advance, as always.
0
Comment
Question by:annexit
1 Comment
 

Accepted Solution

by:
annexit earned 0 total points
ID: 35020848
After doing some research and testing I figured this one out on my own.  I'll post it here for others.

Moderator - this can be closed out.

************************************************************************************************
Windows Server 2008 (not R2) Firewall Settings via GPEDIT.MSC

These settings are retained after sysprepping the machine.

Click Run, type "gpedit.msc"

Navigate to Computer Configuration > Windows Settings > Security Settings > Windows Firewall with Advanced Security

Go to Windows Firewall with Advanced Security - Local Group Policy Object > Inbound Rules

To enable RDP, which keeps after sysprepping:
      Right-click on "Inbound Rules" and select "New Rule"
      Select "Predefined", then "Remote Desktop" from the drop-down
      Keep pressing Next, "Allow the Connection", press Finish

To enable File and Printer Sharing, which keeps after sysprepping:
      Right-click on "Inbound Rules" and select "New Rule"
      Select "Predefined", then "File and Printer Sharing" from the drop-down
      Keep pressing Next, "Allow the Connection", press Finish

Exit gpedit

Reboot
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question