Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launch IE once per user at Login

Status
Not open for further replies.
May 23, 2012
10
0
0
CA
Hey Peeps

I am a total newbie when it comes to scripting/programming, and was hoping you can help me out.

I need to launch IE for all users once. I want users to set-up their password recovery questions when they login the first time. I looked at runonce key in the registry, but when a user logged into a different workstation the script ran again and the user was presented with their password recovery page even if they had it setup.

Thanks for the info,

Brimmy
 
Or creating a log file in there %HOMEPATH% and have an IF THEN statement in the script.
 
Assuming it's set, that would work also. Or just a file. :)

Code:
set objShell = CreateObject("Wscript.shell")
set objFSO = CreateObject("Scripting.FileSystemObject")

strHomePath = objShell.ExpandEnvironmentStrings("%UserProfile%")
strFileName = "hasAnsweredSecurityQuestions.aaa"
strFile = strHomePath & "\" & strFileName

if not (objFSO.FileExists(strFile))
   'launch security questions website
   objFSO.CreateFile(strFile)
end if

something like that.

-Geates

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top