SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error executing RegistrySetKey

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error executing RegistrySetKey
Author Message
Victor Neto



Joined: 03 Nov 2004
Posts: 17

Post Error executing RegistrySetKey Reply with quote

Hi,

When I execute the following code I get an error:

Line 34 Error Writing to Registry.

Code:

Dim myKey , String
Dim myValueName , String
Dim myValueType , String
Dim myValue , String

Set myKey , "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
Set myValueName , "AutoAdminLogon"
Set myValueType , "STRING"
Set myValue , "1"

RegistrySetKey myKey, myValuename, myValueType, MyValue

Any Ideas?

Thanks Vic


Tue Dec 07, 2004 4:27 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Error executing RegistrySetKey Reply with quote

Replace HKLM with HKEY_LOCAL_MACHINE

: Hi,

: When I execute the following code I get an error: Line 34 Error Writing to
: Registry.

: Code: Dim myKey , String
: Dim myValueName , String
: Dim myValueType , String
: Dim myValue , String

: Set myKey , "HKLM\SOFTWARE\Microsoft\Windows
: NT\CurrentVersion\Winlogon"
: Set myValueName , "AutoAdminLogon"
: Set myValueType , "STRING"
: Set myValue , "1"

: RegistrySetKey myKey, myValuename, myValueType, MyValue

: Any Ideas?

: Thanks Vic

Tue Dec 07, 2004 4:34 pm View user's profile Send private message
Victor Neto



Joined: 03 Nov 2004
Posts: 17

Post Re: Error executing RegistrySetKey Reply with quote


It worked Perfectly... Thanks A Lot!

I still had the HKEY from my VBScript file...

Thanks Vic

: Hi,

: When I execute the following code I get an error: Line 34 Error Writing to
: Registry.

: Code: Dim myKey , String
: Dim myValueName , String
: Dim myValueType , String
: Dim myValue , String

: Set myKey , "HKLM\SOFTWARE\Microsoft\Windows
: NT\CurrentVersion\Winlogon"
: Set myValueName , "AutoAdminLogon"
: Set myValueType , "STRING"
: Set myValue , "1"

: RegistrySetKey myKey, myValuename, myValueType, MyValue

: Any Ideas?

: Thanks Vic

Tue Dec 07, 2004 4:57 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.