How To Elevate Command If User Is Not Admin

Mar 25, 2014

I am trying to elevate a command given (in this case just another cmd.exe) if the user is not admin. However i get the error:

Code:

C:Usersmetul_000>runas /user:administrator cmd.exe
Enter the password for administrator:
Attempting to start cmd.exe as user "WINDOWS8administrator" ...
RUNAS ERROR: Unable to run - cmd.exe
1326: The user name or password is incorrect.
C:Usersmetul_000>

This is a personal pc, and I know i put in the password correctly as i have done it a few times slowly typing in my admin password to confirm that it is input correctly. So why am i getting this error? Initially my overall goal is to get this python script to say you are admin ...

Code:
import ctypes
import subprocess
import sys
import os

[Code] ......

if you are admin its done, but if you are not admin then it reruns itself with the so called run as command to get admin rights. However currently it just pulls up the run as usage messages. The full command this script attempts to run then is:

Code:
C:Usersmetul_000>runas /user:administrator "python3 test2.py"
Enter the password for administrator:
Attempting to start python3 test2.py as user "WINDOWS8administrator" ...
RUNAS ERROR: Unable to run - python3 test2.py
1326: The user name or password is incorrect.
C:Usersmetul_000>

View 8 Replies


ADVERTISEMENT

Apps / Software :: Installers Cannot Elevate - Have To Run As Admin

Feb 15, 2014

In Windows 8 Pro x64 (and now with 8.1) shortly after installing Windows I couldn't run any installer from a web browser or by just double-clicking the file. I have to right-click and "Run as administrator"

The error messages vary but they all are variations on a theme of unable to access something.

I usually have UAC off but the UAC setting doesn't matter. I am an administrator. I am using Start8 and ModernMix if it matters. I've Googled and found nothing that worked but I don't remember exactly what I've tried.

View 5 Replies View Related

Accounts :: Administrator User Needs To Manually Elevate Each Time

Aug 6, 2013

I'm experiencing a weird problem with Windows 8 Pro x64. Although I'm on the only user account on Windows (that is the administrator one), it looks like I don't have the Admin privileges and need to manually request them each time.

For instance, when I install some programs (e.g., VLC, Deamon tools, Dropbox...), I often receive errors similar to "Windows could not elevate", or "Windows doesn't have sufficient rights to install from a temporary directory". This is easily fixed by right-clicking the executable and selecting "Run as administrator", but is this working as intended? I have another Windows 8 installation where it just works without this workaround.

Do I need to change some settings?

View 6 Replies View Related

How To Run A Command At Startup As Admin

Sep 15, 2014

My son's pc will not hibernate on it's own. I used CMD in administrator mode and ran:

powercfg -requests

I found that a usb audio device was currently in use. I can disable it with:

powercfg -REQUESTSOVERRIDE DRIVER "USB Audio Device" SYSTEM

This works, and the pc can now enter hibernation. But when it resumes, the usb driver is running again. Is there a way to run...

powercfg -REQUESTSOVERRIDE DRIVER "USB Audio Device" SYSTEM

Using admin privileges at startup? I want it to be automated.

View 6 Replies View Related

Command Prompt Needs To Run Anything As Admin

May 15, 2014

I seem to be having a problem when command prompt needs to run anything as an admin.

This happens whenever it feels it needs to do so, like when setting a program to run as admin myself, or running an installer, like the setup for firefox (I'm in chrome right now, but I happen to prefer firefox)

Basically, whenever it needs to run anything, it'll open up to the user account controls window in this picture:

Upon clicking yes, it opens the command prompt you see in the left of the image for a split second, then closes. (it took many attempts to get a clear shot using printscreen, and I did edit it to have the UAC prompt in the same image to save space)

I'm guessing a manual regedit of some kind, as running any program is obviously blocked by the problem itself. (I cannot install any fixing programs, and anything that needs to run as admin to work is out as well).

View 9 Replies View Related

Cannot Run Command Prompt As Admin

Oct 27, 2013

I need to execute the command prompt as admin. When I try to do it the command prompt window doesn't open and there are no errors. If I run the command prompt without admin privs it works, but I then can't do what I need to do in the admin window.

Note: I am running Windows 8.1.

View 9 Replies View Related

Command Prompt (Admin) - Console Box Vanishes Within A Second

May 15, 2014

Everytime I try to use the above command, the console box vanishes within a second.

I have also tried to install chrome, the console opens and closes within a second, hence not able to read any messages.

I have full administrator right. No viruses

View 9 Replies View Related

Accounts :: Transfer Main User To Elevated Admin User?

Sep 15, 2014

I have been using an unelevated admin user account since installing win 8.1 pro and I've been having problems constantly (UAC nagging me, access denied when trying to kill processes and so on) and I decided I want to use the elevated admin account as my main. I understand security risks and convenience is more important to me as I don't have any sensitive information on my laptop. I was wondering if I can merge the user account I used until now, which has all my app settings, with the elevated admin user account and use that one from now on.

View 9 Replies View Related

Add User Command To The W8.1 Start Button?

Oct 24, 2013

Is there any way to add a command to the Windows 8.1 start button (right mouse click throws up a menu).

That could be quite useful for launching something like a user tool bar from the start button.

View 4 Replies View Related

Execution Of DOS Command Each Time User Logs Off

May 24, 2013

In all editions of Windows 8, how do I make sure that it executes a DOS command each time a user logs off?

View 9 Replies View Related

Execution Of DOS Command Each Time User Logs Off?

May 24, 2013

In all editions of Windows 8, how do I make sure that it executes a DOS command each time a user logs off?

View 3 Replies View Related

Login Screen Of Last User And Running A Command

Jun 2, 2013

In Windows 8, it is possible to run a command whenever the login screen of the last user is displayed in a local computer? This command should always be run with elevated rights and just before this screen appears.

View 2 Replies View Related

Run A Command When Login Screen Of Last User Is Displayed In Local Computer

Jun 2, 2013

In Windows 8, it is possible to run a command whenever the login screen of the last user is displayed in a local computer? This command should always be run with elevated rights and just before this screen appears.

View 3 Replies View Related

Run A Command When Login Screen Of Last User Displayed In Local Computer

Jun 2, 2013

In Windows 8, it is possible to run a command whenever the login screen of the last user is displayed in a local computer? This command should always be run with elevated rights and just before this screen appears.

View 6 Replies View Related

Accounts :: How To Retrieve User And Admin Passwords - 8.1

Dec 17, 2013

I've got a sony viao ultra book running Windows 8.1. My user account is set to open with a four digit pin. Unfortunately, although I know the PIN number, I have forgotten both the user and the admin password. So I can't load any new software as it asks me for the admin password every time. How to retrieve both passwords?

View 7 Replies View Related

Accounts :: User With Admin Rights Can't Run As Administrator?

Jan 9, 2014

Windows 8 pro: I have a user account with admin rights. It used to work fine till one day, after rebooting, I had no tiles in the start view. I ran chkdsk and it seems to have fixed the problem but now when I run any application as "Run as administrator" I get: Windows cannot find '[The exe]'. Make sure you've typed the name correctly, then try again.

If, however, I run the same app as normal and it works - thus the exe exists and there is no problem with the app itself. (Also check in the file system)

If I create a new user with admin rights I get the same issue.

(The other old user with admin rights are working fine.)

View 4 Replies View Related

Accounts :: Windows 8 Pro - Can't Create User Account Despite Being Admin

Jun 10, 2013

I am using windows 8 pro OS. I have only one local account on my machine. My account is already in Administrator groups. I have checked that.

My problem is that I am not able to create/change any user account from control panel. After traversing to Control PanelAll Control Panel ItemsUser Accounts.

There are all the different links named as below:
Change your account name
Change your account type
Manage other account etc..

However when I click on any of these links, nothing happens at all !!!

What could be the possible reason of this? Window is updated, I am able to do other stuff that only admin can do for example: installing/uninstalling software, running system tools etc. Moreover I am able to make changes to user accounts from Computer Management.

View 4 Replies View Related

Accounts :: How To Give Admin Permission To Limited User

Jul 23, 2013

I am an administrator with 3 limited users on a windows 8 machine. I have installed a game on my account that I want to let one of my users play. I have tried everything I have read about giving permissions, admin right etc, but it still asks for my password everytime he opens the game?

View 9 Replies View Related

Security :: How To Let Admin Access Folders Created By Another User

Jul 12, 2013

Prior to last week my computer was running Windows 7, the computer also has a 3TB MyBook external drive on which I ripped over 100 movies from DVD/Blue-Rays that I own (and still have). The reason for doing that was 1) so I could watch the movies on my TV without the hassle of inserting the dvd into the blue-ray player, and (2) reduce the amount of storage space (I threw away the original containers and put them in a simple DVD file).

Last week I installed a new internal hard drive and did a clean install of Windows 8. Consequently my admin account's user name was changed to be the same as my Microsoft live.com account name. Now I can't access any of the folders on MyBook without taking ownership of them one-at-a-time. That is going to be very very time consuming to do that for over 100 folders. Any faster way to accomplish this?

I don't know why Microsoft won't allow computer Administrator to access any folder on his computer. This is just dumb.

The situation gets even worse -- after taking ownership of the folders I still can't access any of the files or sub-folders. I have to do that for every folder and file, somewhere around 500 of them! I feel like just reformatting the drive and starting all over again.

View 1 Replies View Related

Accounts :: Windows 8.1 - Non-Admin Standard User Able To Reset PC

Jul 25, 2014

I'm setting up a stolen laptop tracking software and want to leave a standard/non-admin user account open for a potential thief. The software requires someone to log in and connect to the internet in order to start tracking. So if I only have my personal admin account password protected, I will be out of luck. The problem is that while logged in as a standard user I am able to access recovery options. From there I can use advance startup and proceed to reset my pc. If a thief logs in and resets my pc right away, I will have no way of tracking them. I have windows 8.1 standard and have not been able to find any way from restricting access to the recovery options.

View 3 Replies View Related

Accounts :: Windows 8.1 Sometimes Can't Access User (Admin) Profile

Mar 13, 2014

Sometimes when I boot Windows 8.1, I get a generic screen that tells me that my profile couldn't be accessed and I now have a temporary profile. I went to the event viewer and it also said that it couldn't find my profile. I am the only user and administrator. Is there a way to make a new user profile AND not loose my files and settings.

View 9 Replies View Related

Windows 8 Keeps Signing Admin User Into Temporary Account?

Mar 6, 2013

I've had my Windows 8 computer for several months... it's been working really well, absolutely no problems.

But today... when I turned on my computer... I signed into my account like always (the only admin account on the computer)... and it keeps signing me into a temporary profile instead.

A balloon pops up in the corner, telling me it's a temporary account and to try again later or something.

I restarted the computer about five times... but still... it takes me to a temporary account, rather than my real account.

View 2 Replies View Related

Accounts :: Unable To Give User Admin Rights In Windows 8.1

Dec 30, 2013

After upgrading Windows 8 to 8.1 - my standard user does no longer have administration rights.

in computer administration ->local user and Groups - the properties for the user shows that the user belongs the Group administrators.

However when I access the user account in the control panel the user shows up as "standard" and I cannot change that while logged in as standard user.

I have tried logging in as Administrator (using the built in administrator) - but here I am also unable to change the setting of the standard user from "standard" to "Administrator" - the "change account type" button is greyed out and cannot be clicked.

I have tried everything I can think of, read all I could find on the net - but to no avail.

View 5 Replies View Related

Network / Sharing :: Can't Access Disk Drives Over LAN / User Is Admin

Mar 13, 2014

I have this problem since Windows 7, i don't remember this happens on Windows XP.

I have 2 computers with Windows 8.1 installed: desktop and laptop. I am trying to access local disk drives of "desktop" from "laptop".

For example, i type in Windows Explorer "desktopc$". "Windows Security" window pops up where i am typing credentials. If i specify "desktopadministrator" user and then provide correct password everything is fine, i can access disk C. But, if i type "desktopjohn" and provide correct password i am getting error "Access denied". "john" is my main account, it's in "Administrators" group of "DESKTOP" computer.

If i try to access the same resource over "cmd net use" i receive error "System error 5 has occurred. Access is denied."

Why "john" can't access "DESKTOP"'s disk C over LAN?

View 9 Replies View Related

Debugging :: BSOD For Normal User Only - Can Debug From Admin Account

Jun 15, 2014

Before I start can you tell me if I need to be logged in to the account that has suffered the problem or can I do it from my (admin) account on the same computer? The unexpected_kernel_mode_trap problem has (so far) only occurred on my son's user account.

View 4 Replies View Related

Accounts :: Removing Other User Screen - Lost Admin Credentials

May 30, 2014

I tried to remove the "other user" screen, but while trying to do that I lost my admin credintals, so I tried to fix it by going on safe mode then I assigned a password to the administrator account... And now when I try to login it says "Your account has been disabled"

View 6 Replies View Related

Accounts :: User Access Denied - Built In Admin Account Disabled

Feb 7, 2014

I have removed my only admin account from the administors group and now i could not do anything in my pc..

It is just a local user account now and I also have no other account assigned as admin and my built in admin account is disabled.

View 3 Replies View Related

Lost User Accounts - All Icons For User Tasks Are Blank Piece Of Paper

Jan 29, 2013

Today I thought I'd set a picture for my user account.

Nothing happens when I click or double click on the user account icon in the control panel.

I then went to check if our other pc was the same but that's fine.

I did notice that on mine instead of an icon of two people the icon is that of a folder.

I have tried accessing it through "Godmode" and it says it can't find it and also all the icons for user tasks are a blank piece of paper.

View 9 Replies View Related

Accounts :: New User Cannot Login (user Profile Service Failed)

Jun 3, 2014

I am trying to add a second account to my machine and whether I try a Local or Microsoft account, I get the same "User Profile Service failed the sign-in. User profile cannot be loaded" error every time I try to sign in for the first time. I've Googled this a bit and it seems everything I've found yet (except one) has been with logging in to existing profiles. For the one that was with a new profile, the solution didn't work.

I tried deleting all files similar to the specified one (file in C:UsersDefaultAppDataLocalMicrosoftVSCommon12.0SQM with name of "sqmdata-####-###-#####.sqm"), but that had no effect. I'm guessing this is because I have VS2013 installed, as this happens with my laptop as well. I don't want to delete my profile, I have important (and large) data in my documents folder that I don't want to lose. I'm guessing this will have to do with messing with the registry, but I don't know where to begin.

View 1 Replies View Related

Deleted Windows 8 User Accounts - Other User In Password Screen?

Jul 13, 2014

So, I wanted to download a game from the windows store and had to create a Live/microsoft account. After doning so win 8 made that account the account that I use to sigh-in to windows. Didn't wanted that so I went to user managment and deleted the account from thare. The problem is that I also accidenly deleted my windows user account as well.

After I restarted, I got to the password screen and my windows user was gone, just "other user". I tryed to enter the windows user name and password but nothing. the screen also showed the microsoft acount name but here also the password dident work (probably because a deleted them both from the system...)

View 1 Replies View Related

Accounts :: How To Select Files From Main User But Not Able To Sign In As That User

Apr 8, 2014

like everyone else my tiles are missing but for some reason I am under temp user. I'm looking apps there's only a few. I can click on computer, users: to select files from the main user but I cannot sign in as that user. When I click on users it only shows administrator and activate guests. This happened two weeks ago

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved