Skip to main content

Featured

Health Supplements you should be taking

Hello once again! Here is a list of supplements you should likely be taking. Note that this is not medical advice, and some supplements are tolerated better by some people than others due to health / genetic factors. Generally, taking excessive amounts of supplements do not increase benefits, so stick to reasonable dosages. There is some variation between male and female in terms of requirements, I'm more familiar with male physiology and supplementing. There are some supplements I will mention that are not OTC, or are special prescription, which I may or may not take myself, and are not freely available. These supplement types are generally more expensive and less accessible, but I will discuss them also. Ideally you would start supplementing in your mid to late 20's. Most people only discover vitamins/supplements later in life when they begin to feel run-down, and by that point a lot of 'damage' has already been done to your body, which is accelerated with life...

Windows Time Service


Time. Particularly important with servers. It is amazing how frequently servers/workstations and other imbedded devices have their time not set, or set incorrectly. These incorrect time settings can lead to very strange behaviour in terms of side-effects, including authentication failures etc.Windows now provides w32tm to configure the Windows Time service.


USAGE:

C:\Windows\System32>w32tm
w32tm [/? | /register | /unregister ]
  ? - this help screen.
  register - register to run as a service and add default
    configuration to the registry.
  unregister - unregister service and remove all configuration
    information from the registry.

w32tm /monitor [/domain:]
               [/computers:[,[,...]]]
               [/threads:] [/ipprotocol:<4>] [/nowarn]
  domain - specifies which domain to monitor. If no domain name
    is given, or neither the domain nor computers option is
    specified, the default domain is used. This option may be
    used more than once.
  computers - monitors the given list of computers. Computer
   names are separated by commas, with no spaces. If a name is
    prefixed with a '*', it is treated as an AD PDC. This option
    may be used more than once.
  threads - how many computers to analyze simultaneously. The
    default value is 3. Allowed range is 1-50.
  ipprotocol - specify the IP protocol to use. The default is
    to use whatever is available.
  nowarn - skip warning message.

w32tm /ntte
  Convert a NT system time, in (10^-7)s intervals from 0h 1-Jan 1601,
  into a readable format.

w32tm /ntpte
  Convert an NTP time, in (2^-32)s intervals from 0h 1-Jan 1900, into
  a readable format.

w32tm /resync [/computer:] [/nowait] [/rediscover] [/soft]
  Tell a computer that it should resynchronize its clock as soon
  as possible, throwing out all accumulated error statistics.
  computer: - computer that should resync. If not
    specified, the local computer will resync.
  nowait - do not wait for the resync to occur;
    return immediately. Otherwise, wait for the resync to
    complete before returning.
  rediscover - redetect the network configuration and rediscover
    network sources, then resynchronize.
  soft - resync utilizing existing error statistics. Not useful,
    provided for compatibility.

w32tm /stripchart /computer: [/period:]
    [/dataonly] [/samples:] [/packetinfo] [/ipprotocol:<4>]
  Display a strip chart of the offset between this computer and
  another computer.
  computer: - the computer to measure the offset against.
  period: - the time between samples, in seconds. The
    default is 2s
  dataonly - display only the data, no graphics.
  samples: - collect samples, then stop. If not
    specified, samples will be collected until Ctrl-C is pressed.
  packetinfo - print out NTP packet response message.
  ipprotocol - specify the IP protocol to use. The default is
    to use whatever is available.

w32tm /config [/computer:] [/update]
    [/manualpeerlist:] [/syncfromflags:]
    [/LocalClockDispersion:]
    [/reliable:(YES|NO)]
    [/largephaseoffset:]
  computer: - adjusts the configuration of . If not
    specified, the default is the local computer.
  update - notifies the time service that the configuration has
    changed, causing the changes to take effect.
  manualpeerlist: - sets the manual peer list to ,
    which is a space-delimited list of DNS and/or IP addresses.
    When specifying multiple peers, this switch must be enclosed in
    quotes.
  syncfromflags: - sets what sources the NTP client should
    sync from. should be a comma separated list of
    these keywords (not case sensitive):
      MANUAL - sync from peers in the manual peer list
      DOMHIER - sync from an AD DC in the domain hierarchy
      NO - sync from none
      ALL - sync from both manual and domain peers
  LocalClockDispersion: - configures the accuracy of the
    internal clock that w32time will assume when it can't acquire
    time from its configured sources.
  reliable:(YES|NO) - set whether this machine is a reliable time source.
    This setting is only meaningful on domain controllers.
      YES - this machine is a reliable time service
      NO - this machine is not a reliable time service
  largephaseoffset: - sets the time difference between
    local and network time which w32time will consider a spike.

w32tm /tz
  Display the current time zone settings.

w32tm /dumpreg [/subkey:] [/computer:]
  Display the values associated with a given registry key.
  The default key is HKLM\System\CurrentControlSet\Services\W32Time
    (the root key for the time service).
  subkey: - displays the values associated with subkey
    of the default key.
  computer: - queries registry settings for computer .

w32tm /query [/computer:]
    {/source | /configuration | /peers | /status}
    [/verbose]
  Display a computer's windows time service information.
  computer: - query the information of . If not
    specified, the default is the local computer.
  source: display the time source.
  configuration: display the configuration of run-time and where
    the setting comes from. In verbose mode, display the undefined
    or unused setting too.
  peers: display a list of peers and their status.
  status: display windows time service status.
  verbose: set the verbose mode to display more information.

w32tm /debug {/disable | {/enable /file: /size: /entries:
    [/truncate]}}
  Enable or disable local computer windows time service private log.
  disable: disable the private log.
  enable: enable the private log.
    file: - specify the absolute filename.
    size: - specify the maximum size for circular logging.
    entries: - contains a list of flags, specified by number and
      seperated by commas, that specify the types of information that
      should be logged. Valid numbers are 0 to 300. A range of numbers
      is valid, in addition to single numbers, such as 0-100,103,106.
      Value 0-300 is for logging all information.
  truncate: truncate the file if it exists.

C:\Windows\System32>


EXAMPLES:


C:\WINDOWS\system32>w32tm /query /status
Leap Indicator: 0(no warning)
Stratum: 5 (secondary reference - syncd by (S)NTP)
Precision: -6 (15.625ms per tick)
Root Delay: 0.3588715s
Root Dispersion: 1.6956445s
ReferenceId: 0x0A2DFB16 (source IP:  10.45.251.22)
Last Successful Sync Time: 2/11/2015 1:07:37 PM
Source: SERVERDC4.corp.somecomp.org
Poll Interval: 15 (32768s)


C:\WINDOWS\system32>w32tm /tz
Time zone: Current:TIME_ZONE_ID_UNKNOWN Bias: -480min (UTC=LocalTime+Bias)
  [Standard Name:"W. Australia Standard Time" Bias:0min Date:(unspecified)]
  [Daylight Name:"W. Australia Daylight Time" Bias:-60min Date:(unspecified)]

C:\WINDOWS\system32>

C:\WINDOWS\system32>w32tm /query /configuration
[Configuration]

EventLogFlags: 2 (Local)
AnnounceFlags: 10 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 10 (Local)
MaxPollInterval: 15 (Local)
MaxNegPhaseCorrection: 4294967295 (Local)
MaxPosPhaseCorrection: 4294967295 (Local)
MaxAllowedPhaseOffset: 300 (Local)

FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 1 (Local)
UpdateInterval: 30000 (Local)


[TimeProviders]

NtpClient (Local)
DllName: C:\WINDOWS\system32\w32time.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
CrossSiteSyncFlags: 2 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 3600 (Local)
Type: NT5DS (Local)

VMICTimeProvider (Local)
DllName: C:\WINDOWS\System32\vmictimeprovider.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
NtpServer (Local)
DllName: C:\WINDOWS\system32\w32time.dll (Local)
Enabled: 0 (Local)
InputProvider: 0 (Local)


C:\WINDOWS\system32>w32tm /dumpreg

Value Name             Value Type          Value Data
--------------------------------------------------------

DisplayName            REG_SZ              @%SystemRoot%\system32\w32time.dll,-200
ImagePath              REG_EXPAND_SZ       %SystemRoot%\system32\svchost.exe -k LocalService
Description            REG_SZ              @%SystemRoot%\system32\w32time.dll,-201
ObjectName             REG_SZ              NT AUTHORITY\LocalService
ErrorControl           REG_DWORD           1
Start                  REG_DWORD           3
Type                   REG_DWORD           32
ServiceSidType         REG_DWORD           1
RequiredPrivileges     REG_MULTI_SZ        SeAuditPrivilege, SeChangeNotifyPrivilege, SeCreateGlobalPrivilege, SeSystemTimePrivilege
FailureActions         REG_BINARY          80510100000000000000000003000000140000000100000060EA000001000000C0D401000000000000000000


C:\WINDOWS\system32>w32tm /query /peers /verbose
#Peers: 1

Peer: SERVERDC4.corp.somecorp.org
State: Active
Time Remaining: 18415.1477639s
Mode: 3 (Client)
Stratum: 4 (secondary reference - syncd by (S)NTP)
PeerPoll Interval: 15 (32768s)
HostPoll Interval: 15 (32768s)
Last Successful Sync Time: 3/11/2015 7:19:52 AM
LastSyncError: 0x00000000 (Succeeded)
LastSyncErrorMsgId: 0x00000000 (Succeeded)
AuthTypeMsgId: 0x0000005B (NtDigest )
Resolve Attempts: 0
ValidDataCounter: 8
Reachability: 255

C:\WINDOWS\system32>w32tm /query /status /verbose
Leap Indicator: 0(no warning)
Stratum: 5 (secondary reference - syncd by (S)NTP)
Precision: -6 (15.625ms per tick)
Root Delay: 0.4368744s
Root Dispersion: 0.8876993s
ReferenceId: 0x0A2DFB16 (source IP:  10.45.251.22)
Last Successful Sync Time: 3/11/2015 7:20:09 AM
Source: SERVERDC4.corp.somecorp.org
Poll Interval: 15 (32768s)

Phase Offset: -0.0028613s
ClockRate: 0.0156001s
State Machine: 2 (Sync)
Time Source Flags: 2 (Authenticated )
Server Role: 0 (None)
Last Sync Error: 0 (The command completed successfully.)
Time since Last Good Sync Time: 14409.8748353s


C:\WINDOWS\system32>


Comments

Popular Posts