plgii Posted April 9, 2009 Posted April 9, 2009 I currently have all users authenticate to Linux box and run their logon script that is located on the Linux box this way: XP Group Policy under logon scripts I have: \\servername\netlogon\joe.bat works fine, but now I want to do this via Autoit script. example dim $username = " " $username = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultUserName") $username1 = StringLower($username) Runwait("\\servername\netlogon\$username1" & ".bat", "", @SW_HIDE) this would make it so I only need one script, but for some reason it will not run the script, but if I just put the users name (i.e. joe.bat) in the Runwait it works fine. What am I missing?
dillonlim Posted April 9, 2009 Posted April 9, 2009 Try RunWait("\\servername\netlogon\" & $username1 & ".bat", "", @SW_HIDE)I currently have all users authenticate to Linux box and run their logon script that is located on the Linux box this way:XP Group Policy under logon scripts I have: \\servername\netlogon\joe.batworks fine, but now I want to do this via Autoit script. exampledim $username = " "$username = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon", "DefaultUserName")$username1 = StringLower($username)Runwait("\\servername\netlogon\$username1" & ".bat", "", @SW_HIDE)this would make it so I only need one script, but for some reason it will not run the script, but if I just put the users name (i.e. joe.bat) in the Runwait it works fine.What am I missing?
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