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 cwleng
@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
by cwleng
by cwleng
This discussion is closed to new replies.
Trending Networks posts
Sort by Trending