Jump to content
Sign in to follow this  
dreivilo47

[SOLVED] How to solve this problem?

Recommended Posts

6 minutes ago, AutoBert said:

Turn UAC off in registry. A system with enabled UAC allway show a UAC message.

Thanks for the suggestion AutoBert.
How can I turn off UAC in registry before RunWait and turn it on again after RunWait?

 

Share this post


Link to post
Share on other sites

@dreivilo47,

this i not a "problem", and you do not "solve" it.

if you hate UAC on your own machine, then by all means suppress it as suggested (although that may cause other issues). but that is not the case, is it?

to perform an administrative task by a script, then before you begin, make sure your script runs with administrative rights in effect. how you do that depends on your system/network configuration. for examples, you can remotely create a scheduled task to run with the target local SYSTEM account; you can do it with PsExec; you can make use of a deployment tool installed in your network; you can write a background agent to do that; etc.

if you describe your environment, we can suggest the preferred method.

Share this post


Link to post
Share on other sites
On 27-8-2016 at 11:28 AM, AutoBert said:

Turn UAC off in registry. A system with enabled UAC allway show a UAC message.

@AutoBert, turning off UAC in registry (change value EnableLUA to 0) needs a reboot before it works.  I want to avoid that.

Share this post


Link to post
Share on other sites
On 27-8-2016 at 0:18 PM, orbs said:

@dreivilo47,

this i not a "problem", and you do not "solve" it.

if you hate UAC on your own machine, then by all means suppress it as suggested (although that may cause other issues). but that is not the case, is it?

to perform an administrative task by a script, then before you begin, make sure your script runs with administrative rights in effect. how you do that depends on your system/network configuration. for examples, you can remotely create a scheduled task to run with the target local SYSTEM account; you can do it with PsExec; you can make use of a deployment tool installed in your network; you can write a background agent to do that; etc.

if you describe your environment, we can suggest the preferred method.

@orbs, in a couple of weeks I need to install software on more than 100 new laptops.  And I want to automate that so it can be done faster.
These laptops are not connected to a network, so I want to use an USB flash drive with the software on it.
I don't hate UAC, but I want to suppress the uac prompt because it becomes irritant after doing a lot of computers.  It slows down.

Share this post


Link to post
Share on other sites
2 hours ago, dreivilo47 said:

@orbs, how you do that (in a post) the username beginning with an @ is highlighted?  :)

sometimes it works, sometimes it doesn't. this version of the forum software is somewhat crappy.

2 hours ago, dreivilo47 said:

in a couple of weeks I need to install software on more than 100 new laptops.  And I want to automate that so it can be done faster.
These laptops are not connected to a network, so I want to use an USB flash drive with the software on it.

since anyway you are going to plug it in, open the folder, double-click the setup file, and press a few [Next] buttons... i see no reason that one more click should discourage you. especially if working around that single click is probably the most troublesome piece of action to automate, in your case. if this is a one-off operation, and these laptops are fire-and-forget (i.e. you do not keep maintaining them centrally), then i advise you just accept the UAC as it is.

but, you can also get adventurous. you have a couple of weeks to prepare. answer this: are all of those laptops configured with an enabled, password-protected administrative account?

if so, here's what you can consider:

prepare a small network: 8-port switch, one Windows machine, a DHCP service, and an empty desk fitting for 7 laptops.

configure said Windows machine as follows: it constantly monitoring the LAN, whenever a new IP is discovered, it connects to it over PsExec with said admin account to perform the installation. when installation done, it checks if it was successful. if so, it sends a power-off command to the target.

what you do is this: unpack a laptop, connect it to the network, power it on. visit the laptop after few minutes. if it is shut down, repack it and ship to end user (or, randomly picking, disconnect from network, power on and validate the installation yourself). if it is not shut down, then something went wrong with the installation, check the cause or just install manually. you can do several laptops simultaneously like that.

good luck!

 

 

 

 

 

Share this post


Link to post
Share on other sites

@orbs,
- Good to know about the username beginning with an "@".
- You're right, I am going to accept the UAC as it is.
- I don't know of all of them are configured with an enabled, password-protected administrative account.
- Thank you very much for the information about the small network!

Edited by dreivilo47

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By WilliamasKumeliukas
      Hello everyone!
      I've started this project alone in May 2020 as project in my spare time at work, I'm working for a IT compagny that's started opening their services to residential customers few months ago and now my position in the compagny kinda drifted in the doom and gloom world of repetitive tasks like: Reinstallation of Windows 10.
      The procedure is very repetitive and I started feeling like being a robot which is the main reason I started this project.
      ==============================FAQ==================================
      1. Q: Do you want this project to be accomplished with the usage of AutoIT ONLY or 3rd party tools / Scripts (BAT / CMD / VBS) ? A: No, if I cannot find a way using AutoIT to accomplish a task I will move to my Plan B which consist of automating an 3rd party tool to accomplish the affected task until a solution is found. 2. Q: What do I get from contributing/participating in this project? A: I will personally take the responsability to mention you in the credits of this project. 3. Q: If I have more questions, can I ask? A: Certainly! feel free to ask any questions related to this project! 4. Q: What is the main goal of this project? A: Automating Windows 10 configuration without user interaction needed (as much as possible) ______________________________________________________________________________________________________________________________
      Current progression of the project (more might be added in future)
      « Blue = Info || Yellow = Unfinished/Untested || Purple = Could be better || Green = Done ||Red = Not Yet Started »
      *** Very early Stage ***
      Connect Network Attached Storage(NAS) (Tested & Working - AutoIT only)
      Install Adobe Reader DC, 7zip, Google Chrome (Tested & Working - using 3rd party tool)
      Change OEM Information (Tested & Working - contains both AutoIT version and CMD script)
      Disable ScreenSaver (Require testing AutoIT only)
      Change Computer Name (Require testing AutoIT only) 
      Change Default Browser (Work - using 3rd party tool)
      Change .pdf / .pdfxml from Edge to Adobe Reader DC (AutoIT only)
      Change Edge to Google Chrome as Default Browser (Tested & Working - using 3rd party tool)
      Windows Updates (Currently working on it - AutoIT only)
      Install Office 
      Activate Office (Tested on 2010 & Working - CMD Script)
      Pin to taskbar Excel, Outlook, Word, Chrome (Tested & Working - using 3rd party tool)
      GUI currently featuring the following options 
      - TreeView to check case of desired tasks
      - RichEdit to display ConsoleWrite with _NowTime()
                 *** To Do ***
       - Read informations needed for tasks like: OEM, ComputerName, NAS user/password etc... from a file
       - ListView for Windows Updates
       - Probably more
       
      ***  Reply here if this project interest you,This will greatly help me to see if anyone want this project to become real  ***
      ______________________________________________________________________________________________________________________________
      Click here to view or download W10 Configurator
       
      Best Regards,
      ~WilliamasKumeliukas
    • By Jgladden
      Dan - thanks for all that you do - this stuff is great. 
      Hoping you can assist with an issue we are having now that we have moved to Windows 10/Server 2016. The Chrome interactions were working flawlessly until moving over. Now my code fails when attempting to create the session. As you can see, our Chrome install is not in a standard location but I have validated the path to the binary. I have attached some detail below including system info, console output and the chrome log detail. I have tried several recommendations that have seen in various forums but none have made a difference
      Any assistance you can give would be greatly appreciated. 
      Thanks in advance, 
      chrome_Details.txt
    • By Danyfirex
      Hello!!!  
      In the past I had problems adding an application as a default for an extension in Windows 10. (It was easy in windows 7 using Registry) But since Windows 8 It requires to do some steps more. I wrote a tool (in other programming language) months ago for handling it. But now I just want to share an AutoIt version.
       
      Check on GitHub.
       
       
      Saludos
    • By poddex
      Hello everyone.
      I always try to work with old Windows 10 versions as much as possible because I know mane compatibility issues with Windows 10 upgrading. 
      But I couldn't do anything else (I got drivers problem), and nothing couldn't help me besides upgrading, so I upgraded from 1807 to 1903.
      And...get another problem 😃
      I use AutoitX library in external project like this.
      ObjectAutoIt=New COMObject("AutoItX3.Control");
      ObjectAutoIt.AutoItSetOption("WinTextMatchMode",2);
              While ObjectAutoit.WinExists("",WindowHeader) Cycle 
                  ObjectAutoIt.WinClose("",WindowHeader);
              EndCycle;
      After upgrade I get that this line code 
      While ObjectAutoit.WinExists("",WindowHeader)
      become extremely low - ~ 20 seconds even if 10 windows open. But before upgrade it takes 0.5 s for a max.
      And every time that this code line passes through  - it takes ~20s, (20.115, for example), not less, not more. Something pauses it to work.
      How can I diagnose, what is that?
      I tried reinstall whole AutoIt, but no results.
      Thanks to all.
    • By Jahar
      Hi All,
      Please help me on how to fetch date/time of last windows 10 system restore point using autoit? Basically its about querying the last restore point.
×
×
  • Create New...