+ Post New Thread
Results 1 to 8 of 8
Windows Thread, Login Script .. in Technical; Good afternoon all .. Right, one of the schools I work at is yet to invest in a DC so ...
  1. #1
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,435
    Thank Post
    672
    Thanked 279 Times in 246 Posts
    Rep Power
    78

    Login Script ..

    Good afternoon all ..

    Right, one of the schools I work at is yet to invest in a DC so I'm left with a workgroup setup which they want DC style things doing to (bloody hard work .. but there we go).

    Anyway, I'm looking to use login / startup scripts that are stored on our central server (a little ubuntu box) so that I can configure things centrally and allow for Proxy Settings / Default Printers / etc.

    Now, the Start Up Script seems to be pulling ok as this is a central script on the machine settings (obviously) however, in XP, Login Scripts would appear to be on a per user basis so the local admin account I'm using is set up perfectly, but how do I go about getting the Login Script into the other users on the machines?

    Each machine has the Main Admin Account, and ICT Admin Account (different easier to remember password essentially is the difference so that as we move to a DC at somepoint in the next 6 months or so (fingers crossed) I don't have to give out one of our secure ones and all that jazz) a Pupil Account which is restricted and a Staff Account which is a Power User.

    So, is there a way to set a login script for every user or do I have to elevate all the non admins to being admins, set the login script then set them back to get it to work? Bearing in mind I'd rather use a BAT or VBS script to do this from the admin account so I don't have to logon to the 30 machines in the suite, plus the school laptops / staff laptops for each user account.

    Thanks for any help offered.
    Andy

  2. #2
    DriftGrant's Avatar
    Join Date
    Oct 2009
    Location
    Hampshire
    Posts
    45
    Thank Post
    19
    Thanked 8 Times in 4 Posts
    Rep Power
    12
    try placing the scripts in C:\Documents and Settings\All Users\Start Menu\Programs\Startup


  3. #3
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,435
    Thank Post
    672
    Thanked 279 Times in 246 Posts
    Rep Power
    78
    Quote Originally Posted by DriftGrant View Post
    try placing the scripts in C:\Documents and Settings\All Users\Start Menu\Programs\Startup

    Did that, but then the user doesn't have the permission for some of the functions within the login script sadly .. plus they can stop the script running by closing the CMD screen.

    Thanks tho.

  4. #4

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,995
    Thank Post
    3,539
    Thanked 1,111 Times in 1,017 Posts
    Rep Power
    374
    Quote Originally Posted by aptproductions View Post
    Did that, but then the user doesn't have the permission for some of the functions within the login script sadly .. plus they can stop the script running by closing the CMD screen.

    Thanks tho.
    make them local admins or is that over kill ?? Also if you go into local security ( control panel --> administrative tools --> local security ) you should be able to find somewhere in there about making bat / command prompts run minimized or not visible or something ?

  5. #5
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,435
    Thank Post
    672
    Thanked 279 Times in 246 Posts
    Rep Power
    78
    Quote Originally Posted by mac_shinobi View Post
    make them local admins or is that over kill ?? Also if you go into local security ( control panel --> administrative tools --> local security ) you should be able to find somewhere in there about making bat / command prompts run minimized or not visible or something ?
    Trying to move away from having them as local admins. Essentially, trying to create a more networked like environment by restricting and drip feeding in the move to a DC that I really hope will happy shortly! lol ..

    I'll have a look at the batch silent thing. I was using a tool (hstart) to run a script which then called a script and ran it as hidden which was one way round it, but it's clunky (but hey without a DC it's all going to be a bit clunky! lol)


  6. #6

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,158
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124
    What are you wanting to do with the user script that needs admin rights? In general, machine startup scripts do the admin type stuff; user login scripts do the personal stuff which doesn't normally need admin rights.

    To run the script hidden, run gpedit.msc on the machine and go to user config | admin templates | system | scripts and choose "run legacy logon scripts hidden" and "run logon scripts hidden" and enable them.

    You can configure a logon script for each user by doing:

    Code:
    net user <username> /scriptpath:<mylogon.cmd>
    I think that the file mylogon.cmd has to be in a netlogon share on the local machine which adds to the difficulty!

  7. #7
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,435
    Thank Post
    672
    Thanked 279 Times in 246 Posts
    Rep Power
    78
    Quote Originally Posted by srochford View Post
    What are you wanting to do with the user script that needs admin rights? In general, machine startup scripts do the admin type stuff; user login scripts do the personal stuff which doesn't normally need admin rights.
    Delete the All Users Desktop Items and recreate icons, but I guess I could do this with the startup script thinking more logically about it ..

    It's a Friday .. that's my only excuse .. lol ..

  8. #8
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,435
    Thank Post
    672
    Thanked 279 Times in 246 Posts
    Rep Power
    78
    Just re-hashed my scripts and testing to see if I can manage it by using the startup to do the adminy bits then back to the old hidden BAT for the rest .. fingers crossed!



SHARE:
+ Post New Thread

Similar Threads

  1. Login script - first attempt
    By itman in forum Windows
    Replies: 11
    Last Post: 24th October 2008, 05:08 PM
  2. Mac Login Script
    By gybe78 in forum Mac
    Replies: 2
    Last Post: 9th September 2008, 11:51 AM
  3. Script visibility after login
    By Blind in forum Scripts
    Replies: 5
    Last Post: 21st April 2008, 12:03 PM
  4. Vista + VB login script
    By dave.81 in forum Windows Vista
    Replies: 5
    Last Post: 17th February 2008, 05:29 PM
  5. Login script problem
    By SpuffMonkey in forum Windows
    Replies: 55
    Last Post: 4th February 2006, 10:27 PM

Thread Information

Users Browsing this Thread

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

Posting Permissions

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