Discussion Locked

Windows NT and 2000 script

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm intereted on setting logon script to every one of my user which is using and running on Windows 98 and NT.Can you show or provide me some windows logon script that i can set on my user,for example that every user of my will automatically map to a network drive when their logon to my NT domain.

5 replies

by c0nv1ct04

In order to do this you will have to use a bat file. Open wordpad and type the following changing the servername and shred folder to what you need. Here is what you should type:

NET USE S: \\servername\shredfolder

Then save the file as logon.bat. Place the file in the WINNT\System32\repl\import\scripts on the Domain Controller. Then you have to edit the Domain User logon properties. There should be a place to put in the login script name. If you type in the name and synchronize the Domain. The script will run when the user logs on. You will want to copy the logon script to all Domain controllers.

by allen.bauserman

@echo off
REM
REM This file is the template used to create the logon script for each user.
REM

REM
REM If this is running on dos, exit
REM

if "%windir%" == "" goto exit

if "%COMPUTERNAME%" == "" goto proc_test
if "%COMPUTERNAME%" == "Servername" goto exit

:proc_test

REM set time on computer
NET TIME \\ServerName /SET /YES

NET USE S: \\Server Name\Folder Name

NET USE H /Home

REM
REM Use PROCESSOR_ARCHITECTURE to pick the right directory
REM

if "%PROCESSOR_ARCHITECTURE%" == "" set DIRECTORY=win95
if "%PROCESSOR_ARCHITECTURE%" == "" set DIRECTORY=win98
if "%PROCESSOR_ARCHITECTURE%" == "x86" set DIRECTORY=i386
if "%DIRECTORY%" == "" goto exit

:exit

This discussion is closed to new replies.