+ Post New Thread
Results 1 to 5 of 5
Windows Thread, GUI and some help needed in Technical; I know this might be the wrong forum for it, if so, please move it as I am too stupid ...
  1. #1

    MK-2's Avatar
    Join Date
    Oct 2006
    Location
    Nottingham
    Posts
    3,237
    Thank Post
    149
    Thanked 581 Times in 307 Posts
    Blog Entries
    8
    Rep Power
    199

    GUI and some help needed

    I know this might be the wrong forum for it, if so, please move it as I am too stupid to know where this goes ops:

    At the moment, to create single users I have a batch file. One for each yeargroup and one for staff that will:

    Add the user using net user commands
    Add that user to a group
    Make their home folder
    Change permissions on that folder
    Share that folder for easy admin access

    The thing is, every time there's a new user I have to open up a command prompt then run the batch file with the right parm's
    Is anybody able to do a VB GUI for me (I have no VB skills at all) that will ask for:
    Firstname
    Lastname
    Year (drop down box that will determine which batch file is run)

    and the parm's from that are then sent through to the relevant batch file?

    The other thing is the batch file does its job, but it doesn't tick the 'user must change password on next logon' box and also it sets their home area as a local profile whereas I need it set to map to h:\ instead.
    These are the only two things bugging me about our single user creation and any help would be very much appreciated.

    PS - If anyone can help with the GUI, please PM me so I can explain how our usernames and the batch file looks.
    Ta

  2. #2

    Join Date
    Sep 2006
    Location
    Essex
    Posts
    777
    Thank Post
    1
    Thanked 31 Times in 29 Posts
    Rep Power
    23

    Re: GUI and some help needed

    I use DSADD and a csv file. This link provides a VBScript that will create users from an excel spreadsheet.

    http://computerperformance.co.uk/vbs...preadsheet.htm

  3. #3
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: GUI and some help needed

    You dont have to use VB for this. If your not familiar with anything to make a GUI from try AutoIT. Its fairly easy to make GUIs with that, then all you need to do is pass the parameters to your script.

  4. #4

    MK-2's Avatar
    Join Date
    Oct 2006
    Location
    Nottingham
    Posts
    3,237
    Thank Post
    149
    Thanked 581 Times in 307 Posts
    Blog Entries
    8
    Rep Power
    199

    Re: GUI and some help needed

    Thanks for the help guys. AutoIT seems just the job.

    The only other thing was the stuff that a batch file can't do.
    Ensuring that 'change password next logon' is set, and also making sure the profile is changed from local to remote h:\. Also physically moving the user from the 'users' container to the relevant container for their year.
    I've heard it's possible to do this using VBS or some other coding, as I'd like to tie it in with this GUI so it does everything at once.

  5. #5

    Join Date
    Sep 2006
    Location
    Essex
    Posts
    777
    Thank Post
    1
    Thanked 31 Times in 29 Posts
    Rep Power
    23

    Re: GUI and some help needed

    I would use DSADD in the batch file to create the user it is much more flexible than net user and can do everything you need.

    You can also do this using DSMOD

SHARE:
+ Post New Thread

Similar Threads

  1. Serious help needed!
    By MK-2 in forum Windows
    Replies: 7
    Last Post: 7th August 2007, 12:44 PM
  2. Mac experts help needed
    By Rozzer in forum Mac
    Replies: 4
    Last Post: 3rd August 2007, 08:08 AM
  3. Needed...
    By russdev in forum General EduGeek News/Announcements
    Replies: 0
    Last Post: 30th July 2007, 10:11 PM
  4. RAM help needed!
    By richbeck2 in forum Hardware
    Replies: 5
    Last Post: 18th July 2007, 06:53 PM
  5. advice needed on weather a new server is needed
    By projector1 in forum Hardware
    Replies: 3
    Last Post: 24th February 2006, 09:20 AM

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
  •