Jump to content
Sign in to follow this  
Greenbeast

Advice on one time credential capture and usage

Recommended Posts

Greenbeast

Trying to make my life easier supporting user laptops in a school.

I'd like to present a text box when the user logs in for the first time.

They would enter their password and the script would toddle off and change their windows password to the one typed, i'd also like to add credentials for the webproxy (but i don't know if these are stored in the registry) and i'd like to configure a exchange (2003) mail account for outlook 2007.

How much of this is possible and where is a good place to start?

I tried looking for an example script to start me off, something that accepts some text and does something with it, but the example names don't make it obvious.

Many thanks

Share this post


Link to post
Share on other sites
Greenbeast

Well given that i'm the system admin, that doesn't really matter too much.

Anyway, i didn't want the script to store the password for any length of time, i only want the script to run once, on first login.

If the password is stored in a variable rather than a file somewhere then it's not avaiable after the script has run is it?

I wouldn't really want the password to be laying about on thge drive somewhere anyhow.

Thanks

Share this post


Link to post
Share on other sites
JohnOne

I dont think an administartor worth their salt would ask a user to enter their password into a GUI, to do with as they please.

Pehaps you could invoke the password change screen with wmi or something, and let them enter it there, themselves.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
sleepydvdr

When you create the student's account, you should leave a check box in the field "User must change password at next logon". Wouldn't that do what you want?


#include <ByteMe.au3>

Share this post


Link to post
Share on other sites
Greenbeast

I dont think an administartor worth their salt would ask a user to enter their password into a GUI, to do with as they please.

Pehaps you could invoke the password change screen with wmi or something, and let them enter it there, themselves.

Well i'm just trying to automate some tedious tasks. I currently have to babysit through mail profile creation and first entry of proxy credentials, plus setting their win password to match their domain password... i'd kinda just like to create a named account and hand it over.

Yes that would solve one part of the problem, perhaps i could couple that with some form of pre-configure of outlook (which i'm also investigating)

Not sure about the poroxy credentials though, can they be set in registry?

When you create the student's account, you should leave a check box in the field "User must change password at next logon". Wouldn't that do what you want?

partly yes

Share this post


Link to post
Share on other sites
water

If your users are managed in an Active Directory then you can use my AD UDF (for download please see my signature).

It has functions to change a users password and to force the user to change the password at next logon. It has another function to create a mailbox (as long as you are on Exchange 2003).


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Greenbeast

well they are in AD, but these laptops are non-domain.

that's another avenue i'm investigating

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.