Sign in to follow this  
Followers 0
Gianlu

Script for open Network properties

5 posts in this topic

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? :lmao:

; 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\user32.dll,wnetconnectdialog")

; Reset user's permissions

RunAsSet()

Share this post


Link to post
Share on other sites



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? :lmao:

; 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\user32.dll,wnetconnectdialog")

; Reset user's permissions

RunAsSet()

i'm not sure about the wnetconnectconnectdialog, but you should be able to configure the network connection using netsh

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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? :lmao:

; 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\user32.dll,wnetconnectdialog")

; Reset user's permissions

RunAsSet()

moin moin ;) , if you don´t find another possibility, there is one to set properties if you download from MS the resource kit tool subinacl.exe. you can use it by commandline to give share properties. So you can embed it in your code maybe like this:

subinacl /share \\server\user$ /replace=jeder=user /grant=user

But if you download it you get a good documentation in addition

a lot succeed


[font="Comic Sans Ms"][center]Powered by AutoIt3http://www.wik-eric.de/zips/Synchro2.2.2-4free.zip[/center][/font]

Share this post


Link to post
Share on other sites

(Since this post appears to be duplicated, I thought I'd reply in this one as well....)

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

Share this post


Link to post
Share on other sites

(Since this post appears to be duplicated, I thought I'd reply in this one as well....)

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

I have tried to insert the code from you write, but it opens unit C: not the property of the net logon. Thanks.

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