Script to use as logon script that will update the last logged in username in the Managed by tab of the computer

Posted on 2007-10-12
Last Modified: 2008-01-09

Script to use as logon script that will update the last logged in username in the managed by tab of the computer.
The logon script has to update just once.
I think by updating the computers managed by tab there would be no permissions given.(Is this just for information purpose)

Question by:bsharath
    LVL 4

    Expert Comment

    need to close this question since you asked it again..
    LVL 65

    Accepted Solution

    Use this as a login script:
    Set objSysInfo = CreateObject("ADSystemInfo")
    Set objComputer = GetObject("LDAP://" & objSysInfo.ComputerName)
    objComputer.ManagedBy = objSysInfo.UserName


    LVL 11

    Author Comment

    Rob a general Q on related to this...
    If the user is on the managed by tab will he get any permissions?
    I hear from some experts saying that a user in the managed by will have permissions to add and remove a machine to a Domain
    LVL 65

    Expert Comment

    From here:

    search for
    Managed By
    and it states that this is purely informational only, when applied to a computer object.



    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at (http://www.experts-ex…
    It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
    The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
    The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now