Jump to content
Sign in to follow this  
city83

RegWrite Help!

Recommended Posts

city83

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)

Share this post


Link to post
Share on other sites
Xenobiologist

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

Share this post


Link to post
Share on other sites
NELyon

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]

Share this post


Link to post
Share on other sites
iNFERiON

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

Share this post


Link to post
Share on other sites
city83

thank you for your help... I coulnd relpy befor I dont know why.

Share this post


Link to post
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
Sign in to follow this  

×