itman Posted October 24, 2008 Posted October 24, 2008 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.
mattx Posted October 24, 2008 Posted October 24, 2008 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
itman Posted October 24, 2008 Author Posted October 24, 2008 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
timbo343 Posted October 24, 2008 Posted October 24, 2008 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.
apoth0r Posted October 24, 2008 Posted October 24, 2008 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)
mattx Posted October 24, 2008 Posted October 24, 2008 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.......
matt40k Posted October 24, 2008 Posted October 24, 2008 gpupdate :END Bit useless... it just updated!! This might cause errors as well.
Irazmus Posted October 24, 2008 Posted October 24, 2008 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
matt40k Posted October 24, 2008 Posted October 24, 2008 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"
mattx Posted October 24, 2008 Posted October 24, 2008 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now