Skip to content

The computer did not resync because no time data was available

Windows Server 2003 Domain Controller with PDC emulator role. Trying to get it to sync with an external time source.

I added the time source with the following command:

w32tm /config /manualpeerlist:10.10.10.10,0×1 /syncfromflags:manual /reliable:yes /update

When I tried to sync using the command

w32tm /resync

It gave this result:

The computer did not resync because no time data was available

 

Checking the event log I found this:

Event ID 12:

Event Type:        Warning

Event Source:        W32Time

Event Category:        None

Event ID:        12

Date:

Time:

User:                N/A

Computer:        COMPUTERNAME

Description:

Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the PDC emulator for the domain at the root of the forest, so there is no machine above it in the domain hierarchy to use as a time source. It is recommended that you either configure a reliable time service in the root domain, or manually configure the PDC to synchronize with an external time source. Otherwise, this machine will function as the authoritative time source in the domain hierarchy. If an external time source is not configured or used for this computer, you may choose to disable the NtpClient.

 

The problem was that I had used 0x1 to set up the time source. Should have used 0x8

Ran this command:

 

w32tm /config /manualpeerlist:10.10.10.10,0x8 /syncfromflags:manual /reliable:yes /update

 

Worked fine.

 

Advertisements

Mystery Unread email in Outlook 2013

I had a mystery unread email in my Inbox.

I was unable to find it anywhere and if I clicked on Unread Mail it was empty.

To fix:

1. Change View from All to Unread:

Capture1

2. There should be a link called Find more on server:

Capture2

Clicking on this link found the mystery unread mail and I was able to get rid of it.

Toshiba R830 FN key not working

When troubleshooting a problem on a Toshiba R830 I used msconfig to prevent startup items from loading. When I was finished troubleshooting I switched back on the startup items but found that FN key no longer worked even after rebooting. This prevented me from switching on the wireless network.

Tried repairing the Toshiba Value Added Package but no joy.

The Flash Cards Utility controls the FN key. So I navigated to:

C:\Program Files\TOSHIBA\FlashCards

and launched the TCrdMain.exe file.

This resolved the problem, FN key works again.

Drive mapping fails. GPO Error Code: 0x80070055

GPO was set to map a user drive to F: but it failed.

GP Results shows “Failed GPO Error Code: 0x80070055”

Turns out the user had connected his phone via USB prior to logging in. The SD card slot on his phone had taken drive F: but because there was no card inserted it didn’t show up in Windows explorer.

Disconnected the phone and logged in, F: drive mapped fine.

 

List an AD user’s group membership

Here’s an easy way to list an Active Directory user’s group membership using the dsget and dsquery AD commands.

These commands are only available on your Windows 7 machine if you have installed the Remote Server Administration Tools for AD.

The dsget command requires the UserDN. Use the dsquery command to get the UserDN.

Open a powershell console.

Type:

dsquery user -name “Joe Bloggs”

This will give you back the UserDN:

“CN=Joe Bloggs, OU=Head Office,OU=Users,DC=company, DC=local”

Copy this UserDN and paste it into the following dsget command:

dsget user  “CN=Joe Bloggs, OU=Head Office,OU=Users,DC=company, DC=local” -memberof

This will display the DNs of all the groups that user is a member of.

You can export this to a text /csv file using >C:\joebloggs.txt at the end of the dsget command.

An error occurred while accessing the DHCP database. Look at the DHCP server event log for more information on this error.

When trying to add a reservation to one of the scopes in DHCP I got this error:

“An error occurred while accessing the DHCP database. Look at the DHCP server
event log for more information on this error.”

The machine for which I had been adding the reservation had an old reservation that had been removed.

I suspected that the removal was not clean and that there were remnants preventing me from adding a new reservation.

To confirm this I used netsh for DHCP:

Logged into the DC and opened a command prompt with elevated privileges:

Typed the following commands:

netsh

netsh> dhcp

netsh dhcp> server

netsh dhcp server> scope 10.20.30.0

Changed the current scope context to 10.20.30.0 scope.

netsh dhcp server scope> show reservedip

This lists all the reserved ips for the scope. Found the origianl reservation for the pc that had supposedly been removed. This reservation was not showing in the GUI version but was preventing a new reservation for this mac address being added.

netsh dhcp server scope> delete reservedip 10.20.30.xx e2e3b6121f58

Command completed successfully

After this I was able to add a new reservation via the DHCP console and there were no errors.

Windows Server 2008 Enterprise – SAN disks Offline

Vranger installed on a Windows Server 2008 enterprise machine. Backing up a VSphere 5 environment.

Backups work fine. Restores complete successfully. However if I tried to boot any VM after restoring it I got “Operating system not found”.

Having a look in Windows Disk Manager I can see all the LUNs on the SAN but they are marked Offline with the message “Disk offline because of a policy set by the administrator”

In Windows Server 2008 Enterprise edition SAN disks are set to Offline by default.

To confirm this have a look at the default policy:

DISKPART> san

SAN Policy: Offline Shared

DISKPART>

Using Disk Manager made each of the Luns Online.

Vranger restores complete and VMs boot fine.