Logon Script Problems - help needed 
Author Message
 Logon Script Problems - help needed

Having problem with the following logon script. What happens is that the
login dialog box does not dissappear after the login.bat file has
completed - why is this? Clicking on cancel after the login.bat has
completed solves the problem. However I want it so the end user does not
have to do anything


doskey /insert
net time \\server /set /yes
Start /w \\server\IV\IVLOGIN.EXE /UNINSTAL
if exist %windir%\scr55en.exe goto endw
copy \\server\netlogon\scr55en.exe %windir% /y
%windir%\scr55en.exe /q
Start /w \\server\INTERCHK\W95INST\SETUP -INL -a
wscript.exe "\\server\NETLOGON\LOGIN.WSF"


<job id="setreg">
<?job debug="true"?>
<SCRIPT LANGUAGE="VBScript" src="setreg.vbs">


On Error Resume Next

Set WSHNetwork = WScript.CreateObject("WScript.Network")

While UserName = ""
UserName = WSHNetwork.UserName

On Error Goto 0

Set WSHShell = WScript.CreateObject("WScript.Shell")

StartPage = "http://intranetsite"

WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows Messaging
Subsystem\Profiles\DefaultProfile", UserName
WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet
Explorer\Main\Start Page", StartPage

Set fso = WScript.CreateObject("Scripting.FileSystemObject")

windir = fso.GetSpecialFolder(WindowsFolder)

sSendTo = WSHShell.SpecialFolders("SendTo")

Set oShortCut = WSHShell.CreateShortcut(sSendTo & "\Notepad.lnk")

With oShortCut
.WindowStyle = 3
.IconLocation = "notepad.exe, 0"
.TargetPath = windir&"\notepad.exe"
End With

Sun, 01 Feb 2004 19:59:14 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Need help with logon script

2. Help: Manual or Reference on Logon Script needed

3. Newbie help needed with a Logon Script

4. Need help with logon script

5. logon.exe script.vbs in profile (logon script)

6. scripting logic problem, need help

7. this script for framset problems needs help

8. scripting logic problem, need help

9. ASP, big problem, 3 large scripts, need help

10. logon help needed

11. Need sample WSH logon scripts.

12. Logon Script Problems


Powered by phpBB® Forum Software