Category Archives: Regedit

Anything to do with writing register entries!

Windows 7 | Delete Offline File Cache CSC Folder

After carrying out a domain migration on a PC the “offline files cache” still retains a local cache for the previous domain.

Within “Offline Files” (Control Panel) there is an option to “Delete temporary files” but this does not remove the “All offline files” cache located in the “C:\Windows\CSC” folder

The workaround to fully remove these files (and start a new offline sync) is to add the “FormatDatabase” registry entry which forces deletion.

This command will add the registry entry. After which reboot the system and all offline files will be removed:

reg add HKLM\SYSTEM\CurrentControlSet\services\CSC\Parameters /v FormatDatabase /t REG_DWORD /d 1

Disable Java Update | Windows

Quickest solution to stop this annoying update prompt is to use this regedit and which modifies the “Update” DWORD.
This update prompt is even more annoying if the user does not have local administrator rights.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Update\Policy]

"EnableJavaUpdate"=dword:00000000
"EnableAutoUpdateCheck"=dword:00000000

Office 2013 | Changing *.OST Location | Regedit

This needs a registry update, customize the string value with your OST path.

This is for Office 2013, but can be used with Office 2007/2003 by changing the “15.0” version option.

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\outlook]
"ForceOSTPath"=string:D:\My Documents\Outlook

Once the registry update has been completed, create a new profile (which defaults to this location) and move the old .ost to this directory (same file-name and overwrite the existing .ost)

Adding “Trusted Sites” to IE10 | Regedit | BAT | GPO

I’ve been looking for a simple method to add trusted sites into Internet Explorer 10 since they removed the “Internet Explorer Maintenance” (“The Internet Explorer Maintenance (IEM) snap-in is replaced by the Internet Explorer 10 preference extension”) options from the Server 2012 GPO.

Unfortunately a number of the methods for “adding trusted sites” prevent the local user from being able to customise the list with any additional sites. The method below is the quickest I have found to add a site to the “trusted sites” whilst also allowing users customisation. The following will add “work.edwardsd.co.uk” to the trust sites list:

*.BAT File Method:

REM See http://technet.microsoft.com/en-us/library/cc732643.aspx for Reg Commands/Switches
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\edwardsd.co.uk\work" /v "http" /t REG_DWORD /d 00000002 /Y

*.REG Method:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\edwardsd.co.uk\work]
"https"=dword:00000002

Note: The dword number represents the following values:

  • 1: Intranet sites
  • 2: Trusted Sites
  • 3: Internet
  • 4: Restricted Sites.
"https"=dword:00000001
"https"=dword:00000002
"https"=dword:00000003
"https"=dword:00000004

GPO Method:
The alternative option would be to use a GPO, usually my preference however I found this a little bit more complex so opted for the *.BAT option. This is a top site for GPO guides: GPO to configure IE zones sites (remember if you use this method the users can’t make changes themselves, but great for a controlled environment.

Outlook 2010 | Enable/Disable Cached Exchange Mode | Regedit

If “Cached Exchange Mode” in Outlook is grayed it can be switched on/off via regedit.

To Enable OST files and switch cached exchange mode on:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\outlook\ost]
"NoOST"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\outlook\cached mode]
"Enable"=dword:00000001

To Disable OST files and switch cached exchange mode off:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\outlook\ost]
"NoOST"=dword:00000002
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\outlook\cached mode]
"Enable"=dword:00000000

You can also enabled/disable cached exchange mode for shared mail folders (note this is only slightly different and contained under “Policies”):

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\OST]
"NoOST"=dword:00000002
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Cached Mode]
"CacheOthersMail"=dword:00000000

Reference: KB982697

Logmein – Disconnect Remote Printer (regedit)

When using Logmein the local printer is automatically redirect to the server/pc by default. This can be turned off by either deleting the printer from “devices & printers” or unticking the printer on the logmein icon bar. Unfortunately the printer will simply reattached itself when you logoff / logon again. In order to stop printer redirection permanently you will need to update the use this regedit (this was confirmed by logmein support 2011/12/22)

I was experiencing the problem with users of a terminal server remotely printing to my PC by default while I was “admining” the server.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\LogMeIn\V5\RemoteControl]
"EnableRemotePrinting"=dword:00000000

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.

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.

Outlook 2003/2007 | Recover Deleted Item in (Exchange 2007)

Outook 2007
1. Open an Outlook client that has access to the mailbox that has deleted items.
2. Select the Deleted Items folder.
3. From the Tools menu, select Recover Deleted Items.
4. Select the item that you want to recover, and then click Recover Selected Items.

Outlook 2003
For Some reason this option is greyed out on 2003 why???
1. Start, Run, “Regedit”
2. Locate: HKEY_LOCAL_MACHINESOFTWAREMicrosoftExchangeClientOptions
3. Add DWORD Value “DumpsterAlwaysOn” Value: “1” Value: “Decimal”7.
4. Close Registry Editor.
5. Restart Outlook.

Deleted item retention must be configured on the server


Microsoft Office Outlook 2003 Blocked attachments (*.exe)

Regedit to stop *.com & *.exe in outlook 2003 (different reg entry for 2007)

Regedit
 
[HKEY_CURRENT_USERSoftwareMicrosoftOffice11.0OutlookSecurity]
"Level"=dword:00000003
"UseCRLChasing"=dword:00000001
"Level1Remove"=".exe;.com"

Remove Proxy Settings in IE (*.REG)

Regedit

“remove-Proxy-Settings.reg”

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet Settings]
"EnableAutoProxyResultCache"=dword:00000000
"EnableNegotiate"=dword:00000000
"ProxyEnable"=dword:00000000
"AutoConfigURL"=""
"ProxyServer"=""
"ProxyOverride"=""

BAT File (Call the reg Procedure):

“run-remove-Proxy-Settings.bat”

"reg import remove-Proxy-Settings.reg"