alihyazdi Posted December 17, 2019 Posted December 17, 2019 Hi i start to learn autoit my book is base on autoit v3.2.4.9 but my autoit is 3.3.14.5 why my below code not run for me If @Username <> "Administrator" Then RunAsSet("Administrator",@ComputerName,"password") install() RunAsSet() Else install() EndIf Func install() RunWait("Windows Update 1.exe /passive /norestart") RunWait("Windows Update 2.exe /passive /norestart") EndFunc
Marc Posted December 17, 2019 Posted December 17, 2019 RunAsSet does not exist anymore, use RunAs instead. See Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)
alihyazdi Posted December 17, 2019 Author Posted December 17, 2019 i change it but get error for RunAs()
Developers Jos Posted December 17, 2019 Developers Posted December 17, 2019 1 hour ago, alihyazdi said: i change it but get error for RunAs() Don't you think it would be helpful to also tell us what that error is and what you have coded? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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