Discussion Locked

Login Script

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to create a login script for my user to access server's d driver and hidden all function of control panel in the user's PC.
But I don't know how to create a login script, where I can find the example?

1 reply

by haileyan

A login script is basically just a MSDOS batch file. You can use most MS-DOS commands in the script. Your login script is placed in c:\WINNT\SYSVOL\sysvol\js-llp.com\scripts.

Here is an example of the basics:

REM ** Set workstation time to server time
net time \\server /set /yes

REM ** Connect drives to server shares
net use f: \\server\share
net use n: \\server\share

REM ** Execute Application or Batch **
START /b \\server\share\app\program.exe

****************************
To hide functions of the Control Panel you will user Domain Policies. In group policy go to User Configuration => Administrative Templates => Control Panel. There is an option to disable Control Panel Here.

This discussion is closed to new replies.