How to dump firewall rules into file with powershell

Hi everybody,

again a short note for my self to not search again in my offline notes. 😉

How to dump Firewall rules with Powershell 3.0 and newer in a file “oneliner”.

Inbound rules:

 

Outbound rules:

 

Managing Dell PowerEdge Servers with Windows PowerShell and Dell iDRAC

Today I saw a great article from Dell TechCenter about how to manage your Dell PowerEdge Servers with the integrated Dell Remote Access Card (iDRAC).

For the full article please click here.

Dell KVM 1081ad – Internet Explorer is unable to connect to HTTPS // SSL webinterface

This article was written together with Florian Hilgenberg Dell Enterprise Engineer

Source: www.dell.com

When you are unable to connect to HTTPS // SSL Webinterface with your Internet Explorer please check if you have Microsoft update KB2661254  installed.

This update changes the “minimum certificate key length” and causes the issue.

 

 

 

 

 

 

 

Update information:

Microsoft has released a Microsoft security advisory for IT professionals. This advisory announces that the use of RSA certificates that have keys that are less than 1024 bits long will be blocked. To view the security advisory, go to the following Microsoft website:

To reduce the risk of unauthorized exposure of sensitive information, Microsoft has released a nonsecurity update (KB 2661254) for all supported versions of Microsoft Windows. This update will block cryptographic keys that are less than 1024 bits long. This update does not apply to Windows 8 Release Preview or Windows Server 2012 Release Candidate because these operating systems already include the functionality to block the use of weak RSA keys that are less than 1024 bits long.

Source: support.Microsoft.com (Microsoft Security Advisory: Update for minimum certificate key length)

 

To fix the issue, you can uninstall the update or use an other browser. The Dell KVM 1081ad can use 128bit encryption.

The SCS supports 128-bit SSL(ARCFOUR), AES, DES, and 3DES encryption of keyboard/mouse, video, and virtual media sessions.

Source: Dell™ Server Console Switch User’s Guide

Source: www.dell.com

Mounting .vhd during OS boot via script

Hi Community,

in this blog I will show you how to mount a .VHD file during boot.

1. create a new .txt and type in:

select vdisk file=<filepath to vhd><vhd name>.vhd #example select vdisk file=d:\Brighteyes_Win7_installation.vhd

attach vdisk

2. create a new .bat file

diskpart -s “<filepath to .txt file>” #example “d:\scriptsautomount_data.txt”

3. copy both files on the same harddrive where the your .vhd are located. If you have .vhd files at different positions, copy them in your windows rootdirectory (subfolders are also ok)

4. now you have two options to run the script

Option 1: easiest but worstest way

a. create a link to the batchfile in your autostart folder

Option 2: good middleway

a. click right on the computer icon and select manage

b. Open the computer management and go on Task Scheduler

c. click on create task

d. under general please select:

Name: What ever you think

Discription: Mount VHD file xyz

select -> Run whether user is logged on or not: 

select -> Run with highest priviliges

select -> Configured for Windows 7 and Windows 2008 R2 

e. go on Triggers and klick new

f. select Trigger at startup and klick ok 

g. go on conditions and remove all marks from the checkboxes

h. go on settings and change following options

select -> allow task to be run on demand

select -> Run task as soon as possible after a scheduled task is missed

select -> after the task failed, restart every: 1 minute

select -> Attempt to restart up to: 3 times

select -> stop the task if it runs longer than: 1 houre

select -> ih the running task does not end when requested force it to stop

i. klick ok 

j. restart your OS and check if the HD is mounted

It is also possible to mount VHDs with local or group policy’s. I will explain this in one of my next blogposts.

How to install Windows 7/8 and Windows Server 2008 R2 or Windows Server 2012 in a bootable .VHD file

Hello Community,

In this Blog I want to show you how to install Windows in a bootable VHD. In my example I will use Windows 7.

1. Boot from Windows DVD until you see this Screen

First boot screen where you can select Language, Keyboard and so on.

2. On the next Screen press Shift+ F10 or Repair options to Open a Console

3. On the console type diskpart – now you changed to the application diskpart

4. At first run the command listdisk to see the avail disks

5. If no Disk is listed you need to run the next few task otherwise you can go on with Task 9.

6. Write command select disk 0 to attaché first HD

7. Now type clean to wipe and prepare the drive

8. The last step is to format and attaché the drive. So run following commands:

a. Create part primary

b. Format fs=ntfs label=”Harddrive 0” quick

c. Active

d. Assign letter=c

9. Now you can create the VHD

10. To create the bare VHD type following command: create vdisk file=c:\win7.vhd maximum=50000 type=expandable

You can also use type=fix to allocate the complete space in the HD but this is not needed when you have new faster systems. The OS will not notice when the VHD file expands and you have no performance problems.

11. To prepare the VHD for installation use following commands:

a. select vdisk file=c:\win.vhd

b. attach vdisk

c. create part primary

d. format fs=ntfs label=“Win” quick

e. active

f. assign

12. now type Exit to leave Diskpart

13. Don’t reboot your System!!!

14. Back at x:sources

15. Type the command setup.exe and the windows installation will start

16. Click the User definite installation

17. Select the drive you created

18. And start the installation

19. Finished after the installation and reboot you use the VHD file.