Giving Local Admin Rights when Local Admin Password has been Lost

Giving Local Admin Rights when Local Admin Password has been Lost

By Chris Randles



Editor's Note: With ZENworks, there is often more than one way to accomplish an objective. In this case, another option would be to use the same technique to change the administrator's password, as shown in this Microsoft article.



This tip is for MS Windows Administrators in a ZENworks for Desktops environment.


How to give full local administrator rights to a local workstation account when the local Administrator's password has been lost, and without having access to an Administrative-level Domain account, a ZENworks dynamic local user policy (e.g. a domain workstation), or a third party utility (such as ERD commander).



Solution



  1. Create a ZENworks application object using ConsoleOne in the location of choice (in this case the object name chosen was 'Elevate'. Make sure your ConsoleOne has the correct version of the ZENworks for Desktops snapins for the version of ZENworks being used in your environment.


  2. Enter the information shown in the screenshot to the 'Run Options – Application' tab.




  3. randles_1_0.gif



    Click to enlarge.




  4. On the 'Run Options – Environment' tab, set the Execution security level to 'Run as unsecure system user'.




  5. randles_2_0.gif



    Click to enlarge.




  6. All other settings can be left at default.


  7. Associate the package to the Novell account you will be using from the problem workstation.


  8. At the problem workstation, login to Novell and from the Novell Application Launcher 'launch' the application created. This will add the local windows user account to the local Administrators group.


  9. Typing 'net localgroup administrators' at a DOS prompt should now show the logged in user as being a member of the Administrators group. (Note that the account will not have administrative access until a logout and login has been performed.)


  10. Perform a logout on the workstation, then login again using the same local Windows account used previously.


  11. The Windows account will now have full rights to the workstation and this will allow the Administrator's account password to be changed.


  12. If you do not want the current logged-in Windows account to retain Administrative access to the local workstation you will need to remove that account from the Administrators group. If desired, you could create another ZENworks application which will remove the currently logged-in user from the Administrators group.



Environmental Factors and Pre-Requisites



  • The target workstations must have a working Novell client and ZENworks Agent installed.


  • This solution should work on any Windows2000 or WindowsXP workstation.


  • This solution should work on any workstation where the Novell Client is v4.83 > 4.9x


  • This solution should work in any ZENworks for Desktops environment from v3.x > v7.x and where the installed ZENworks agent is a correct version match for the environment.



Labels (1)

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Comments
Another way is to make a User Policy w/ZENworks Dynamic Local User for a technician account with Administrator Rights and check Volatile. This will allow the technician to log in Locally with full rights, fix most anything locally (even modify local user rights) and log off w/o leaving behind the technicians account.
1) Remote Execute - runs as localsystem and gives permissions to either perform the commands above or a net user command to change the administrator's password

2) Run the net user command in the same way as above - great for bulk password changing of your local administrator passwords if you think it has been leaked...
Top Contributors
Version history
Revision #:
2 of 2
Last update:
‎2020-02-18 22:41
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.