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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Temporary file read/write access via VBScript

Status
Not open for further replies.

KeyserSoze

Programmer
May 18, 2000
79
US
I am new to VBScript, so please bear with me....

I have to write a script that runs when a user logs in and writes information, such as logon time, IP address, etc., to a text log file.

The text log file will reside in another directory and all users will append to it. I do not want the file to be seen by the users.

Via VBScript, can I grant the user logging in temporary read/write access to the file and remove that access when the script ends execution?

Thanks!
 
You could possibly do it via GPO because with a gpo the script would be running as a domain admin and not the logged in user.

A better question here is why? This info is already recorded in the netlogon log and/or event viewer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top