city83 Posted March 2, 2007 Posted March 2, 2007 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)
Xenobiologist Posted March 2, 2007 Posted March 2, 2007 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
NELyon Posted March 2, 2007 Posted March 2, 2007 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]
iNFERiON Posted March 2, 2007 Posted March 2, 2007 (edited) 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 ! Edited March 2, 2007 by iNFERiON
city83 Posted March 5, 2007 Author Posted March 5, 2007 thank you for your help... I coulnd relpy befor I dont know why.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now