Windows – How to connect to a Remote Registry

October 30, 2013

Often you need to make changes to the user’s Registry to solve issues.

But that is easier said then done, even if you are an administrator Sad smile

(giving the conditions that you had not set all prerequisites already using Group Policy settngs)

So here we go :

– first get a version of MS Sys Internals – PStools    In my case the latest version 2.0, did not work !   So I went back to version 1.98.0.0

Once you start the PSEXEX cmd make sure you use the –h parameter to run with elevated permissions.

-h    If the target system is Vista or higher, has the process run with the account’s elevated token, if available.

Example :

PsExec.exe -h \\PC_NAME cmd

Once started you can see in the CMD prompt windows that you connected correctly.

image

Now run the following cmd :

netsh firewall set service REMOTEADMIN ENABLE SUBNET

image

Next start on your machine AND the remote PC the following cmd :

net start RemoteRegistry

image

Check on both sides if it is started.

Now you are ready to connect to the remote registry using the GUI

image

Enjoy !

Advertisements

Windows – Disk Space Cleanup – Software Distribution and more …

October 15, 2013

Sometimes you run out of disk space on a PC or even a Server !!

Especially on the C drive this will become serious to keep everything running smoothly.

Apart from deleting the rubbish, you can follow this procedure to free up major disk space.

Follow this procedure to get rid of the overload in :

C:\WINDOWS\SoftwareDistribution\Download

1. Is it safe to delete files in ?C:\WINDOWS\SoftwareDistribution\Download

Yes, taken in account you follow these steps :

Start> Run

type cmd and press enter
type net stop wuauserv and press enter
type rename c:\windows\SoftwareDistribution Softwaredistribution.old and press enter
type net start wuauserv and press enter
type exit and press enter

Verify that the new software distribution folder created when you restart the update service. You will notice it will create the missing subfolders again and populate ONLY the downloads that you are missing and not the whole historical downloads.

Restart the computer and del the folder if you have no issues.

Software Distributions Downloads is auto cleaned after a couple of weeks.
Purging more often than that can be done by stopping the service, clearing the downloads dir, then restarting WAU.

This will save you a lot of Gb’s !!

If this is not sufficient you can apply this try to relocate the folder and all the Gb’s to a different drive.

How to relocating the C:\WINDOWS\SoftwareDistribution folder

1. First stop the Windows update Service

image

Copy the folder and files to a new drive with enough space like the “D drive” in my case

 

On the “C Drive” rename the original folder to

C:\WINDOWS\SoftwareDistribution.old

Delete all the subfolders and data from this folder (which had copied to the D drive see above)

Create a new blank C:\WINDOWS\SoftwareDistribution folder

Next create a Symbolic link using Junction  from this new blank folder in the C drive to the copied folder on the D drive.

You can use this tool if needed

junction "C:\WINDOWS\SoftwareDistribution" "D:\WINDOWS\SoftwareDistribution"

image

 

Restart Windows Updates Service again.

Done !

 

2. Is it safe to delete the  SxS folder

You should not be purged entirely, but you can clean up older and duplicate cache files with DISM:

dism /online /cleanup-image /spsuperseded

See here for more info :

https://blogs.technet.microsoft.com/askpfeplat/2014/05/13/how-to-clean-up-the-winsxs-directory-and-free-up-disk-space-on-windows-server-2008-r2-with-new-update/

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder

Then, cleaning up temp spaces, such as with DiskCleanup helps.

 

3. Resize DataStore.edb Database

Run these commands

image

net stop wuauserv
esentutl /k %windir%\softwaredistribution\datastore\datastore.edb
net start wuauserv

image

net stop wuauserv
esentutl /d %windir%\softwaredistribution\datastore\datastore.edb
net start wuauserv

4. More tips on how to recover space is :

1. Windows – WSUS Database CleanUp Tool

2. Windows – Reading & Removing CBS.Log

Enjoy !


Windows – Internet Explorer Development Tools F12 annoyance

October 14, 2013

Sometimes you encounter this annoyance pressing F12 to get the IE Development tools to pop up.

But nothing happens Sad smile

image

You can see the window is active in the background though ?

Solution to fix it is the following :

Select the Developer Tools window – right click it and select Maximize

image

Next when the window is open. Click on the window title bar and drag it to resize.

image

Done !