7 replies
by joseph moore
Part 1
Ok. I don?t know if you are running a program to do this window popup, but here is what could work.
First, set up a form on a web server, with an ODBC connection on the web server to the database.
Build the form to have this Yes checkboxyou want, with all of the legal text you want. Also have the form add the Date and Time as hidden fields (a standard ASP coding step). Set up your database to hold all of this data.
Now, assuming you are using IIS as your web server, save this pageas an ASP on your web server (call it legal.asp, for this example), and put it in a folder that is accessible via a URL (for my example, it is in the root web directory).
Now, as for the logon script that your users will use, add this line to it:
call c:\progra~1\plus!\micros~1\iexplore http://ipaddress_of_web_server/legal.asp
Now, when the user logs in, Internet Explorer will be called, and it will open the file on the web server.
Ok, so that takes care of the file for the user, but how do you set this so it does not open every time a user logs in?
On a mapped shared drive somewhere that the logon script will map to (a Public drive, for example, where everyone has at least Read access), make a text file (or any other, but text is easy) and call it something like agreed.txt. In the text file, put a line in there saying that the user has accepted the Internet policy.
In the logon script AFTER the Iexplore call, put this line in (again, I am gonna assume that X: drive is where this Public drive is, and the text file is in the root of it):
copy x:\agree.txt c:\agree.txt
Ok. Last thing. Now, BEFORE the Iexplorer line, put the following in
If exist = c:\agreed.txt goto legalaccepted
by joseph moore
Part 1
Ok. I don?t know if you are running a program to do this window popup, but here is what could work.
First, set up a form on a web server, with an ODBC connection on the web server to the database.
Build the form to have this Yes checkboxyou want, with all of the legal text you want. Also have the form add the Date and Time as hidden fields (a standard ASP coding step). Set up your database to hold all of this data.
Now, assuming you are using IIS as your web server, save this pageas an ASP on your web server (call it legal.asp, for this example), and put it in a folder that is accessible via a URL (for my example, it is in the root web directory).
Now, as for the logon script that your users will use, add this line to it:
call c:\progra~1\plus!\micros~1\iexplore http://ipaddress_of_web_server/legal.asp
Now, when the user logs in, Internet Explorer will be called, and it will open the file on the web server.
Ok, so that takes care of the file for the user, but how do you set this so it does not open every time a user logs in?
On a mapped shared drive somewhere that the logon script will map to (a Public drive, for example, where everyone has at least Read access), make a text file (or any other, but text is easy) and call it something like agreed.txt. In the text file, put a line in there saying that the user has accepted the Internet policy.
In the logon script AFTER the Iexplore call, put this line in (again, I am gonna assume that X: drive is where this Public drive is, and the text file is in the root of it):
copy x:\agree.txt c:\agree.txt
Ok. Last thing. Now, BEFORE the Iexplorer line, put the following in
If exist = c:\agreed.txt goto legalaccepted
by joseph moore
Part 2 - OOPS! I put Part 1 in twice. Sorry!
This will scan the local computer?s hard drive, in C:\ for agreed.txt. If it finds it, it will go to a section labeled ?legalaccepted?. That section of the script should NOT include the call to theASP page. You can continue with your normal logon script functions. BUT, if the file is NOT found, then the script will do the next line, which is the Iexplorer call.
So, this is my recommendation. First off, I would put this whole mess (7 linesbelow) at the end of your logon scripts:
If exist = c:\agreed.txt goto legalaccepted
call c:\progra~1\plus!\micros~1\iexplore http://ipaddress_of_web_server/legal.asp
copy x:\agree.txt c:\agree.txt
EXIT
:legalaccepted
EXIT
As you can tell, I am assuming your users use Internet Explorer for web browsing. If you use Netscape, please make that change, but the syntax should be the same. Also, if you have a custom program that has its own checkbox (you didn?t say) with its own connection to the database, that is easy too. Just replace the Iexplorer call with a CALL PROGRAMNAME.EXE, and have the program in the Netlogon folder (the physical folder is c:\winnt\system32\repl\import\scripts, but I always just go through the Netlogon share).
Anyway, this way isn?t perfect, but it will work.
by it support services manager
Wow! What a well thought out answer. You definitely have earned those points. Thanks for your help.
Lisa
by bhrdwh
The above answer pretty much what I suggest. howver take care to use SQL Server & ODBC connectivity.
Akash
by it support services manager
by it support services manager
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending