mhaner 0 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 Share this post Link to post Share on other sites
AdmiralAlkex 125 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 Share this post Link to post Share on other sites
MHz 80 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. Share this post Link to post Share on other sites