Tag: registry

Windows Server 2008: Allow multiple Remote Desktop sessions per user

In Windows Server 2003 you could have multiple Remote Desktop session with the same user. In Windows Server 2008 this is not possible by default. If you login with the same user account the first session will be taken over by second session.

But you can allow multiple Remote Desktop sessions per user by changing a registry key.

  1. Start regedit
  2. Check out the follwoing registry key
  3. If the fSingleSessionPerUser value doesn’t exist, create a new DWORD value named fSingleSessionPerUser
  4. Open the fSingleSessionPerUser value. The possible values for this setting are as follows:
    0x0 Allow multiple sessions per user
    0x1 Force each user to a single session
  5. save this

Found this on remotedesktoprdp.com

Powershell: Changing registry key value

Powershell Header

After posting Pagefile size bigger than 4095MB on Windows Server 2003 I had the Idea to change this registry values with powershell.

  1. First start powershell
  2. You can get all PS Drives with the command


  3. Now you see the drive HKLM which stands for HKEY_LOCAL_MACHINE
  4. Open this Registry Key
    Set-Location 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management'
  5. With this command you get all the key values
    Get-ItemProperty -path .
  6. With the next command you can set the the key value
    Set-ItemProperty -path . -name "PagingFiles" -value "D:\pagefile1\pagefile.sys 4096 4096"

And now the simple way with multiple entries:

$values = @"
D:\pagefile1\pagefile.sys 4096 4096
D:\pagefile2\pagefile.sys 4096 4096
$keys = "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"
$name = "PagingFiles"
Set-ItemProperty -path $keys -name $name -value $values

Pagefile size bigger than 4095MB on Windows Server 2003

UPDATE: If you can use PAE on your Windows Server 2003 you should check out this post: Pagefile size limits on Windows Server 2003

The pagefile size on Windows Server 2003 x86 and other Windows x86 platforms is limited to 4095 MB per pagefile. But a lot of Windows Server 2003 systems already have 4GB RAM and are using PAE (Physical Address Extension) to use them. So it would be useful to create more than 4 GB pagefiles.

Microsofts solution for this is to create multiple pagefiles. You can now create multiple pagefiles on different partitions. If you don’t have enough partitions or you just have one, you can create multiple pagefile in different folders by using the Windows Registry.


  1. Create the folders on the drive where the pagefiles should be located. For example, C:\Pagefile1, C:\Pagefile2, and C:\Pagefile3.
  2. Open regedit.exe
  3. I would recommend to create a backup of the registry
  4. locate this key:
  5. Edit the value “PagingFiles”
  6. Remove the existing values and add the following values:
    C:\Pagefile1\pagefile.sys 4096 4096
    C:\Pagefile2\pagefile.sys 4096 4096
    C:\Pagefile3\pagefile.sys 4096 4096
  7. Save this

Note: It’s still recommended to have the Pagefiles on the same partition as the system

You can get more information in this Microsoft Knowledge Base entry: How to overcome the 4,095 MB paging file size limit in Windows

How to do this with Powershell: Powershell: Changing registry key value