+ Post New Thread
Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 47
Windows Thread, Minimising student logon times in Technical; Originally Posted by maniac You can, but you'll have to give me a few minutes to seperate it out of ...
  1. #31

    Join Date
    May 2008
    Posts
    523
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Quote Originally Posted by maniac View Post
    You can, but you'll have to give me a few minutes to seperate it out of our massive startup script as it's one giant script that does a ton of different things. Check back shortly . . .
    Your a star!! Thanks Maniac

  2. #32

    Join Date
    Apr 2007
    Location
    Christchurch
    Posts
    420
    Thank Post
    41
    Thanked 64 Times in 62 Posts
    Rep Power
    25
    In addition to all of the above make sure that in your IP settings for the network adaptors both fixed and wireless, the DNS setting points to your local DNS server. This makes a big difference in not only login times but any communication with your servers

  3. #33

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,051
    Thank Post
    209
    Thanked 427 Times in 307 Posts
    Rep Power
    144
    OK I've sperated this out.

    Code:
    'SPIRES ACADEMY STUDENT WORKSTATION STARTUP SCRIPT
    'Wirtten by M.Redman July 2009
    'Based on Origenal Script written for NBC in 2007 by M.Redman
    'Version 2.20
    
    'This script works by doing the following:
    '1. Checks to see if the version number specified exists, if it does then it bypasses the whole icon section of the script. If it doesn't or is different it goes to copy icons as below;
    '2. Checks to see if icongroups folder exists, if it doesn't it creates it
    '3. The entire old icon cache is deleted ready for a fresh copy if it exists
    '4. Main set of icons are copied from a central storage location
    '5. Other Icon groups are copied from individual storage locations based on OUs the machines are in
    '6. Creates the version number file so the script knows the latest set of icons exists on the local machine. 
    '7. Additional icons are copied on an individual basis by looking for certain program files on the local machine. 
    
    'YOU WILL NEED TO USE XCACLS TO ALTER THE PERMISSIONS ON THE LOCAL FOLDER TO STOP STUDENTS SAVING TO IT
    'OR PRE-CREATE THE FOLDER WITH THE CORRECT PERMISSIONS SET, AND ALTER THE SCRIPT ACCORDINGLY. 
    
    Const OverWriteFiles = True
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set WshShell = WScript.CreateObject("WScript.Shell")
    
    
    'ICON DELIVERY
    'Set Version number
    dim strfile
    
    ' #####################
    ' # To Copy new icons #
    ' # Increment the     # 
    ' # value Below.      #
    ' #####################
    
    ' ### MODIFY BLOW THIS LINE ONLY ###
    
    strfile="v1.40"
    
    ' ### DO NOT MODIFY BELOW THIS LINE ###
    
    
    'Check to see if version file exists if it does, whole icon section is bypassed.
    If Not objFSO.FileExists("c:\ICONGROUPS\STUDENTS\" & strfile) then
    
    'Check to see is Icon folders exist, if not create folder
    If Not objFSO.FolderExists("c:\ICONGROUPS") then
    objFSO.CreateFolder("c:\ICONGROUPS")
    end if
    
    'Delete old icon cache if it exists
    If objFSO.FolderExists("c:\ICONGROUPS\STUDENTS") then
    objFSO.DeleteFolder("C:\ICONGROUPS\STUDENTS"),TRUE
    end if
    
    'Copy global icons from server
    objFSO.CopyFolder "\\spires\netlogon\ICON BANK\MAIN" , "C:\ICONGROUPS\STUDENTS" , OverWriteFiles
    
    'Setup for reading machine OU and copy extra ocons according to OU membership. 
    Set objWshNetwork = CreateObject("WScript.Network")
    Set objAdsSystemInfo = CreateObject("adsysteminfo")
    Set objComputerName = GetObject("LDAP://" & objAdsSystemInfo.ComputerName)
    Set objOU = GetObject(objComputerName.Parent)
    strOU = replace(objOU.Name,"OU=","")
    
    'For each Case statement, a seperate folder can exist
    Select Case strOU
    
    Case "Room 22"
    objFSO.CopyFolder "\\spires\netlogon\ICON BANK\Room22" , "C:\icongroups\students" , OverWriteFiles
    
    Case "Room 25"
    objFSO.CopyFolder "\\spires\netlogon\ICON BANK\MATHS" , "C:\icongroups\students" , OverWriteFiles
    
    End Select
    
    'Create version number txt file
    Set objFile = objFSO.CreateTextFile("c:\ICONGROUPS\STUDENTS\" & strFile)
    
    END IF
    
    'Copy Icons for specific programs that may be installed anywhere
    
    'PINNACLE
    If objFSO.FileExists("C:\pinnacle\Program\Programs\Studio.exe") then
    If Not objFSO.FOLDERExists("C:\ICONGROUPS\STUDENTS\STARTMENU\PROGRAMS\Pinnacle") then
    objFSO.CopyFolder "\\spires\netlogon\ICON BANK\Pinnacle" , "C:\icongroups\students" , OverWriteFiles
    end if
    end if
    
    'FIREFOX
    If objFSO.FileExists("c:\Program Files\Mozilla Firefox\firefox.exe") then
    If Not objFSO.FILEExists("C:\ICONGROUPS\STUDENTS\STARTMENU\PROGRAMS\Mozilla Firefox.lnk") then
    objFSO.CopyFolder "\\spires\netlogon\ICON BANK\Firefox" , "C:\icongroups\students" , OverWriteFiles
    end if
    end if
    It's very important that you use this in conjunction with XCACLS to keep a check on the folder permissions so the students can't save to the desktop or startmenu. Our machines run XCACLS every startup to check the folder permissions are correct. This process only take a few seconds to run.

    Because the whole script is written to check for certain files first, it only copies data over the network if the local machine actually needs it otherwise it skips over the sections not needed in a fraction of a second.

    I've trimmed this down lots - you have a couple of examples of each type of icon distribution I use in this script.

    Mike.
    Last edited by maniac; 12th July 2010 at 12:07 PM. Reason: Missed a bit of code off!

  4. 3 Thanks to maniac:

    Cools (28th January 2011), ninjabeaver (23rd August 2010), techie08 (15th July 2010)

  5. #34

    Join Date
    May 2008
    Posts
    523
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Thanks Maniac. Ill give that a go!!!!
    would this script go in the machine startup or user login?
    Last edited by techie08; 15th July 2010 at 10:06 AM.

  6. #35
    p858snake's Avatar
    Join Date
    Dec 2008
    Location
    Queensland
    Posts
    1,490
    Thank Post
    37
    Thanked 175 Times in 151 Posts
    Blog Entries
    2
    Rep Power
    51
    Also if all your students use the same mandatory profile, you can cache that locally and freeze it as well if you desired.

  7. #36

    Join Date
    May 2008
    Posts
    523
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Ive managed to get the script working but as a User login script or startup script it just says permision denied line 54 char 1. Is this because i dont have the correct permission on the c: drive? Im not using xcacls

  8. #37

    Join Date
    May 2008
    Posts
    523
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Ive now sorted it. Works like a charm!!

  9. #38

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,051
    Thank Post
    209
    Thanked 427 Times in 307 Posts
    Rep Power
    144
    Quote Originally Posted by techie08 View Post
    Ive now sorted it. Works like a charm!!
    Apologies, didn't notice your reply until today! Glad you got it working in the end.

    Mike.

  10. #39

    Join Date
    Dec 2009
    Location
    UK
    Posts
    113
    Thank Post
    15
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi there

    was just looking through some posts and came across your one, I am having some issues with login times over wireless LAN (see below link I have posted)
    Wireless logins

    Was wondering if you could have a look and give me a few pointers/help

    Thanks

  11. #40

    Join Date
    May 2008
    Posts
    523
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Appolgies for resurecting this tread again, but i have now tried to implement the same script for a windows 7 test computer but it fails to copy the icons across. It creates the startmenu folder in the root of the C: but doens't copy any of the icon over. XP seems to be fine.

    The script is used in the machine startup not user log on. Would it point to a permissions problem on the c drive of the windows 7 machine?

    Thanks

  12. #41

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,051
    Thank Post
    209
    Thanked 427 Times in 307 Posts
    Rep Power
    144
    I've never used it on windows 7 so I'm not really in a position to help you much, sorry!

    The basic functions of the script are fairly simple, so as a guess I would say it's a permissions problem with the location you are copying the icons from, as oppose to a permissions problem on the local machine, because it has sucessfully created the folders so you know it is able to write to the C:\

  13. #42
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,201
    Thank Post
    212
    Thanked 222 Times in 191 Posts
    Rep Power
    72
    Do you have UAC enabled? Having that switched on causes problems when copying into the root of a drive (or at least it does with me). It comes up with the 'You must click continue' prompt. You could try writing to a folder that always exists by default, that should allow it through.

  14. #43

    Join Date
    May 2008
    Posts
    523
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Quote Originally Posted by themightymrp View Post
    Do you have UAC enabled? Having that switched on causes problems when copying into the root of a drive (or at least it does with me). It comes up with the 'You must click continue' prompt. You could try writing to a folder that always exists by default, that should allow it through.
    Yes i turned it off aswell. I have tried copying them to an existing folder yet.

  15. #44

    Join Date
    May 2008
    Posts
    523
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Tried doing and existing folder but thats still the same.

  16. #45

    Join Date
    May 2008
    Posts
    523
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    15
    Managed to get it working. I edited the script to copy the shortcuts from the file server.

SHARE:
+ Post New Thread
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. WINXP Logon Times (IE Branding =S)
    By BKGarry in forum Windows
    Replies: 8
    Last Post: 18th May 2010, 03:31 PM
  2. Netbook logon times server
    By djgreek in forum Windows Server 2008
    Replies: 9
    Last Post: 4th September 2009, 07:12 AM
  3. Logon Times/Speed
    By mattpant in forum Wireless Networks
    Replies: 86
    Last Post: 6th November 2007, 10:24 AM
  4. Logon times
    By wesleyw in forum How do you do....it?
    Replies: 4
    Last Post: 25th September 2006, 06:45 AM
  5. Logon Times
    By Snuffkins in forum Windows
    Replies: 1
    Last Post: 31st January 2006, 09:48 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •