I'm trying to use a computer startup script to replace the windows
vista logon screen across an entire domain, in a fashion similar to
the manual process documented here:
http://spikex.net/blog/2007/07/18/chang ... n-windows-...
I have my basic script below that works through several steps to
replace a key dll, changing the owner of the file to SYSTEM, renaming
it and copying in a replacement file, which all looks sound and has
worked in a roundabout way for me manually.
This script runs via group policy through the computer configuration
startup script section. I understand from a little searching that
these scripts run under the context of the SYSTEM account which should
be privileged enough to perform the commands I call.
I was hoping someone might be able to help me debug and tune this code
as I'm at a loss as to what to try with it.
Many thanks in advance!!
Code: Select all
Option Explicit On Error Resume Next Dim strCommandLineDim objFSO strCommandLine = "serverlogonreplaceXCACLS.vbs C:WindowsSystem32imageres.dll /G SID#S-1-5-18:f /E"ExecuteThis(strCommandLine) objFSO = CreateObject("Scripting.FileSystemObject")objFSO.MoveFile "C:WindowsSystem32imageres.dll", "C:WindowsSystem32imageres.dll~"objFSO.CopyFile "serverlogonreplaceimageres.new.dll", "C:WindowsSystem32imageres.dll"Set objFSO = Nothing Function ExecuteThis(FULLSTRING) Dim objShell : Set objShell = CreateObject("Wscript.Shell") ExecuteThis = objShell.Run(FULLSTRING,,1) Set objShell = Nothing End Function