Monday, 13 May 2013

Windows 2008 share folder flow and issues

1. Open network and sharing center by clicking start button, clicking Control Panel, clicking Network and Internet, and then clicking Network and Sharing Center
2. If network discovery is off, click the arrow button to expand the section, click Turn on network discovery, and then click Apply
3. If file sharing is off, click the arrow button to expand the section, click Turn on file sharing, and then click Apply.
4. If Public folder sharing is off and you want to share files by placing them in the public folder on your server, click the arrow button to expand the section, click Turn on file sharing, and then click Apply.

5. [Important]Go to control panel --> Network and Sharing Center, click Manage network connections, 


right click Local Area Connect, click Properties,

Check whether you installed File and Printer Sharing for Microsoft Networks, If not, select it and click Ok.
By default, Windows 2008 do not install this one.

6. share your folders

7. test whether you can access the shared folders


Wednesday, 8 May 2013

Because of a protocol error, this session will be disconnected. Please try connecting to the remote computer again

When a user remote controls another user's session using RDS Manager or Terminal Services Manager on a Windows Server 2008-based computer, and then stops remote controlling, one or both sessions are disconnected with the following error:

Remote Desktop Disconnected

Because of a protocol error, this session will be disconnected. Please try connecting to the remote computer again.

CAUSE

This problem occurs if Remote Desktop Connection Client version 6.0.6001 or 6.0.6002 is used with the highest RDP Compression setting. Windows Server 2008 SP1/SP2 defaults to a lower RDP Compression setting, and thus will only exhibit the above symptoms if the setting has been changed to "Optimized to use less network bandwidth", which is the maximum. Windows Server 2008 R2 defaults to the maximum RDP Compression setting.

WORKAROUND

Change the RDP Compression setting on the server to "Balances memory and network bandwidth" (recommended) or "Optimized to use less memory" using Group Policy. If using Windows Server 2008 R2 you may also choose "Do not use an RDP compression algorithm". An alternative workaround is to use a different Remote Desktop Connection Client version than those mentioned above, however, this may not be practical. Below are instructions for making the change to the local group policy; if preferred you can use a domain group policy instead.

Windows Server 2008 R2

1. Logon to the Remote Desktop Services Session Host computer as an administrator
2. Start--Run gpedit.msc
3. In the left pane, under Computer Configuration, navigate to following:

Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment

4. In the right pane, double-click on Set compression algorithm for RDP data
5. Select Enabled, and choose Balances memory and network bandwidth
6. Click OK to save the change

Windows Server 2008 (SP1 or SP2)

1. Logon to the Terminal Services computer as an administrator
2. Start--Run gpedit.msc, click Continue if prompted by UAC
3. In the left pane, under Computer Configuration, navigate to following:

Administrative Templates\Windows Components\Terminal Services\Terminal Server\Remote Session Environment

4. In the right pane, double-click on Set compression algorithm for RDP data
5. Select Enabled, and choose Balances memory and network bandwidth
6. Click OK to save the change



Monday, 6 May 2013

How to disable Restrict each user to a single session setting

How to disable Restrict each user to a single session setting

1. Open Remote desktop if you didnot
2. disable restrict each user to a single session
  1. On the RD Session Host server, open Remote Desktop Session Host Configuration. To open Remote  Desktop Session Host Configuration, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Session Host Configuration
  2. In the Edit settings area, under General, double-click Restrict each user to a single session.
  3. On the General tab of the Properties dialog box, clear the Restrict each user to a single session check box according to what is most appropriate for your environment, and then click OK.
  The other way to disable restrict each user to a single session:
     You can also restrict users to a single session on the RD Session Host server by enabling the Restrict Remote Desktop Services users to a single remote session Group Policy setting. This Group Policy setting is located in Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections and can be configured by using either the Local Group Policy Editor or the Group Policy Management Console (GPMC). Note that the Group Policy setting will take precedence over the setting configured in Remote Desktop Session Host Configuration.

Windows 2008 initialization flow

Windows 2008 initialization flow

1. If Windows are not active, please activate it firstly.
2. open remote desktop
3. update Windows, then reboot server
4. turn off auto-update, in case windows reboot after auto-update
5. change windows region, time
6. check guest account is off to make sure guest account is off.
7. change administrator username, for example admin
    control panel --> administrative tools --> local security policy --> local policies --> security options
    --> Accounts: Rename administrator account














8.  change remote desktop connection port from 3389 to xxxx
    1) Run, Regedit
    2)  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]   PortNumber, select Decimal, type in the new port, for example 23389
    3)  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] PortNumber, select Decimal, type in the new port, for example 23389
9.  open new remote desktop connection port in windows firewall, then reboot server
10.  Add IPs you want to permit to login to scope of RDC of windows firewall
11. Disable Restrict each user to a single session setting