JC
Wed Mar 15 16:27:01 CST 2006
Using WMI you can give permission to the WMI service to start a command on
the computer, using the locator object
Set SWBemlocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService =
SWBemlocator.ConnectServer(strComputer,"\root\CIMV2",UserName,Password)
some samples are to be found on Microsoft's scriptcenter
http://www.microsoft.com/technet/scriptcenter/scripts/os/process/procthd/pcthvb02.mspx
http://www.microsoft.com/technet/scriptcenter/scripts/os/process/procthd/pcthvb03.mspx
Make shure the script source can not be read by the users by encrypting (not
against cracking but helps against 'quick reading')
Grtz Hanzel
"Edvin" <Edvin@discussions.microsoft.com> schreef in bericht
news:58772F51-0DD2-47A3-BA3F-A6AB87329D7C@microsoft.com...
>I need to copy the Services file in \Windows\System32\drivers\etc in all PC
> in the domain.The prolem is that regular users dont have permissions to
> copy
> the file.
> I tried the Computer Startup Script in GPO but no success.
> How can I copy this file through a script ??
>
> Thanks
>