Skizz Posted March 9, 2006 Posted March 9, 2006 Here is a sample of what I am trying to do (including the quotes): psexec \\computername net localgroup "whatever goes here" /add and here is a sample of my code (which doesn't work): RUN(@ComSpec & ' /c psexec \\' & $Computer & "netlocalgroup" '"test"' & "/add") Any ideas?
Moderators SmOke_N Posted March 9, 2006 Moderators Posted March 9, 2006 Any ideas?Try a search in the forum, there's been a few topics on this in just the last couple of days. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Skizz Posted March 9, 2006 Author Posted March 9, 2006 I was just wondering why it errors out. I know it is a problem with my code, but I am trying to learn how to troubleshoot code. Thanks for the reply though!
Moderators SmOke_N Posted March 9, 2006 Moderators Posted March 9, 2006 I was just wondering why it errors out. I know it is a problem with my code, but I am trying to learn how to troubleshoot code. Thanks for the reply though!Well for one... your missing an '&'RUN(@ComSpec & ' /c psexec \\' & $Computer & "netlocalgroup" & '"test"' & "/add")Other than that, I'm not knowledgable enough to give you the correct syntax in this area. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Valuater Posted March 9, 2006 Posted March 9, 2006 thi isn't my area either... but do you need to use psexec.exe ??? and check you spacing like this msgbox(0,"Test", $Computer & "netlocalgroup" '"test"' & "/add") it doesn't look right to me 8)
Skizz Posted March 9, 2006 Author Posted March 9, 2006 Got it! Woo Hooo!!! Thanks guys! It works with this: RUN(@ComSpec & ' /c psexec \\' & $Computer & ' net localgroup "Remote Desktop Users" /add' & ' "domain\ usergroup"')
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