Solved

Local admin account

Posted on 2011-09-22
10
389 Views
Last Modified: 2012-08-14
Hi I have a windows 7 machine that lost connection to the domain and we can therefor not logon to it. I need to enable the (Hidden) local administrator account remotely via command line.

Please help with the command line script to enable the account reometly from a different machine
0
Comment
Question by:h3nnys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 11

Expert Comment

by:X_layer
ID: 36579541
Try to run this command with psexec:
psexec \\machine net user administrator /active:yes

Open in new window

0
 
LVL 4

Author Comment

by:h3nnys
ID: 36579606
got the error saying:

couldn't access \\zolekace
the trust relationship between this workstation and the primary DC failed

Any suggestions ?
0
 
LVL 11

Expert Comment

by:X_layer
ID: 36579619
I hope that you've set administrator password. Then you can start computer in safe mode and login with administrator account. Then activate admin account with this command or trough MMC.
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 95

Expert Comment

by:John Hurst
ID: 36580118
Can you temporarily add the computer back to its domain for the sole purpose of making a new local account that is a member of the adminstrators group?   .... Thinkpads_User
0
 
LVL 4

Author Comment

by:h3nnys
ID: 36580248
I can not logon to the Workstation at all I have NO access  to that pc and the only way to add it to the domain is through the local admin account so your question does not make much sense to me
0
 
LVL 11

Expert Comment

by:X_layer
ID: 36580261
Did you set password for admin account? Did you tried boot into safe mode and logon?
0
 
LVL 95

Expert Comment

by:John Hurst
ID: 36580266
Your first post says the computer lost its connection to the domain. So I worded my post badly. What I was hoping was that you could reconnect it and it would connect itself to the domain. ... Thinkpads_User
0
 
LVL 95

Expert Comment

by:John Hurst
ID: 36580290
If you have no access and safe mode does not work, boot with a bootable CD, recover what information you need on a USB key, and then re-install Windows 7 from the media that came with the PC or from its recovery partition.

... Thinkpads_User
0
 
LVL 23

Accepted Solution

by:
yo_bee earned 500 total points
ID: 36580297
Use the last user that was able to logon.  
1: I would disconnect your computer from the network and try to logon as this user.
2: The credentials should be cached.  
3: Once in reconnect the network wire or wifi.
4: Then try to rejoin the domain with the domain admin account.
5: This should re-establish the trust.

0
 
LVL 23

Expert Comment

by:yo_bee
ID: 36580598
Note:
If you are running Win7 you can take advantage of GPP's and set the Local Administrators password from Group Policys.  This will help you standardize the network clients.

http://www.windowsecurity.com/articles/Top5-Security-Settings-Group-Policy-Windows-Server-2008.html  (Focus on the user not the group)

This is the link that also has a script that can me used at logon.
http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/b1e94909-bb0b-4e10-83a0-cd7812dfe073/
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why is a PSO not being set for users 2 36
How to install USMT 11 143
ost file to pst 10 229
how to export this list 4 109
Hallo! I guess almost every Windows Administrator must have got stumped with this question "Where does WINDOWS store a users cached credentials? Every user who had once logged onto a Server/Desktop while it was connected to the domain could sti…
by Nathan Brom/Bromy2004 Introduction There are numerous websites out there for any different type of program you can imagine.  Of those, you'll need to decide which ones are legitimate and aren't trying to steal your money or infect your comput…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

752 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