Foo wrote:Something like:
---------------------------
Dim OdbcDSN
Dim connect, sql, resultSet
OdbcDSN = "DSN=EMPRecords;UID=connlogger;PWD=l0ginscr1pt"
Set connect = CreateObject("ADODB.Connection")
connect.Open OdbcDSN
sql="INSERT into tblLoginRecords **date, time, username, computer etc**"
Set result = connect.Execute(sql)
result.Close
connect.Close
Set connect = Nothing
---------------------------
That's definitely a better solution. Even though all of our clients are Win2000 or XP, our login scripts are still completely KIXTart. I've thought about converting them to VBScript, but I simply don't have the time right now. And I hate to just throw in calls to VBScripts, to make it even sloppier than it already is.
I'd rather just use GPOs with VBScript to do everything, but guess what -- I don't have permissions to create/edit GPOs even on our own OUs (even though I have the highest level of access rights in our local organization).
Here's something else that has made me cringe ever since I started working there: our entire organization, spanning across the whole country with tens of thousands of employees, is all under a SINGLE DOMAIN. They say that they hired MS consultants to come in and help design our forest when they built it, but I have a hard time believing that since I have worked with MS consultants doing Active Directory deployments before. I can't imagine a scenario where an MS consultant, or even an MVP, would tell a company with such a large WAN that they should only create one domain.