It may happen to receiveDsRemoveDsServerW error 0x5(Access is denied.) in NTDSutil. Here’s my short recipe:
1. Ensure your account has domain admin rights
2. Ensure CMD/NTDSUtil was started with elevated rights (RunAs Administrator)
3. Open Active Directory Sites & Services:
- Navigate to the site/server you want to cleanup
- Right click on the “NTDS Settings” object > Properties > Object
- Ensure “Protect object from accidential deletion” is unchecked
Saves hours of debugging 🙂
Just for reference – the most comprehensive list of services and related network ports in Windows I’ve ever seen:
Service overview and network port requirements for Windows
Stack Overflow used to run an interesting project – Stack Overflow Documentation. It is currently shut down, but thanks to it we now have interesting free books like “PowerShell™ Notes for Professionals book“:
Please keep in mind it was created by SO content that may not be very accurate, like what I’d recently discovered:Are the cmdlets in a pipeline executing in parallel?
Anyway I’d recommend it since it contains an essentials compilation of PowerShell common tasks and language specifics.Good reading indeed!
There are also other books that may catch your interest:http://books.goalkicker.com/
When you try to add a new vSwitch that is bound to a physical adapter in Hyper-V, you may receive the following error:
Virtual Switch Manager for SOME-SERVER
Error applying Virtual Switch Properties changes
Failed while adding virtual Ethernet switch connections.
External Ethernet adapter 'Intel(R) 82574L Gigabit Network Connection' is already bound to the Microsoft Virtual Switch protocol.
In this case go to network settings and find the affected adapter. Then in Properties remove the checkbox that binds Microsoft Virtual Switch protocol and press OK.
Try to create the vSwitch again.