Questions tagged [administrator]

An administrator account is a user account on an operating system which allow make changes that can affect other users (including, but not limited to, the creation and restriction of user accounts), change operating system options (including security settings), install software and drivers, access all files.

A type of user account on an operating system which will typically allow all functions to be performed to a computer, including (but not limited to) the creation and restriction of user accounts, installing software or drivers, or changing operating system options. On WordPress CMS, it's the user role that has the highest privileges and capabilities.

707 questions
979
votes
12 answers

How do I force my .NET application to run as administrator?

Once my program is installed on a client machine, how do I force my program to run as an administrator on Windows 7?
Gold
  • 60,526
  • 100
  • 215
  • 315
424
votes
28 answers

Running a command as Administrator using PowerShell?

You know how if you're the administrative user of a system and you can just right click say, a batch script and run it as Administrator without entering the administrator password? I'm wondering how to do this with a PowerShell script. I do not want…
chrips
  • 4,996
  • 5
  • 24
  • 48
166
votes
2 answers

How do I set a Windows scheduled task to run in the background?

Does anyone know how to set a scheduled task to run in background using Windows Task Scheduler? There doesn't seem to be any option to do this.
Samuel Liew
  • 76,741
  • 107
  • 159
  • 260
137
votes
7 answers

Start / Stop a Windows Service from a non-Administrator user account

I have a WindowsService named, say, BST. And I need to give a non-Administrator user, UserA, the permissions to Start/Stop this particular service. My service runs on a variety of Windows OS, starting from Windows Server 2003 to Windows 7. How can I…
Sach
  • 10,091
  • 8
  • 47
  • 84
70
votes
2 answers

What registry access can you get without Administrator privileges?

I know that we shouldn't being using the registry to store Application Data anymore, but in updating a Legacy application (and wanting to do the fewest changes), what Registry Hives are non-administrators allowed to use? Can I access all of…
Kris Erickson
  • 33,454
  • 26
  • 120
  • 175
70
votes
2 answers

Admin rights for a single method

Is it possible to require administrator rights for one single method? Something like this: [RequireAdminRightsForThisMethod()] private void TheMethod(){ // Do something }
llullulluis
  • 3,472
  • 3
  • 27
  • 30
67
votes
8 answers

What precisely does 'Run as administrator' do?

On Windows 7, I have a command-line program that fails due to file write permission errors, and popping up annoying UAC dialogs every time I run command-line programs that are from an 'unknown publisher'. However, if I start my console by right…
Jonathan Hartley
  • 15,462
  • 9
  • 79
  • 80
60
votes
9 answers

How do I run a program from command prompt as a different user and as an admin

I am using "runas" to open command prompt as a different user but that command prompt is not running as an admin. How can I make it run as an admin? UPDATE: I am using Windows Server 2012 UPDATE: I opened cmd for another account by running runas…
Mark
  • 883
  • 1
  • 8
  • 14
54
votes
3 answers

Check for administrator privileges in C#

I want to know if a program is running as administrator. The user doesn't have to be administrator. I only want to know if my application has rights to edit some secured files that are editable when running as Administrator.
Hooch
  • 28,817
  • 29
  • 102
  • 161
47
votes
11 answers

How to start a new process without administrator privileges from a process with administrator privileges?

I am creating an automatic updater for an application. The application is started by the user, and runs without administrator privileges. The autoupdater is started with administrator privileges, and kills the application before it downloads the new…
Erlend D.
  • 3,013
  • 6
  • 37
  • 59
37
votes
8 answers

Google Chrome: This setting is enforced by your administrator

I recently updated my Chrome browser and noticed something very weird. Many fields in the Settings have been disabled. "This setting is enforced by your administrator" appears next to many fields including my saved passwords section (which I need to…
Mohammad Najar
  • 2,009
  • 2
  • 21
  • 31
36
votes
8 answers

Check if current user is administrator in wordpress

I am developing a plugin for wordpress, I want to find if current user is administrator or not, unfortunately I could not use the current_user_can() as it gives me error, so am using the global $current_user. But I could not get inside the if part…
NEO
  • 1,961
  • 8
  • 34
  • 53
33
votes
2 answers

How to create a Run As Administrator shortcut using Powershell

In my PowerShell script, I create a shortcut to a .exe (using something similar to the answer from this question): $WshShell = New-Object -comObject WScript.Shell $Shortcut =…
Michelle
  • 663
  • 1
  • 8
  • 17
32
votes
1 answer

What does '__COMPAT_LAYER' actually do?

Recently, i was trying to give my application administrator rights without system asking for "Do you want to give administrator rights?" and i found a way which is working perfectly. Solution I Found I created a bat file named nonadmin.bat and wrote…
Agent_Spock
  • 1,107
  • 2
  • 16
  • 44
28
votes
6 answers

Visual Studio Run as administrator shortcut

how do I create a shortcut that runs Visual Studio with Administrator rights? Actually I have to navigate to the Visual Studio start menu folder, click on the icon with the right mous button and choose "Run as Administrator".
Lorenzo
  • 29,081
  • 49
  • 125
  • 222
1
2 3
47 48