Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Vista Logon Script Replacement

Reply
 
Old 03-06-2009   #1 (permalink)
cerebral.hunger


 
 

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
Old 04-25-2009   #2 (permalink)
John Smith


 
 

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
Quote:

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

Thread Tools


Similar Threads
Thread Forum
script for multi text replacement VB Script
Logon Script Causing Laptops To Hang - Problems in script? VB Script
Printer logon script doesn't work with Vista Vista networking & sharing
RE: Printer logon script doesn't work with Vista VB Script
Detect Vista in Logon Script Vista account administration


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46