[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 766
  • Last Modified:

Bat file to runas administrator

I need to run bat file to run as administrator for users to install specific msi. How do i create bat file todo this for both x86 and x64 computers?
0
lgonzales401
Asked:
lgonzales401
2 Solutions
 
Evan CutlerCommented:
are you on a domain?
0
 
lgonzales401Author Commented:
yes
0
 
Evan CutlerCommented:
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Evan CutlerCommented:
wait...wrong link...hold on.
0
 
Evan CutlerCommented:
0
 
Run5kCommented:
Arcee123, for future reference if your own post is the most recent one within the discussion, you can actually edit or delete it... notice the "Edit comment" on the bottom-left when you author the most recent comment.  There's no need to create three different posts simply to correct a hyperlink.
0
 
deroodeCommented:
Use the CPAU tool to run the msiexec process under a different user:

http://www.joeware.net/freetools/tools/cpau/

Usage:
 CPAU -u user [-p password] -ex "WhatToRun" [switches]

You can specify a domain user. Make sure you read the documentation, especially concerning the -profile switch which can cause trouble, and the -enc and -dec options to encode your username's and passwords into a job file (you don't want the CPAU command with plain text usernames and passwords in your logon scripts...)
0
 
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 
deroodeCommented:
Both GPO's, startup scripts and the CPAU tool are known and verified options to run a script as administrator; Therefore i suggest the points are split.
0
 
deroodeCommented:
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now