Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Logon/Logoff script to update computer description with who logged on?

Featured Replies

Hello Everyone,

I would like to implement a logon/logoff script that would update the computer description with who logged on/off and the times.

This would be updating the AD computer object.

I have seen a couple of examples and tried to implement them with various success.

If anyone could give me the code to do this that would be great. I assume for the AD permissions in order for the user to update the description they just need write access on the computer object description property??

Anyway many thanks for your help. :thumbup

Edited by ca99uk

  • 4 weeks later...

I would consider implementing a script that checks the server's security log for logon events, find the most recent, parse for the user and time and then write that information to the server's registry section for computer description.

Do you mind if I ask why you are doing this? It would seem easier to query the event logs on multiple servers and dump the results to a single text file on the network or something where you view all the results at once.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.