Questions tagged [elevated]

18 questions
8
votes
4 answers

Run un-elevated command from an elevated prompt?

Is it possible to run a command without elevated privileges from batch file that was run with elevated privileges?
laggingreflex
  • 5,035
  • 17
  • 65
  • 96
4
votes
1 answer

Why can we not "Run as administrator" a batch file with @ in the path?

So we just discovered this weird quirk. Easy enough to avoid but curious if any of the experts here know what's happening. It seems that if you try to use the right-click "Run as Administrator" on a batch file that contains a space and an @ symbol…
therks
  • 234
  • 2
  • 10
2
votes
1 answer

How to run elevated shell from within console2 (Windows 8.1)? Possible?

I come from Linux, and for days I have been pulling my hair out trying to run an elevated shell (powershell, ipython interpreter, and bash) from within Console2. However, it always pops open a new cmd.exe window, that is not what I want, I want to…
Edge-Case
  • 53
  • 4
2
votes
4 answers

Run PowerShell script as a different user and elevated

I know this looks like a duplicate question, but I've tried the solutions and they haven't worked for me. We need to run a script with our domain accounts but also execute it elevated. This isn't an issue on most devices, since the shortcut runs as…
Kevin Higby
  • 111
  • 1
  • 1
  • 5
2
votes
0 answers

"Run as Administrator" context menu item missing after upgrade from XP to 7

I have upgraded from XP pro to 7 ultimate (32bit) If I leave UAC settings default, I have no "Run as Administrator" menu item in the contextual right-click menu onto an executable. Additionally, programs that need elevated privileges aren't unable…
Costin Gușă
  • 704
  • 8
  • 20
1
vote
1 answer

User rights to read/write win.ini in windows 8.1

I use a program in Windows 8.1 Pro that needs full read/write rights to win.ini. - Logged in as administrator - UAC is disabled - Applications and administrators have full rights to modify win.ini. Nevertheless I cannot modify the file unless I run…
Art
  • 111
  • 1
  • 6
1
vote
0 answers

Force exe to run in NON ELEVATED mode from Task scheduler

I am admin user. I have 32 bit exe which I have scheduled it from task scheduler to run at every night. Though it is running in elevated mode. How do I force it to run in non elevated mode. I did try to uncheck "Run with highest privileges" but did…
1
vote
2 answers

Evaluate text expression

I have a text expression written with single quote in front '-a+b. Then it's substituted as in the image. I want to evaluate the expression in yellow (evaluate to 4) instead of displaying like that. How can I do that? I tried Evaluate function but…
emnha
  • 331
  • 2
  • 4
  • 15
0
votes
2 answers

Running RSAT Tools as another user using Powershell

What I try to accomplish is running some RSAT Tools out of a Powershell-Script as another user (Domain-Admin). Here is my run code: Start-Process -FilePath "C:\Windows\system32\mmc.exe" -ArgumentList "C:\Windows\system32\gpmc.msc" -Credential…
Langhard
  • 600
  • 3
  • 11
0
votes
0 answers

Mechanisms to be root after ssh login (w/o using sudo)

Our servers are set-up in a way, that after ssh'ing to them using our userid ssh my_user@server(I am immediately greeted with [root@server ~]# The command id confirms that, indeed, I am root. However, I do end up in my own home directory…
oneindelijk
  • 299
  • 1
  • 3
  • 11
0
votes
0 answers

Windows 10 start menu entry missing that target same exe

I want two entries in the Windows 10 Start menu for the same application: one for normal Start and another one for Start as administrator (elevated), so I no longer need to use the context menu. I copied the .lnk in…
huha
  • 193
  • 9
0
votes
1 answer

Open elevated cmd from msys in current directory

I often find myself in need of running a command in msys2 in an elevated cmd shell. How can I quickest open an elevated cmd in the current directory from msys2? I tried this answer:…
MyrionSC2
  • 271
  • 3
  • 3
0
votes
1 answer

Automate credentials entry when running elevated in Windows 10

I run a non-admin user account in Windows 10. Also, I have some administrator domain credentials I'm free to use. When Windows needs to run an app elevated, I get a prompt for user/password. Is there any way to automate the credentials entry so that…
0
votes
2 answers

Starting a windows service with net.exe without showing the console window

I want to start a service silently with the net.exe command from a non elevated bat file. But I only want the UAC prompt to be asked for the net.exe and after that I don't want the console window to appear. I know there is a way to hide the console…
liamZ
  • 121
  • 1
  • 12
0
votes
1 answer

How to automatically start cmd file as administrator after installing Windows 10

I am building Windows 10 with autounattend.xml to automate Windows 10 installation. I also trying to automate installation of programs, that will install after first login. I create these folders x:\$OEM$\$$\Setup\scripts\ and copy SetupComplete.cmd…
1
2