Jump to content

RegWrite Help!


Recommended Posts

I am trying to automate a process that I have to do about 25 times a day. I have to change the "Permission Required" and the "System Tray Visible Signal Value data from "1" to "0" on different computers in a domain environment I was thinking of prompting for the computer name then doing a "RegWrite" with the string but the "$3" gets grayed out when I try and place the variable in the string here is my code anybody have a fix or a better Idea, or even the assurance that it can be done let me know. I will be indebted to you forever.

$3 = InputBox("Remote Prep tool", "What is the Computer name?", "Type PC Name Here", "", _
    -1, -1, 0, 0)
RegWrite("\\$3\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Client\Client Components\Remote Control", "Permission Required", "0")
MsgBox(4096, "Operation Complete on PC", $3)
Link to comment
Share on other sites

Hi,

do you want to do it from remote or local? (the RegWrite)

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

I am trying to automate a process that I have to do about 25 times a day. I have to change the "Permission Required" and the "System Tray Visible Signal Value data from "1" to "0" on different computers in a domain environment I was thinking of prompting for the computer name then doing a "RegWrite" with the string but the "$3" gets grayed out when I try and place the variable in the string here is my code anybody have a fix or a better Idea, or even the assurance that it can be done let me know. I will be indebted to you forever.

$3 = InputBox("Remote Prep tool", "What is the Computer name?", "Type PC Name Here", "", _
    -1, -1, 0, 0)
RegWrite("\\$3\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Client\Client Components\Remote Control", "Permission Required", "0")
MsgBox(4096, "Operation Complete on PC", $3)
I see the problem.

$3 = InputBox("Remote Prep tool", "What is the Computer name?", "Type PC Name Here", "", _
    -1, -1, 0, 0)
RegWrite("\\"&$3"&\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Client\Client Components\Remote Control", "Permission Required", "0")
MsgBox(4096, "Operation Complete on PC", $3)[/code]
Link to comment
Share on other sites

RegWrite("\\"&$3"&\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Client\Client Components\Remote Control", "Permission Required", "0")
oÝ÷ Ûú®¢×wmë&jYmÊ-êÞJ.Ú}Ê.®Çy«­¢+Ø)I]É¥Ñ ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØì̵ÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí5¥É½Í½ÐÀäÈíM5LÀäÈí
±¥¹ÐÀäÈí
±¥¹Ð
½µÁ½¹¹ÑÌÀäÈíIµ½Ñ
½¹Ñɽ°ÅÕ½Ðì°ÅÕ½ÐíAɵ¥ÍÍ¥½¸IÅÕ¥ÉÅÕ½Ðì°ÅÕ½ÐìÀÅÕ½Ðì¤(yx

Good find though ! :whistle:

Edited by iNFERiON
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...