Create/Import into remote registry via batch script

August 10, 2012 at 01:54:25
Specs: Windows 7
I'm trying to create an entry into the registry of remote systems (domain) via a batch script.

Location: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Ext\CLSID\
Name: {761497BB-D6F0-462C-B6EB-D4DAF1D92D43}
Type: REG_SZ
Value: 1

I have tried:

PSEXEC.EXE \\<COMPUTERNAME> reg add /v "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Ext\CLSID\{761497BB-D6F0-462C-B6EB-D4DAF1D92D43}" /t REG_SZ /d 1

I've also tried copying a .reg file to the remote PC and using:

PSEXEC.EXE \\<COMPUTERNAME> reg import c:\Windows\Temp\RegImport\<File>.reg

The target PCs in the domain are a mixture of 32 and 64 bit, all running windows 7.



See More: Create/Import into remote registry via batch script

Report •

August 10, 2012 at 09:10:34
You say "Current User," but you never specify who that is. If you want to set a key for the user who logs into that machine, use Group Policy to set the key.

I suspect, however, you'd be happier picking another key. Specifically,


How To Ask Questions The Smart Way

Report •

August 25, 2012 at 19:36:09
seems like this would automatically update with the version of java. supprised that you need to mess with it at all?

inless of course you are creating a key that mimics the legit cid...

:: mike

Report •

August 28, 2012 at 02:02:26
The install of java is being performed via a psexec script, this is because non admin users do not have sufficient rights to install software. This extends to the auto update feature.

Group policy would be a good option, but if the IE add-on is not enabled straight away after the install then there is a chance that the users may be prompted to enable/disable Java. If they choose the right answer this is ok, but if they don't then it will result in calls to our IT service desk. What i'm really after is a way of setting Java to enabled immediately after install (preferably also preventing users from disabling it) without allowing all IE add-ons to auto accept after install.

Your assistance is appreciatd.


Report •

Related Solutions

Ask Question