Jump to content

DriveGetDrive() with Admin Acces


Syed23
 Share

Recommended Posts

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]

Link to comment
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]

Link to comment
Share on other sites

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

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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...