Move VHD from one Hyper-V VM to another

I have two VMs running on Hyper-V, one is a Win2008R2 server with a drive dedicated as a file share. I'd like to detach that VHD from the server and move the VHD to another VM running Win2012R2. If I do that will the share/security transfer over?
Who is Participating?

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

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.

Lee W, MVPTechnology and Business Process AdvisorCommented:
The ACLs are based on SIDs so as long as the two VMs are members of the same domain, yes, the security will transfer.  If they are in different domains without a trust or one or both are workgroup configured, then no, the security won't translate.  The ACLs will still be there, but the system will be unable to identify which users they apply to.

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
cwhitmore88Author Commented:
Thanks Lee. They are both on the same domain so the rights shouldn't be an issue.
Do you know of any compatibility issues between Win2008R2 and Win2012R2 that would cause the problems transferring the drive from one OS to another?
Cliff GaliherCommented:
Clarification. The NTFS security will transfer over. Your question specifically asked about the share. Shares (and their security ACLs) will *not* transfer over. To your follow-up, 2012R2 supports all 2008 r2 ntfs festures, so it'll move fine.
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Lee W, MVPTechnology and Business Process AdvisorCommented:
Going from 2008 to 2012 shouldn't be an issue.  Going from 2012 to 2008 has concerns if you're using the VHDX format (2008 cannot)
cwhitmore88Author Commented:
Got it. Thanks for your help.
Lee W, MVPTechnology and Business Process AdvisorCommented:
True about the shares - I wasn't thinking about them.  The NTFS security transfers - the shares are a part of the server configuration and not the file - they will not.  However, you can export the registry key for LanmanServer service and import it and preserve the share config that way (I would only do this as a test first and would edit the exported file so I'm ONLY importing the settings for that share).
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

From novice to tech pro — start learning today.