Setting a DWORD value with Win32:TieRegistry

I'm new to Perl and I'm writing a script that edits the registry, in specific, I need to set the value of Key

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explore\EnableAutoTray

to 0x0000001

Any help?
LVL 8
jaxstormAsked:
Who is Participating?
 
FishMongerCommented:
use Win32::TieRegistry qw(REG_DWORD);

$Registry->Delimiter("/");
$Registry->{"HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/EnableAutoTray"} = [ "0x0000001", REG_DWORD() ];

Open in new window

0
 
sravi2208Commented:
In run command enter "Regedit"
then go to the location mentioned..

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explore

In menu select edit --> new-->DWORD  value -- enter "EnableAutoTray" and modify and change value data as 1


0
 
jaxstormAuthor Commented:
Erm, that's not going to gelp me with my perl script though..
0
 
jaxstormAuthor Commented:
perfect, thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.