Tuesday, December 11, 2007

move file synchronization folders

Moving the Offline Files Cache in Windows Vista
Several customers have asked us how to move the Offline Files cache location from the default location (c:\windows\csc) to another volume. Here is a procedure for doing this.
From an elevated command prompt, run the following command:REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v MigrationParameters /t REG_DWORD /d 1 /f
Run the following command as a user who is a local administrator, substituting the drive letter if necessary:c:\windows\system32\migwiz\migwiz.exe
In the Windows Easy Transfer wizard, select the following options as you progress through the wizard: a. Click Start a New Transfer. b. Click My old computer. c. Click Use a CD, DVD or other removable media. d. Click External hard disk or to a network location. e. Enter a path where you want to save Savedata.mig, and then click Next. f. Click Advanced options. g. On the Select user accounts, files, and settings to transfer page, do the following: i. Deselect all check boxes. ii.Under System and program settings (all users), expand Windows Settings, expand Network and Internet, and then select the Offline Files check box. iii. Repeat the previous procedure for each user listed on the page.h. Click Next to begin the transfer process.
In the registry, create a string value called CacheLocation under HKLM\System\CurrentControlSet\Services\CSC\Parameters. To this value, assign the NT format name of the new folder where you want the cache to be. For example, if you want the cache to be in d:\csc, type \??\d:\csc. Create d:\csc (or whatever path you used in the previous step).
Restart the computer.
Run c:\windows\system32\migwiz\migwiz.exe and select the following options as you progress through the wizard: a. Click Continue a transfer in progress. b. Click No, I've copied files and settings to a CD, DVD, or other removable media. c. Click On an external hard disk or network location. d. Enter the path to the .mig file created in Step 3e. e. Map the user account on the old computer to the corresponding one on the new computer. f. Click Next, and then click Transfer.
Log off, log on, and then make sure you can correctly access your offline files.
Deleting the Old CacheAssuming everything got moved correctly, you can delete the old cache from an RC1 build by typing the following commands from an elevated command prompt:
takeown /r /f c:\windows\cscrd /s c:\windows\csc
The limitation of this method of deleting the old cache is that Takeown.exe can only process paths up to MAX_PATH (260) in length. If this path length is exceeded, the takeown command will fail. To work around this, the suggested method is to move the cache location back to the old one using step 4 again, set a registry key to clear the cache, reboot, and then move the cache back to the new location. Here are the steps.
Due to step 4 above of cache moving instructions, there should already be a string value called CacheLocation under HKLM\System\CurrentControlSet\Services\CSC\Parameters. To this value, assign the NT format name of the old folder where the cache was previously stored. For example, if the old cache was in c:\windows\csc, type \??\c:\windows\csc.
Restart the computer.
In registry, create a DWORD value called FormatDatabase under HKLM\System\CurrentControlSet\Services\CSC\Parameters. To this value, assign the value of 1.
Restart the computer (and log in preferably as a local admin user, so that folder redirection does not kick in again. The other option is to disconnect the network before you log in).
Now assign the CacheLocation reg key back to the new location like step 4 of cache moving instructions.
Restart the computer.
--Jill (with input from Navjot Virk, Sriram Srinivasan, and Shubhankar Sanyal)

shut off vista user account control

Daniel Petri, Petri IT Knowledge Base
Click Here to Watch the Windows Vista Videos!
document.context='YTowOnt9';
Read more about UAC here: What's User Account Control in Windows Vista?
Although UAC clearly improves the security on Windows Vista, under some scenarios you might want to disable it, for example when giving demos in front of an audience (demos that are not security related, for example). Some home users might be tempted to disable UAC because of the additional mouse clicking it brings into their system, however I urge them not to immediately do so, and try to get used to it instead.
Anyway, if required, you can disable UAC by using one of the following methods:
Method #1 - Using MSCONFIG
Launch MSCONFIG by from the Run menu.
Click on the Tools tab. Scroll down till you find "Disable UAP" (this should probably change to UAC in next Vista beta builds and in the RTM version). Click on that line.

Press the Launch button.
A CMD window will open. When the command is done, you can close the window.
Close MSCONFIG. You need to reboot the computer for changes to apply.
Note that you can re-enable UAC by selecting the "Enable UAP" line and then clicking on the Launch button.
Method #2 - Using Regedit
Open Registry Editor.
In Registry Editor, navigate to the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
Locate the following value (DWORD):
EnableLUA
and give it a value of 0.

Note: As always, before making changes to your registry you should always make sure you have a valid backup. In cases where you're supposed to delete or modify keys or values from the registry it is possible to first export that key or value(s) to a .REG file before performing the changes.
Close Registry Editor. You need to reboot the computer for changes to apply.
In order to re-enable UAC just change the above value to 1.
Method #3 - Using Group Policy
This can be done via Local Group Policy or via Active Directory-based GPO, which is much more suited for large networks where one would like to disable UAC for many computers at once.
If using Local Group Policy you'll need to open the Group Policy Editor (Start > Run > gpedit.msc) from your Vista computer.
If using in AD-based GPO, open Group Policy Management Console (Start > Run > gpmc.msc) from a Vista computer that is a member of the domain. In the GPMC window, browse to the required GPO that is linked to the OU or domain where the Vista computers are located, then edit it.
In the Group Policy Editor window, browse to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options.

In the right pane scroll to find the User Access Control policies (they're down at the bottom of the window). You need to configure the following policies:

You'll need to reboot your computers.
Method #4 - Using Control Panel
Open Control Panel.
Under User Account and Family settings click on the "Add or remove user account".

Click on one of the user accounts, for example you can use the Guest account.
Under the user account click on the "Go to the main User Account page" link.

Under "Make changes to your user account" click on the "Change security settings" link.

In the "Turn on User Account Control (UAC) to make your computer more secure" click to unselect the "Use User Account Control (UAC) to help protect your computer". Click on the Ok button.

You will be prompted to reboot your computer. Do so when ready.

In order to re-enable UAC just select the above checkbox and reboot.

Monday, December 10, 2007

SQL XML not installed

Error message
{83D0FC3E-8B31-4B35-A1B2-345BA3954513}

SQLXML was not installed. Install SQLXML and it will work