Changing from network profile to a local profile

Sometimes after you reverse the roaming profit group policy the registry on the PC is not changed back and you need to manually change it.

This will change the desktop and my documents location

The easiest way to do this is as follows:

  1. Don’t forget to create a backup before changing anything.
  2. Open the Registry editor (Regedit.exe)
  3. Browse to the location: 
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

    .

  4. In the right window pane select the required value (i.e. Desktop).
  5. Insert the new location for the folder to be stored.
  6. Close the registry editor.
  7. Move the files in the old desktop folder to new location.
  8. Log off and sign in again.

I have only tested this on Windows 10.

 

Take ownership of a folder and all its contents

c:>takeown  /R /F c:\windows\csc\
SUCCESS: The file (or folder): "c:\windows\csc\" now owned by user "domain\user".

  1. Execute the following commands, pressing the Enter key in-between each command. Make sure to replace “FULL_PATH_HERE” with the path to your affected file or folder.
  • takeown /F X:\FULL_PATH_HERE
  • takeown /F X:\FULL_PATH_HERE /r /d y
  • icacls X:\FULL_PATH_HERE /grant Administrators:F
  • icacls X:\FULL_PATH_HERE /grant Administrators:F /t
  • Close the Command Prompt and try changing the permissions for the file or folder affected.
Comments are closed