Sign in to follow this  
Followers 0
Syed23

DriveGetDrive() with Admin Acces

5 posts in this topic

Hi All,

 

Hope all are good. can some one suggest me why DriveGetDrive("All") function behaves difference when i run with and without #RequireAdmin?

I want to get all the drives mapped including Network drives by using function DriveGetDrive("All"). This shows all the drives including Network drives only if i run without #RequireAdmin. If i use #RequireAdmin i am not getting any network drives. Could someone help me to understand why?

Thanks in advance!


Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Share this post


Link to post
Share on other sites



different users have different drives assigned.

You can add them in, if running as admin.


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

Thanks for the quick reply jdelaney! But for all the network users whom i logging those are the default drives which will get mapped in


Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I believe you are elevating yourself to a user which has none of the drive mappings, then wondering why you have no drive mappings.

Is it different behavior if you runas a created account that has domain or local admin privileges?

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

It is the "normal" behavior of the UAC : the elevation makes the script executes in a different security context, even if your user is a administrators member (exept for the BUILTIN administrator).

Search for the registry value EnableLinkedConnections on the web, it could help

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0