|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to run a script by a domain user ?Hi,
My question is how to let the domain user run the logon script. ************************************************************************************ strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colNetAdapters = objWMIService.ExecQuery _ ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True") For Each objNetAdapter in colNetAdapters objNetAdapter.SetGateways array() next ************************************************************************************ About this logon script, the users of Domain Admin can be run. But the users of Domain User can not.
Show quote
Hide quote
"Sunny Chan" <cl_***@sina.com> wrote in message See the many replies you received in the scripting.vbscript newsgroup and news:uPiOXzoaJHA.4664@TK2MSFTNGP06.phx.gbl... > Hi, > > My question is how to let the domain user run the logon script. > > ************************************************************************************ > strComputer = "." > Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") > Set colNetAdapters = objWMIService.ExecQuery _ > ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = > True") > For Each objNetAdapter in colNetAdapters > objNetAdapter.SetGateways array() > next > ************************************************************************************ > > About this logon script, the users of Domain Admin can be run. But the > users of Domain User can not. have a look here about the merits of cross-posting vs. multi-posting: http://www.blakjak.demon.co.uk/mul_crss.htm. If you wish to extend the exposure of your original post then cross-posting is the recommended method to avoid duplication of effort.
This script doesn't work i don't know why
Special batchfile Re: lastLogonTimestamp not set! Is there any way to control the Transport Server (subcomponent of Windows Deployment Services) via P DISKPART select command doesn't have a "noerr" command for scripti Net send over different domains exporting * importing users into groups script to extract and create contacts How to Modify AD CN Field Stored Passwords in Internet Explorer |
|||||||||||||||||||||||