Results 1 to 8 of 8

Thread: Locking down the username to the computer login name?

  1. #1
    Member
    Join Date
    2009-09
    Posts
    3
    Login to Give a bone
    0

    Question Locking down the username to the computer login name?

    Is there any way to hardwire the username so it is automatically filled in by the name of the person accessing the computer? Does it have to do with the Revit.ini file? If this can be done, can it then be locked to that computer login name or can it be changed once the user has logged on and opened Revit?

    It hasn't happened yet but there has been some concern where I work that different Revit users could potentially impersonate another user on a problematic project, so I was curious if there was a way to keep that from happening.

    Thanks in advance.

  2. #2
    Revit Forum Manager Steve_Stafford's Avatar
    Join Date
    2001-12
    Location
    Irvine, CA
    Posts
    7,567
    Login to Give a bone
    0

    Default Re: Locking down the username to the computer login name?

    The username= parameter in the Revit.ini file is the culprit.

    When it is blank (username= ) Revit will use the current logged in user name.
    If someone enters a value into the Options > General tab > Username field it gets stored in the Revit.ini file and Revit gives it priority over the current logged in user name for the PC.

    The scripts that David and David shared here to create local files include a portion to find and remove the username parameter so it remains blank prior to opening the project file.

  3. #3
    I could stop if I wanted to Batman's Avatar
    Join Date
    2004-12
    Posts
    332
    Login to Give a bone
    0

    Default Re: Locking down the username to the computer login name?

    Quote Originally Posted by Steve_Stafford View Post
    ...

    The scripts that David and David shared here to create local files include a portion to find and remove the username parameter so it remains blank prior to opening the project file.
    Scripts??

    Little help please. Can someone please clarify how I can get the user name to become consistent with the windows login name. I have multiple users on the same machine.

  4. #4
    Revit Forum Manager Steve_Stafford's Avatar
    Join Date
    2001-12
    Location
    Irvine, CA
    Posts
    7,567
    Login to Give a bone
    0

    Default Re: Locking down the username to the computer login name?

    How many users are you dealing with?

    If your users only log on their own computers you can edit the Revit.ini file and remove the specific username that appears next to Username. Revit will just use whichever login identity is currently in use on the computer.

    If you are using worksets then you might consider the Local File scripts that I mentioned in the previous post. There are separate threads by both of them for their routines. They are more involved than a simple reply here can do just for. Read them.
    Attached Images Attached Images

  5. #5
    I could stop if I wanted to TroyGates's Avatar
    Join Date
    2015-08
    Location
    Irvine, CA
    Posts
    281
    Login to Give a bone
    0

    Default Re: Locking down the username to the computer login name?

    We have computers in all of our conference rooms that people can log into and run Revit for VDC meetings. To prevent someone from changing the username and other ini settings, we have removed all editing rights to the Revit.ini file except for some IT admins. This prevents Revit from saving anything to the Revit.ini.

    To do this right-click the Revit.ini file and remove "modify" security rights to the file for everyone but the IT admins. Now Revit can't change the file as it doesn't have rights to.

  6. #6
    AUGI Addict
    Join Date
    2001-12
    Posts
    1,714
    Login to Give a bone
    0

    Default Re: Locking down the username to the computer login name?

    Quote Originally Posted by Steve_Stafford View Post
    How many users are you dealing with?

    If your users only log on their own computers you can edit the Revit.ini file and remove the specific username that appears next to Username. Revit will just use whichever login identity is currently in use on the computer.

    If you are using worksets then you might consider the Local File scripts that I mentioned in the previous post. There are separate threads by both of them for their routines. They are more involved than a simple reply here can do just for. Read them.
    Steve, does it work that way now? I thought if the User was blank it got filled in with the first user to launch Revit, and that was used from then on out, no matter who was logged in?

    Prsonally I want it to automatically use both the logged in user name AND the machine name. So if a user makes locals on two machines (doing renderings or walk thru's for example) they don't have two connections to central with the same credentials. Seems like it should be trivial to do, since Revit can obviously access the windows user name, it can also access the machine name, and it could use both for every session, rather than populating an INI.

    Gordon

  7. #7
    Revit Forum Manager Steve_Stafford's Avatar
    Join Date
    2001-12
    Location
    Irvine, CA
    Posts
    7,567
    Login to Give a bone
    0

    Default Re: Locking down the username to the computer login name?

    Yes...that's been my observation, uses whichever person is logged into the computer as long as the username field has not been altered in the Options dialog. If changed, it sticks to the value someone enters in the username field regardless of logon user.

  8. #8
    Certifiable AUGI Addict twiceroadsfool's Avatar
    Join Date
    2006-01
    Location
    ---
    Posts
    4,516
    Login to Give a bone
    0

    Default Re: Locking down the username to the computer login name?

    It doesnt handle the "multiple computers with one user" scenario, but the easiest way around this ive seen, is to have a Batch Script that ones at User log on, that replaces the Revit.ini file with one that has the "username=" line blank, as Steve demonstrated.

    If the .ini file is replaced at each users log on, it will get that users Windows log on. Of course, it will also replace whatever options are still being controlled by the .ini, though theyre fewer this year than last.

Similar Threads

  1. Tool Palette copy from one computer to another computer
    By Binu Mathew in forum AutoCAD General
    Replies: 4
    Last Post: 2009-01-16, 05:01 PM
  2. Migrating preferences/settings from computer to computer
    By P.Lane in forum AutoCAD Customization
    Replies: 6
    Last Post: 2006-08-13, 01:07 PM
  3. Getting Username
    By Bill Debevc in forum Revit - API
    Replies: 5
    Last Post: 2006-04-29, 07:34 PM
  4. Anyone else having the DWF Viewer locking up their computer?
    By dfuehrer in forum DWF Viewer - General
    Replies: 1
    Last Post: 2006-03-09, 10:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •