mhaner Posted May 27, 2011 Share Posted May 27, 2011 I need to run this command as a domain administrator C:\program files\altiris\aclient\aclient.exe /remove /silent here is what I have that doesn't seem to be working. RunAsSet("username", "domain", "password") Run ("C:\program files\altiris\aclient\aclient.exe /remove /silent") Exit Any help would be really appreciated, need to get this done so I can start my weekend. Thanks Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted May 28, 2011 Share Posted May 28, 2011 Hi and Welcome to the forums! Why are you using a over three (3!) year old version of AutoIt? Just wondering.... .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
MHz Posted May 28, 2011 Share Posted May 28, 2011 Your possible issue could be the whitespace in the path so use quotes in the path string. Note that RunAsSet() has been depreciated in current AutoIt versions. ; older versions of autoit use RunAsSet() RunAsSet("username", "domain", "password") Run('"C:\program files\altiris\aclient\aclient.exe" /remove /silent', @SystemDir) RunAsSet() Exit Later versions of AutoIt use RunAs() ; latest versions of autoit use RunAs() RunAs("username", "domain", "password" _ 0, _ ; adjust logon flag as needed '"C:\program files\altiris\aclient\aclient.exe" /remove /silent', _ @SystemDir _ ) Exit Test and see if that helps. Link to comment Share on other sites More sharing options...
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