Windows Vista Forums

Vista Logon Script Replacement
  1. #1


    cerebral.hunger Guest

    Vista Logon Script Replacement

    Hi,

    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/ch...windows-vista/

    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!!

    ---------------------
    Option Explicit
    On Error Resume Next

    Dim strCommandLine
    Dim objFSO

    strCommandLine = "\\server\logonreplace\XCACLS.vbs C:\Windows
    \System32\imageres.dll /G SID#S-1-5-18:f /E"
    ExecuteThis(strCommandLine)



    objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.MoveFile "C:\Windows\System32\imageres.dll" , " C:\Windows
    \System32\imageres.dll~"
    objFSO.CopyFile "\\server\logonreplace\imageres.new.dll", "C:\Windows
    \System32\imageres.dll"
    Set objFSO = Nothing

    Function ExecuteThis(FULLSTRING)
    Dim objShell : Set objShell = CreateObject("Wscript.Shell")
    ExecuteThis = objShell.Run(FULLSTRING,,1)
    Set objShell = Nothing
    End Function

      My System SpecsSystem Spec

  2. #2


    John Smith Guest

    Re: Vista Logon Script Replacement

    You should not have bought into Vista in the first place.



    <cerebral.hunger@xxxxxx> wrote in message
    news:90649dd3-ed31-4cfe-825e-0cde69816aec@xxxxxx

    > Hi,
    >
    > 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/ch...windows-vista/
    >
    > 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!!
    >
    > ---------------------
    > Option Explicit
    > On Error Resume Next
    >
    > Dim strCommandLine
    > Dim objFSO
    >
    > strCommandLine = "\\server\logonreplace\XCACLS.vbs C:\Windows
    > \System32\imageres.dll /G SID#S-1-5-18:f /E"
    > ExecuteThis(strCommandLine)
    >
    > objFSO = CreateObject("Scripting.FileSystemObject")
    > objFSO.MoveFile "C:\Windows\System32\imageres.dll" , " C:\Windows
    > \System32\imageres.dll~"
    > objFSO.CopyFile "\\server\logonreplace\imageres.new.dll", "C:\Windows
    > \System32\imageres.dll"
    > Set objFSO = Nothing
    >
    > Function ExecuteThis(FULLSTRING)
    > Dim objShell : Set objShell = CreateObject("Wscript.Shell")
    > ExecuteThis = objShell.Run(FULLSTRING,,1)
    > Set objShell = Nothing
    > End Function

      My System SpecsSystem Spec

Vista Logon Script Replacement problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logon Script Weirdness - Vista Systems Nick Vista General 0 07 Mar 2010
client PC motherboard replacement - now slow to logon to domain Rob C SBS Server 4 21 Aug 2009
script for multi text replacement tonycd VB Script 16 21 Jun 2009
Logon Script Causing Laptops To Hang - Problems in script? Ben VB Script 5 07 Feb 2009
Detect Vista in Logon Script Dave Vista account administration 10 25 May 2008