Symptoms:
Cause:
Possibly by multi-homed network card
Solution:
dnscmd servername /ResetListenAddresses
Tuesday, March 19, 2019
Wednesday, August 1, 2018
Outlook: IMAP - The account name is already being used. Choose another name whwn channging account option
Symptoms:
Changing Outlook IMAP account / reconfigure or enabling "Purge deleted messages when leaving IMAP folders" failed with
"The account name is already being used. Choose another name"
Cause:
Corrupt Outlook Profile
Solution:
Recreate Outlook Profile
Note:
There is quick way to enable "Purge deleted messages when leaving IMAP folders" using regedit (may applicable for other option) without recreate profile
HKEY_CURRENT_USER/Software\Microsoft\Windows NT\Current Version\Windows Messaging Subsystem\Profiles\Outlook\9375cff0413111d3B88A00104B2A6676 (may be different, find with multiple subkeys).
In every subkey check by double clicking "Account Name" to get readable account
create/set DWord key EnablePurgeOnSwitch value = 1
Changing Outlook IMAP account / reconfigure or enabling "Purge deleted messages when leaving IMAP folders" failed with
"The account name is already being used. Choose another name"
Cause:
Corrupt Outlook Profile
Solution:
Recreate Outlook Profile
Note:
There is quick way to enable "Purge deleted messages when leaving IMAP folders" using regedit (may applicable for other option) without recreate profile
HKEY_CURRENT_USER/Software\Microsoft\Windows NT\Current Version\Windows Messaging Subsystem\Profiles\Outlook\9375cff0413111d3B88A00104B2A6676 (may be different, find with multiple subkeys).
In every subkey check by double clicking "Account Name" to get readable account
create/set DWord key EnablePurgeOnSwitch value = 1
Tuesday, July 31, 2018
Mikrotik RB750GL failed to create backup
Symptoms:
Mikrotik RB750GL Backup gave error
echo: backup,critical error creating backup file: could not read all configuration files
and small size of .backup file
Cause:
Solution:
Mikrotik RB750GL Backup gave error
echo: backup,critical error creating backup file: could not read all configuration files
and small size of .backup file
Cause:
Solution:
[admin@MikroTik] >/ip ssh regenerate-host-key
This will regenerate current SSH host keys, yes? [y/N]:
y -> go with Ctrl C
[admin@MikroTik] > -> wait...
13:12:28 echo: ssh,critical SSH host key regenerated!
[admin@MikroTik] >
[admin@MikroTik] >/system reboot -> if needed
Monday, September 25, 2017
Microsoft Management Console: "An attempt was made to reference a token that does not exist"
Symptoms:
"An attempt was made to reference a token that does not exist" when open Administrative Tools
Cause:
Broken Link or corrupt file
Solution:
Run a Command Prompt in ELEVATED MODE
Navigate to %WINDIR%\System32
Re-register the required DLL files using the following command:
For /F %s in ('dir /b *.dll') do regsvr32 /s %s
"An attempt was made to reference a token that does not exist" when open Administrative Tools
Cause:
Broken Link or corrupt file
Solution:
Run a Command Prompt in ELEVATED MODE
Navigate to %WINDIR%\System32
Re-register the required DLL files using the following command:
For /F %s in ('dir /b *.dll') do regsvr32 /s %s
Friday, January 13, 2017
Piped logging program to rotate Apache logs
This creates the files logs\access_yyyy_mm_dd.log where yyyy is the year, mm is the month, and dd is the day of the month. Logging will switch to a new file every day at midnight, local time for xampp in windows.
Solution:
Changed in xampp\apache\conf\httpd.conf
CustomLog "|bin/rotatelogs.exe -l logs/access_%Y_%m_%d.log 86400" common
option used
-l Causes the use of local time rather than GMT as the base for the interval or for strftime(3) formatting with size-based rotation.
%Y 4-digit year
%m 2-digit month
%d 2-digit day of month
rotationtime The time between log file rotations in seconds.
Reference: http://httpd.apache.org/docs/current/programs/rotatelogs.html
Tuesday, November 22, 2016
Synchronize Windows Server 2008 (R2) PDC time with external NTP server
PDC need to synchronize to reliable external time source and other member need to synchronize to this PDC only.
For PDC
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
DWORD Value, type 5
net stop w32time
w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org,0x1 1.pool.ntp.org,0x1 2.pool.ntp.org,0x1” /reliable:yes /update
w32tm /resync /rediscover
net start w32time
you can check result from:
- Event Viewer
- w32tm /stripchart /computer:id.pool.ntp.org /samples:2 /dataonly
error: 0x800705B4 means timeout or no access to NTP server
- w32tm /query /configuration and look for NTP server value
- HKLM\System\CurrentControlSet\services\W32Time\Parameters NTPServer value
to reset back to default
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
For other DC
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
DWORD Value, type A
net stop w32time
w32tm /config /syncfromflags:DOMHIER /update
w32tm /resync /nowait /rediscover
net start w32time
For PDC
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
DWORD Value, type 5
net stop w32time
w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org,0x1 1.pool.ntp.org,0x1 2.pool.ntp.org,0x1” /reliable:yes /update
w32tm /resync /rediscover
net start w32time
you can check result from:
- Event Viewer
- w32tm /stripchart /computer:id.pool.ntp.org /samples:2 /dataonly
error: 0x800705B4 means timeout or no access to NTP server
- w32tm /query /configuration and look for NTP server value
- HKLM\System\CurrentControlSet\services\W32Time\Parameters NTPServer value
to reset back to default
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
For other DC
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
DWORD Value, type A
net stop w32time
w32tm /config /syncfromflags:DOMHIER /update
w32tm /resync /nowait /rediscover
net start w32time
Tuesday, November 1, 2016
Migrating 2003 AD to 2008 R2 (Part 1)
Force promote DC2 as PDC when DC1 who hold FSMO roles no longer exist
Symptoms:
Want to migrate DC from Windows 2003 server to Windows 2008 R2 server. But DC1 who hold PDC no longer exist.
Solution:
Force moving FSMO to DC2 using ntsdutil
Symptoms:
Want to migrate DC from Windows 2003 server to Windows 2008 R2 server. But DC1 who hold PDC no longer exist.
Solution:
Force moving FSMO to DC2 using ntsdutil
- ntdsutil
- roles
- connections
- connect to server DC2
- quit
- seize PDC
- seize schema master
- seize RID master
- seize infrastructure master
- seize domain naming master
- quit
Remove DC1 from AD using ntdsutil
- ntdsutil
- metadata cleanup
- connections
- connect to server DC2
- quit
- select operation target
- list domains
- select domain 0
- list sites
- select site 0
- list servers in site
- select server DC1
- quit
- remove selected server
- Confirm by click YES in message box (make sure removing DC1 server)
Remove any trails of DC1 record in:
- Active Directory Sites and Services
- remove from server object
- Active Directory Users and Computers
- remove from server object
- DNS
- remove all DC1 ip records
- remove from replicate
Subscribe to:
Posts (Atom)