Monday, 7 October 2013

Unable to delete a DC - dcpromo error

Deleting a DC is most of the time a rather straightforward procedure but a few weeks ago i received the error message below trying to uninstall a customers DC.

"The operation failed because: the attempt at remote directory server serverx.customerdomain.local to remove directory server CN=ServerX,CN=Servers,CN=customerdomain,CN=Sites,CN=Configuration...
was unsuccessful. "Access is denied"

The account which i was running dcpromo with was both Domain Admin and Enterprise Admin, i could ping the other DC's, i checked with ADSI edit that my account had the rights to delete the DC. Everything seemed ok.

So what was the problem? I had a look in Sites and Services and found the solution to my problem. The DC had the checkbox "Protect object from accidental deletion" ticked. I unchecked the tickbox and could then run the dcpromo without any problems.

Friday, 4 October 2013

Windows Server 2008 R2 DHCP problem "The parameter is incorrect"

A few weeks ago I was decommissioning a domain controller which had the DHCP server role installed. When I tried to unauthorize the server I received the following error:

"The parameter is incorrect"














  • I verified that the server was authorized in Active Directory
  • I verified that I had sufficient rights to unauthorize the server

These are the steps that solved the problem:
  1. Stop DHCP service
  2. Delete the DHCP server object from the DHCP console
  3. Re-add the DHCP server to the DHCP console
  4. Start the DHCP service
  5. Try again to unauthorize the DHCP server

Tuesday, 28 August 2012

Are Vmware afraid of Hyper-V 3.0?

For some odd reason skips now Vmware their yelled at pricing model, just as Microsoft releases Windows Server 2012. Interesting... :) (article in Swedish)

http://www.idg.se/2.1085/1.462441/vmware-slopar-utskalld-prismodell

Monday, 21 May 2012

5 seconds of fame

A nice series of articles about System Center 2012 where i have a comment about news and enhanced integration in SCVMM 2012. (article in Swedish)

http://techworld.idg.se/2.2524/1.448493/system-center-skolan-lektion-2-en-narmare-titt

Tuesday, 21 February 2012

How to route between internal networks in Hyper-V

If you have a Hyper-V lab environment and want to make it a little more like a corporate network then you might want to set up multiple networks and routing between them. But how would you accomplish that? There are different ways to solve it as a Vyatta router (or any other small Linux firewall) or perhaps a Forefront TMG. The way that I chose and that's very simple, you can read about on the following page.

http://www.infotechguyz.com/server2008/hypervrouting.html

Monday, 20 February 2012

How to configure NTP server for Windows Server 2008 R2

To configure the NTP server in Windows is not exactly complicated, but because you get various different suggestions when googling I thought I would just write a short tutorial that I know works. Instruction is verified on Windows Server 2008 R2. What is needed is essentially three short lines:

w32tm /config /manualpeerlist:pool.ntp.org,0x8 /syncfromflags:MANUAL
net stop w32time
net start w32time

Don't forget to disable time sync if you have virtual server.

Which NTP Server should you choose? Or should you choose several? Yes, redundancy is never wrong, and considering how easy it is to set up several, it is preferred. SP Technical Research Institute provides a free time sync service.

So, tell me. Give me an example. Coming below ...
Run the following in a elevated command prompt:

w32tm /config /manualpeerlist:"ntp1.sp.se,0x8 ntp2.sp.se,0x8" /syncfromflags:MANUAL
net stop w32time
net start w32time


P.S. One tip is of course to check the system log afterwards to see that the time sync seems to work.

Thursday, 15 September 2011

How to export a list of users from an Active Directory group

Every now and then you will come across these little annoying problems while working with Active Directory, which should be easy to solve but requires special tools, for example, that there is no way to export all members of a group in Active Directory Users & Computers . That's when "dsquery" and "dsget" comes into the picture. Here is how to list all members of a particular group.

List all members of the group "MYGROUP":

dsquery group -name MYGROUP | DSGET group -members

You can always send the results to a text file by adding  "> mygroup-members.txt" in the end.