Batch file or VB Script

Posted on 2012-08-31
Medium Priority
Last Modified: 2012-08-31
I am trying to build a vb script or batch script that runs a command that requires registry uac prompt and I was wondering is there some way that I could program my UID and PW into a vb script or batch file that will do away with the uac prompt on a user computer?
Question by:goretailpro
LVL 22

Expert Comment

by:Joseph Moody
ID: 38355658
Seems very unsecure. Why are you trying to get rid of the prompt?
LVL 28

Accepted Solution

Run5k earned 2000 total points
ID: 38355663
Have you considered using the Windows Task Scheduler?  You could configure the task to utilize the built-in System account, so it will run completely silently.

Author Comment

ID: 38355746
I am a IT admin at my work but I can't get a batch file to load on the network computers.  I looking at creating a exe that runs on the network utilizing a tool called ,"winautomation".  Then I would take that exe and load it into System Center Essentials which would create the msi that runs the exe. I am just trying to get my registry to load into the system and people posted to run something but I couldn't get it to work via Group Policy so I am trying to run this via batch file / vb script.
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.


Author Comment

ID: 38355757
I will try the schedule task...
LVL 97

Expert Comment

by:Lee W, MVP
ID: 38355832
How did you try to do it via Group Policy?  You can always add a startup script via group policy and that should by-pass UAC, if I'm not mistaken.  But I agree, VERY insecure.  You're probably better off pushing the script with PSEXEC and the REG command.

Author Closing Comment

ID: 38355977
Scheduled Task works great...
LVL 28

Expert Comment

ID: 38356088
Glad to hear that!

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question