Installing a Persistent iSCSI initiator on Hyper-V 2008 R2
- Details
- Category: Windows Server
- Written by Winfred de Kreij
Because Hyper-V Server 2008 R2 does not have a GUI, all tasks needed to set up an iSCSI initiator need to be done either remotely or from the command prompt.
The iSCSI initiator service needs to start automatically(this can also be done remotely by opening a MMC, adding the services snapin and connecting to the Hyper-V Server): sc config msiscsi start= auto
Start the service (most likely the SC command will already trigger the starting of the service): net start msiscsi
Connect to the iSCSI target Server: iscsicli QAddTargetPortal 10.0.0.1
Now get a list of iSCSI targets: iscsicli ListTargets
Next, copy the target you want and run this command (replace the iqn with your own): iscsicli persistentlogintarget iqn.1991-05.com.something:server-vms-target T * * * * * * * * * * * * * * * 0
Now reboot: shutdown /r /t 10
And verify if the disk is actually mounted. You can do so with either diskpart.exe on the server itself, or you can open an MMC from another computer, add the disk manager snap in and verify visually.
Re: Microsoft Leaks Details of 128-bit Windows 8
- Details
- Category: Windows Server
- Written by Winfred de Kreij
I Saw this article today on slashdot and everywhere else on the internet, about Windows 128 bit. It seemed a bit odd to me. We barely switched to x64. Not everyone seemed to make that distinction. Then my friend on IM asked me to look up the guy who leaked it. Microsoft Research employee Robert Morgan. So I looked him up on the internet. And it turned out that he is a v- or veedash, a vendor, working for Commercial Ops. I looked up what that means: "Commercial Operations Management (COM) unifies marketing and sales within organisations."
I think that is all we need to know about the 128 bit Windows version.
Moving and removing the Swap File in Windows Server 2008 Core
- Details
- Category: Windows Server
- Written by Winfred de Kreij
After installing Windows 2008 core on a server with several drives I ended up with multiple Swap files, something that makes it impossible to change the drive letters.
To change the swap file management from automatically to manually use the following command:
wmic computersystem where name="Servername" set AutomaticManagedPagefile=False
To change the size and location of the swap file:
wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=4100,MaximumSize=4100
After running these commands I still had problems. The swap files were no longer in use on these drives, but the disk management MMC still reported the drives in use for swap.
To solve this, you start regedit and navigate to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\
There are two keys there that can be used to remove the swap file from the drives.
Link to more Windows 2008 server core commands:
How to add a loopback adapter in Windows Server 2008 Core
- Details
- Category: Windows Server
- Written by Winfred de Kreij
How to add a loopback adapter to Windows 2008 server Core:
Find a 2003 server installation disk, x86 or x64 depending on the version you need and navigate to: \SUPPORT\TOOLS\SUPPORT.CAB and extract Devcon.exe.
For a 32 bit version you might be able to simply use the downloadable version of devcon, for 2008 x64, you definitely need to use devcon from support.cab on a 64 bit Windows 2003 server installation disk (I only tested this for the x64 version).
Then on the command line type:
C:\temp>devcon.exe install c:\windows\inf\netloop.inf *MSLOOP
If you did it right, you will see this:
Device node created. Install is complete when drivers are updated...
Updating drivers for *MSLOOP from c:\windows\inf\netloop.inf.
Drivers updated successfully.
And ipconfig /all will show this:
Ethernet adapter Local Area Connection 4:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Loopback Adapter
Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::590d:2eb0:55c9:3959%20(Preferred)
Autoconfiguration IPv4 Address. . : 169.254.57.89(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
If you used the wrong version of devcon you will get the following error:
devcon.exe failed.
Uninstall Software on Windows Server 2008 Core
- Details
- Category: Windows Server
- Written by Winfred de Kreij
To uninstall an application on Windows 2008 core, you first open Regedit on the core installation, then navigate to: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
All the application listed here have an uninstall string. Running this from the command prompt will uninstall the application. Running this command is equal to running unistall from the add/remove application on the regular windows 2008 version, since this application looks up the uninstall command at the same registry location.

