Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows Server 2008 - retain firewall settings after sysprep

Posted on 2011-03-01
1
Medium Priority
?
2,552 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

885 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