Active Directory VBS-Skript zum Überwachen einer Präsentation

673
Steven Maxon

Kann mir jemand mit diesem VBS-Skript helfen? Danke im Voraus.

  1. Der Benutzer meldet sich an einem XP-Computer an und eine PowerPoint-Präsentation oder eine Webseite wird gestartet
  2. Sie haben die Präsentation durchgelesen und dann auf einen Link geklickt, der besagt: "Klicken Sie hier, um die Präsentation abzuschließen".
  3. Wenn sie auf den Link klicken, wird der Benutzername und der Zeit- / Datumsstempel an eine Textdatei auf einem Server gesendet.
  4. Bei der nächsten Anmeldung erhalten sie keine PowerPoint- oder Webseitenpräsentation.
0

1 Antwort auf die Frage

0
grawity

User logs in to a XP computer and a PowerPoint presentations or web page starts

Copy the presentation or the .url shortcut to %UserProfile%\Start Menu\Programs\Startup\.

They read through the presentation and then click a links that says: “Click here to complete presentation”.

When they click the link it will send their username and time/date stamp to a text file on a server.

In the presentation - create a macro that sends a HTTP POST request using WinHttp as described in MSDN and this page. (You can enable WinHttp for PowerPoint macros by opening Visual Basic editor, and enabling "Microsoft WinHTTP" under Tools -> References.)

In a web page - do the same using XmlHttpRequest() (there are way too many tutorials for it).

Some suggestions:

  • Don't send timestamps. Instead use the server's time.
  • Use HTTP authentication instead of sending the username as data -- this way it will be harder to fake.
  • Do not use GET for submitting data, even if it seems simpler at first.
  • Think about whether you really need this information, and what would happen if users closed the presentation by simply pressing Esc.

The next time they log in they will not get the PowerPoint or web page presentation.

Remove the file copied in step 1.