Jump to content

Recommended Posts

Posted

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.

Posted

Here you are, a basic example.

 

@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

Posted

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

Posted
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.
Posted
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

 

Refers to the resource folder on the stjohns01 server (i'd assume a store of ISO's and copies of CD resources)

Posted
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

 

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.......

Posted

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.

Global Domain Logon.vbs

Posted

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"

Posted
Bit useless... it just updated!! This might cause errors as well.

 

It's refreshing the policy, not updating it. As you already most proably know the policy will update every few hours [ or what ever time limit the admin has set ] whilst a user is logged on to the domain.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...