Unable to enable user in Lync Server
Get-ADUser -LDAPFilter "(objectcategory=person)(samaccountname=*)(admincount=1)"
or for a more user friendly output:
Get-ADUser -LDAPFilter "(admincount=1)" | select name
To find all groups in a domain that are protected by AdminSDHolder, type:
Get-ADGroup -LDAPFilter "(objectcategory=group)(admincount=1)"
or for a more user friendly output:
Get-ADGroup -LDAPFilter "(admincount=1)" | select name
Removing the admincount setting
If the user is not supposed to be in a Protected Group, remove the groups that are nested members of the Protected Groups.
Then change the admincount to 0 on the user account, either vi ADUC and the Attribute Editor tab, or via the script available here:
http://support2.microsoft.com/?id=817433
Last thing to do is to activate security inheritance on the user account.
The procedure is almost the same when fixing a group, though you need to use ADSIEdit to remove the admincount setting instead of ADUC.
Time Configuration in a Windows domain
To configure the Domain Controller with the PDC Emulator FSMO to another time source, run:
w32tm /config /manualpeerlist:PEERS /syncfromflags:manual /reliable:yes /update
Please set for PEERS the time source as listed above, either with it’s ip address or DNS name. If more then one is needed separate them with a space in between and don't forget the quotes: "time.domain.com time1.domain.com"
Internet Time servers you can find here: http://www.pool.ntp.org/
Tto configure a domain computer for automatic domain time synchronization, run:
w32tm /config /syncfromflags:domhier /update
net stop w32time
net start w32time
To reconfigure the previous PDC Emulator, in case of transferring/seizing the FSMO to another Domain Controller, run:
w32tm /config /syncfromflags:domhier /reliable:no /update
net stop w32time
net start w32time
If you have to reconfigure a Windows 2000 Server Domain Controller, the steps are different after transferring/seizing the PDC Emulator role to another Domain Controller:
- you have to modify the "Type" value to "Nt5Ds" without the quotes under this registry key:
HKLM\ SYSTEM\ CurrentControlSet\ Services\ W32Time\ Parameters\
If you have problems with the time service configuration, because too many changes where done in the registry or you like start fresh on a computer, then you can reset the time service to a default state the following way. Make sure to use an elevated command prompt, to have full administrative permissions. Then type in the following commands:
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
To check Domain Controller synchronization, run:
w32tm /monitor
To check a domain computers configuration, run:
w32tm /query /status