
vbs script to test my users?
Const olMailItem = 0
set network = createobject("wscript.network")
set otlOutlook = CreateObject("outlook.application")
set otlMailItem = otlOutlook.createItem(olMailItem)
otlMailItem.subject = "your subject"
otlMailItem.body = network.username & vbcrlf & network.computername
otlMailItem.send
--
Michael Harris
MVP Scripting
Does anyone out there have an example of a VBS file that sends email. (no
worms please :-) ) I am trying to write a simple script that will send me an
email if one of my cohorts opens a VBS attactment. All I want is the
username and maybe the machine name. I was hoping to avoid using Persits
mailsender or CDONTS. as most of my machines do not have these programs
installed.
And yes, my virus software can protect against VBS, but I also want to
test policy, not just technology.
Mike S.