We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,858 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Script conversion from .BAT

I am having an issue with scrip deployment through GP on a 2003 domain.
As well, I am also having an issue with placing this issue in the correct category.

I have a BAT file that has the ability to modify a select registry key and force the change even if the key is already there by using the < REG ADD > command in MS Command prompt.

I am under the assumption that this would be better done as a VBScript by use of the Script section in GP.

The following is the batch file content that is changing this one key:

REG ADD HKLM\Software\RealVNC\winVNC4\ /v Password /t REG_BINARY /d 465504da44659100 /f

Any assistance would be appriciated...
Thanks ahead of time...

3
Contributors
3
Replies
2 Weeks
Discussion Span
8 Months Ago
Last Updated
4
Views
DAS-03590
Junior Poster in Training
67 posts since May 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Okay... Screw it... Bye...

DAS-03590
Junior Poster in Training
67 posts since May 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

hello ,again ,maybe this section of daniweb will serve you better good luck

caperjack
I hate 20 Questions
Team Colleague
13,852 posts since Aug 2003
Reputation Points: 1,071
Solved Threads: 879
Skill Endorsements: 50

While it is possible (and easy) to create/modify registry values in vbScript, you are limited to one DWORD value when writing to a REG_BINARY. Your value exceeds that so vbScript is not an option here. If you have further vbscript questions feel free to post them in the VB.net forum.

Reverend Jim
Carpe per diem
Moderator
3,596 posts since Aug 2010
Reputation Points: 561
Solved Threads: 446
Skill Endorsements: 32

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0622 seconds using 2.67MB