Link to home
Start Free TrialLog in
Avatar of Vaidas911
Vaidas911Flag for Lithuania

asked on

How to setup NTFS permissions using user logon and having admin credentials

Does anyone know how to setup NTFS permissions using user logon and having admin credentials. Computer is standalone, login as administrator is known but lame solution :) Using command line with runas to setup permissions is not very straightforwad...
If I just could launch Windows Explorer with administrative credentials...
It would be interesting to know how to do this in WIndows XP, Vista and Windows 7.
Avatar of slemmesmi
slemmesmi

Dear Vaidas911,

do you wish to set or change NTFS permissions on a folder or files during a logon process?

Kind regards,
Soren
Avatar of Vaidas911

ASKER

I would like to change folder NTFS perrmisions while I am loged on as restricted user, but I do have administrator account and password.
Dear Vaidas911,

if you don't have an account with local administrative privileges you can not change permissions on folders and files the account you are logged in with have not the permissions to do so already.
You will need to elevate your privileges to an account (such as the local administrator) which has those permissions.
The elevation can e.g. happen through "RunAs" (either from command line or when you start a "Windows Explorer").
The latter can be achieved by keeping a <SHIFT> button pressed when right-clicking "Windows Explorer", then select "Run as...".
You will be prompted for the credentials of the acocunt you will run as.

Kind regards,
Soren
I have administrator account, I just don't want to waste my time to logoff user and logon admin.
Windows Explorer does not run with both of your Run as suggestions, at least it didn't work that way for me.
Dear Vaidas911,

if it doesn't work for you with the "Windows Explorer", you can instead use IE as your file browser (in the address field e.g. enter C:\).
To start IE from command line using runas, run the following:
runas /user:administrator "C:\Program Files\Internet Explorer\iexplore.exe"

This will prompt you for the password of the administrator.
You will need to verify the path to iexplore.exe is correct on your system as in the above example.
You can also create a short-cut with the above string in "Type the location of the item" field, to make it a bit easier for you.

Kind regards,
Soren


How are you going to change Windows folder permissions using IE?
ASKER CERTIFIED SOLUTION
Avatar of slemmesmi
slemmesmi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, IE worked like charm