RDP via TS Web “error occurred… Desktop Gateway server.”

Problem connecting to server via RDP when using the TS web interface.

  1. Login OK to the TS Web Interface.
  2. Click “Connect” to server
  3. RDP Loads…
  4. Error displays: “An error occurred while sending data to the Remote Desktop Gateway server. The server is temporarily unavailable or a network connection is down. Try again later, or contact your network administrator for assistance.”

Note: This problem is related to newer features in RDP v7 which are not installed by default on Windows XP Service Pack 3 (SP3), Windows Vista Service Pack 1 (SP1), and Windows Vista Service Pack 2 (SP2)

Fix:

Turn on CredSSP.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
Right-click -> Security Packages -> Modify -> type “tspkg”. (Leave other info) -> click OK.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders

Right-click -> SecurityProviders -> Modify -> type “credssp.dll” (Leave other info) -> click OK.

Exit -> Restart computer

Outlook 2007 | Cached Mode

In order to change outlook to allow cached exchange mode for multiple mailboxes change the following reg key:

Key: HKCU\Software\Microsoft\Office\12.0\Outlook\Cached Mode
DWORD: CacheOthersMail
Value: 1

Close Outlook, after you have changed / added this key start Outlook.
When you access the shared mailboxes – the first time it will download the content then after this access will be much faster – same as your main mailbox

Note: this fix is also in Office SP2 so best off just updating the SP.

Windows | % System path variables %

%AppData%

Contains the full path to the Application Data folder of the logged-in user. Does not work on Windows NT 4.0 SP6 UK.

%ComSpec%

This variable contains the full path to the command processor; on Windows NT based operating systems this is cmd.exe, while on Windows 9x and ME it is the DOS command processor, COMMAND.COM.

%Localappdata%

This variable is the temporary files of Applications. Its uses include storing of Desktop Themes, Windows Error Reporting, Caching and profiles of web browsers.

%Path%

This variable contains a semicolon-delimited (do not put spaces in between) list of directories in which the command interpreter will search for an executable file that matches the given command. Equivalent to the Unix $PATH variable.

%ProgramFiles%

This variable points to Program Files directory, which stores all the installed program of Windows and others. The default on English-language systems is C:\Program Files. In 64-bit editions of Windows (XP, 2003, Vista), there are also %ProgramFiles(x86)% which defaults to C:\Program Files (x86) and %ProgramW6432% which defaults to C:\Program Files.

The %ProgramFiles% itself depends on whether the process requesting the environment variable is itself 32-bit or 64-bit (this is caused by Windows-on-Windows 64-bitredirection).

%CommonProgramFiles%

This variable points to Common Files directory. The default is C:\Program Files\Common Files.

%SystemDrive%

The %SystemDrive% variable is a special system-wide environment variable found on Microsoft Windows NT and its derivatives. Its value is the drive upon which the system folder was placed. Also see next item.

The value of %SystemDrive% is in most cases C:.

%SystemRoot%

The %SystemRoot% variable is a special system-wide environment variable found on Microsoft Windows NT and its derivatives. Its value is the location of the system folder, including the drive and path.

The drive is the same as %SystemDrive% and the default path on a clean installation depends upon the version of the operating system. By default, on a clean installation:

Windows NT 5.1 (Windows XP) and newer versions use \WINDOWS

Windows NT 5.0 (Windows 2000), Windows NT 4.0 and Windows NT 3.1 use \WINNT

Windows NT 3.5x uses \WINNT35

%WinDir%

This variable points to the Windows directory (on Windows NT-based operating systems it is identical to the %SystemRoot% variable, above). If the System is on drive C: then the default values are:

C:\WINDOWS on Windows 95, Windows 98, Windows Me, Windows XP, Windows Server 2003, Windows Vista,Windows Server 2008 and Windows 7

C:\WINNT for Windows NT 4, and Windows 2000

Note that Windows NT 4 Terminal Server Edition by default installs to C:\WTSRV.

%Logonserver%

Awesome little short-cut. Allows us to get to the DC which was used for login. Very handy if trying to change passwords are you can update the DC so there is no waiting for replications.

MBR vs GPT & Active Partitions & Basic vs Dynamic Disks

MBR = Master Boot Record is the standard partitioning scheme that’s been used on hard disks since the PC first came out. It supports 4 primary partitions per hard drive, and a maximum partition size of 2TB.

GPT = GUID Partition Table disks are new, and are readable only by Windows Server 2003 SP1, Windows Vista (all versions), and Windows XP x64 Edition. The GPT disk itself can support a volume up to 2^64 blocks in length. (For 512-byte blocks, this is 9.44 ZB – zettabytes. 1 ZB is 1 billion terabytes). It can also support theoretically unlimited partitions.

Windows restricts these limits further to 256 TB for a single partition (NTFS limit), and 128 partitions.

Source: http://www.tomshardware.co.uk/forum/233291-14-what-difference


Active partitions:

Also, there are a few things to note about marking a partition as active:

A logical drive or extended partition cannot be marked as active, only primary partitions can be changed to active.

You can only have one active partition per physical hard disk. Doing otherwise will cause all kinds of problems.

If you have several physical hard disks on your computer, you can mark a partition as active on each disk, but only the active partition on the first hard disk detected by your BIOS will start up the computer. You can go into the BIOS and change the order to detect hard disks.

Basic Disk Storage

Basic storage uses normal partition tables supported by MS-DOS, Microsoft Windows 95, Microsoft Windows 98, Microsoft Windows Millennium Edition (Me), Microsoft Windows NT, Microsoft Windows 2000, Windows Server 2003 and Windows XP. A disk initialized for basic storage is called a basic disk. A basic disk contains basic volumes, such as primary partitions, extended partitions, and logical drives. Additionally, basic volumes include multidisk volumes that are created by using Windows NT 4.0 or earlier, such as volume sets, stripe sets, mirror sets, and stripe sets with parity. Windows XP does not support these multidisk basic volumes. Any volume sets, stripe sets, mirror sets, or stripe sets with parity must be backed up and deleted or converted to dynamic disks before you install Windows XP Professional.

Dynamic Disk Storage

Dynamic storage is supported in Windows XP Professional, Windows 2000 and Windows Server 2003. A disk initialized for dynamic storage is called a dynamic disk. A dynamic disk contains dynamic volumes, such as simple volumes, spanned volumes, striped volumes, mirrored volumes, and RAID-5 volumes. With dynamic storage, you can perform disk and volume management without the need to restart Windows.

Source: http://www.petri.co.il/difference_between_basic_and_dynamic_disks_in_windows_xp_2000_2003.htm

FSEXTEND.EXE (Diskpart)

After performing the “diskpart extend” command to merge two partitions the new partition will display in disk management however will not show the full capacity. This is a known problem if the command was run without sufficient system resources.
The partition size is extended, but the file system remains the original size when you extend an NTFS volume” – Unfortunately Microsoft have pulled the original “KB832316” (As of 2021) so there is limited information available. There are some references for diskpart here: KB325590

The following method of fixing this with the diskpart tool may work for some (but not others)

diskpart
list volume
select volume X
extend filesystem

If like me you received the following error “Diskpart failed to extend the volume. Please make sure the volume is valid for extending” then there is a 99% this method will not work, in this case you can use the FSEXTEND.EXE tool, after burning around the net and looking at the following EE article it seems that getting hold of the tool is another problem. I resolved this by 45minutes of talking to Microsoft and getting a case open… but to avoid this I’ve uploaded the tool…

Trying to get FSEXTEND.EXE ?

How to Use:

The FSExtend tool really is a “one trick pony” if you try to get the switches required by the program it will simply return with “usage: fsextend.exe driveLetter” so you just need to perform the following:

DISKPART> select volume 1
DISKPART> extend filesystem
DiskPart successfully extended the file system on the volume.
DISKPART> exit
Leaving DiskPart...

Outlook 2007 File Locations

To access the folder holding the toolbar, VBA, send & receive settings, and nickname files, copy and paste:

  • Vista/W7: %USERPROFILE%\AppData\Roaming\Microsoft\Outlook
  • XP: %USERPROFILE%\Application Data\Microsoft\Outlook

To see the message store files, copy and paste:

  • Vista/W7: %USERPROFILE%\AppData\Local\Microsoft\Outlook
  • XP: %USERPROFILE%\Local Settings\Application Data\Microsoft\Outlook

BCDEdit – VHD into boot.ini

bcdedit /copy {current} /d “XPP32-VHD”
bcdedit /set {ef3e950f-0d1f-11df-81c3-0009dd502a5a} device vhd=3D[J:]\Virtual_PC\Microsoft-VPC\Windows-XPP32\Windows-XPP_HDD_10gb_Office2003_DYN.vhd
bcdedit /set {ef3e950f-0d1f-11df-81c3-0009dd502a5a} osdevice vhd=3D[J:]\Virtual_PC\Microsoft-VPC\Windows-XPP32\Windows-XPP_HDD_10gb_Office2003_DYN.vhd
bcdedit /set {ef3e950f-0d1f-11df-81c3-0009dd502a5a} detecthal on
bcdedit /delete {6a8b1f82-071e-11df-8287-c6f21c814b9c} /cleanup
bcdedit /delete {ef3e950e-0d1f-11df-81c3-0009dd502a5a} /cleanup

Ref: Windows 7 to VHD
 

Windows XP Activation Verification

Many computers come with Original Equipment Manufacturer (OEM) versions of XP where the manufacturer has altered or totally removed options from the original menus. This brings up the activation screen to change the product key in XP.

Run -> “oobe/msoobe /a”

Adding Printer via Net Use LPT

Command Line:

NET USE LPT1: \\server\printername /persistent:yes

If this error occurs: “System error 85 – device name already in use” – Meaning the LPT port has already been mapped.

Check what LPT is in use:

NET USE

Change LPT1 to LPT2

TS Web Access not working – ActiveX not installed or enabled

Microsoft RDP ActiveX Control is disabled when you install Windows XP Service Pack 3 or Windows Small Business Server 2003 SP1.

Use the Manage Add-ons dialog in Internet Explorer to enable the Terminal Services ActiveX Control, if the ActiveX control is not listed in Manage Add-ons dialog deleting the following registry keys:

Option1:

HKCU\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{7390f3d8-0439-4c05-91e3-cf5cb290c3d0}
HKCU\Software\Microsoft\Windows\CurrentVersion\Ext\Settings\{4eb89ff4-7f78-4a0f-8b8d-2bf02e94e4b2}

Option2:

run -> cmd.exe /C “cscript %systemroot%\Installer\TSClientMsiTrans\tscuinst.vbs”

Once you delete these keys, the activeX control should be enabled.

Standard Logon Script (*.BAT)

@echo off
cls
REM #############################################################
NET TIME /DOMAIN /SET /Y
echo User: %username%=20
echo Computer: %computername%=20
date /T
time /T

REM Creates a Folder on the server based on the *username*

if not exist \\*server*\Users\%username% mkdir \\*server*\Users\%username%

REM copies a BAT file to the local PC which allows users to simple do
"start -> run -> ip" and displays there ip address in a dos window.

XCOPY \\*server*\NETLOGON\Logon_Software\ip.bat %systemroot%\system32 /y /i

BAT CMD for creating a share on the system:

net share Data="S:\Data" /remark:"Share on Server"

List all AD users & email addresses

Simply put this into the Start -> Run bar and hit enter! to get a print out of users & email addresses within the domain.

  • cmd /c dsquery.exe * -limit 0 -filter “(&(objectCategory=person)(objectClass=user)(mail=*))” -attr name mail >”c:\PrimaryEmailAddresses.txt”
  • cmd /c csvde.exe -r “(&(objectCategory=person)(objectClass=user)(mail=*))” -l name,mail -f “c:\PrimaryEmailAddresses.csv”

Windows BCDEdit

“bcdedit”

Show All Entries: bcdedit /v
Delete: bcdedit /delete {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
Copy: bcdedit /copy { XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX } /d “Name Here”
Set Time: bcdedit /timeout 5
Set Default: bcdedit /default { XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX }

http://go.microsoft.com/fwlink/?LinkId=109528 (BCDEdit Commands)
http://technet.microsoft.com/en-us/library/dd799299%28WS.10%29.aspx (Adding
VHD)

XBMC – RssFeeds.xml

This is the text needed to add a simple RSS Feed into XBMC (I deleted the information by mistake so thought that I would add it here for future reference. I have used the BBC News RSS Feed (Shown Below)

Just locate the file @ \XBMC\userdata\RssFeeds.xml and paste the following code into it:

  • http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/uk/rss.xml