Gianlu Posted January 26, 2006 Posted January 26, 2006 I have created a sciprt, for windows XP PRO, in order to open with the rights of administrator the net property so as to be able to modify the configuration but it does not work. what I have mistaken? ; Set the RunAs parameters to use local adminstrator account RunAsSet("administrator", @Computername, "Password") ; Run registry editor as admin RunWait("C:\WINDOWS\system32\rundll32.exe /d C:\WINDOWS\system32\rundll32.dll,user,wnetconnectdialog") ; Reset user's permissions RunAsSet()
CyberSlug Posted January 26, 2006 Posted January 26, 2006 Are you sure that command is right?this site lists something similar for Windows 95Also, I don't know of any rundll32.dll file.... Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
rogerd2u Posted January 26, 2006 Posted January 26, 2006 Here's a piece of script that might come in handy: Func ControlPanel($APPLET) ; $Applet should be one of the names displayed when looking at Control Panel ; in an Explorer view ; Note: Designed to work under Windows XP only. If it works under other ; Windows versions, I'd be suprised. Local $RUNDLL32 = @SystemDir & "\rundll32.exe" Select Case $APPLET = "network connections" Run($RUNDLL32 & " Shell32.dll,Control_RunDLL ncpa.cpl") EndSelect EndFunc Or... Run(@ComSpec & " /c rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl", "", @SW_MINIMIZE) Then you can proceed to whatever section you'd like. Hope this helps! Roger Roger O."When people show you who they are, believe them. --Mark Twain
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