Network Properties as Administrator

R

Rick Corbett

First... apologies if I've sent this query to the wrong newsgroup but -
although it's a scripting issue - I need to incorporate it into new Win XP
disk images... so it's both a 'Setup' and 'Deployment ' issue. If my query
is better directed elsewhere then feel free to say.

We work in a Novell NetWare environment (so Fast User Switching is disabled
after installation of the Novell Client) and automatically log our users
into Windows as 'Power Users'. When we (IT Help Desk) connect remotely, we
may need to check or sometimes change the remote TCP/IP settings.

We can't at present because we need to be logged in with administrative
privileges to get elevated access to the 'Network Properties' Control Panel
applet.

We can't login remotely (temporarily) as 'Administrator' because Fast User
Switching is disabled... which would break the remote connection (via VNC).

I've scripted 'Administrator' access (using 'RunAs') to other Control Panel
applets but have failed to script either direct access to the 'General' tab
of 'Local Area Connection Properties' (my preferred option) or to the
'Network Connections' applet (2nd best option).

Can anyone help or direct me to a more appropriate newsgroup?

Rick
 
R

Rick Corbett

More info... I think netshell.dll may be what is used to display the Network
Properties dialog. Unfortunately, the following code doesn't work, although
I've used similar syntax using rundll32.exe to open other Control Panel
applets as Administrator.

Dim WSH, prog
Set WSH = WScript.CreateObject("WScript.Shell")
prog = "runas.exe /env /user:Administrator "
prog = prog & """rundll32.exe netshell.dll"""
WSH.Run prog,2,false

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top