Syed23 Posted September 29, 2014 Posted September 29, 2014 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]
jdelaney Posted September 29, 2014 Posted September 29, 2014 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.
Syed23 Posted September 29, 2014 Author Posted September 29, 2014 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]
iamtheky Posted September 29, 2014 Posted September 29, 2014 (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 September 29, 2014 by boththose ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
jguinch Posted September 29, 2014 Posted September 29, 2014 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 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now