Never applied a login script before, has any one got a template of theirs I could take a look at?
So I could get a better understanding.
Never applied a login script before, has any one got a template of theirs I could take a look at?
So I could get a better understanding.

What do you want it to do?
Map appropiate drives when user logs on
Here you are, a basic example.
Code:@echo off @echo Welcome to the School Network net time \\stjohns01 /set /yes if %OS%==Windows_NT goto NTWKS net use n: /home net use p: \\stjohns01\apps net use g: \\stjohns01\cse$ net use v: \\stjohns01\cdcache g: cd profiles\kix32 kix32 students.txt c: net use g: /d /y net use f: \\stjohns01\cse$ goto end :NTWKS net use f: \\stjohns01\cse$ /PERSISTENT:NO net use P: \\stjohns01\apps /PERSISTENT:NO net use V: \\stjohns01\cdcache /PERSISTENT:NO net use r: \\stjohns01\resource$ /PERSISTENT:NO net use s: "\\stjohns01\Shared Areas" /PERSISTENT:NO net use w: \\stjohns01\work /PERSISTENT:NO net time \\stjohns01 /set /yes "tsc killer.exe" gpupdate :END
Hi Thanks Matt, what does the cdcache part do?
net use v: \\stjohns01\cdcache
Whats happening exactly with this part?
:NTWKS
net use f: \\stjohns01\cse$ /PERSISTENT:NO
net use P: \\stjohns01\apps /PERSISTENT:NO
net use V: \\stjohns01\cdcache /PERSISTENT:NO
net use r: \\stjohns01\resource$ /PERSISTENT:NO
net use s: "\\stjohns01\Shared Areas" /PERSISTENT:NO
net use w: \\stjohns01\work /PERSISTENT:NO
net time \\stjohns01 /set /yes
"tsc killer.exe"
gpupdate
:END
If you want a complex VBS loging script, i have got one, which all staff have but the script determines what drives they see, which looks at what the user is a member of.
cdcache part maps a drive to a share that I have called cdcache. I managed to get some old CD rom stuff working over the network. Tizzy's toy box etc...
The other parts are again drive mapping to various shares, then a time sync with the DC, a script which kills Trend's tsc.exe if its running, a policy update, then dinner, lunch, tea, supper and a pint of beer, jumpers for goalposts, 'Its getting a bit busy in this forum Maureen.....' Wooooohhhh, slow down there Matt.......
This is ours (slightly simplified and domain changed), which gets applied to all users.
It uses AD group membership to determine what gets set, and controls everything from IE proxy settings to mapped drives and printers to desktop backgrounds.
At 360 lines it may seem a little excessive, but it works well for us.
Personally you need to learn how to use GP
Nice script none the less!
Just shame it's not strict, full vb .net and you've got "On Error Resume Next"
There are currently 1 users browsing this thread. (0 members and 1 guests)