Re-removing domain member virtual machine

I am converting a WIndows 7 Active Directory member workstation to a Virtual Machine. So, I've backed up the workstation and removed it from the domain. I'm now joining a Linux workstation to the domain, then restoring the saved WIN7 to a virtual machine hosted on the linux machine? Confused yet?

When I fire up the Win7 VM, will it still think it is part of the domain? It will have a different hostname ... Is this nothing to worry about or do I have to do something on the Win7 restored image to make in know it's NOT part of the domain?
LVL 1
MarkAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom CieslikIT EngineerCommented:
If you did backup workstation W7 before you've removed it from domain, after restore workstation will loose trust with domain since domain will have no information about this workstation (You've removed it)
For DC there is no difference if this is a real workstation or if this a virtual workstation.

Now you must know local user (part of local administrator group) password, remove workstation from domain (on workstation itself), login as local user, and add workstation back to domain.
Make sure you know local user login name and password, if not then maybe you going to be able run workstation for the first time using domain credentials (disconnect network to not allow any policy and domain trust synchronize) , change password for local user or if you don't have it , enable local administrator and change password for him, You going to need it.


I thin I've explained this clear.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
8046586Commented:
I will only re-word Tom's explanation. Delete the old PC name in AD. Once you will restore the PC in VM, then log on with local PC account, Right-click My Computer=>Properties=>Change Settings=>Change=>move it to Member to Workstation=>Apply=>move it to Domain=>Apply=>Restart.
Shaun VermaakTechnical SpecialistCommented:
Or without deleting computer account, run
Reset-ComputerMachinePassword, reset account or manually set password to sAMAccountName$
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/reset-computermachinepassword?view=powershell-5.1
MarkAuthor Commented:
Thanks all for your input. Here's what I ended up doing. I had already joined the new Linux workstation to the domain using the old WIN7 workstation name (probably not clear in my OP). I restored the Win7 to the VM and tried to change to computer name, but could not as it required domain admin authorization. So, I had to un-join the workstation from the domain. Then I was able to change the computer name, etc. Back on the Linux workstation, it was no longer connected to the domain (the Linux and Win7 had the same names). All I had to do was rejoin the Linux workstation to the domain and all was well. I should have removed the Win7 from the domain and changed its computer name before doing the image backup.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Virtualization

From novice to tech pro — start learning today.