Category Archives: Windows

Do not rename the only domain controller… And how to fix it if you have already done so..

Even though MS provide the document about how to rename domain controller, the thing is, if you only have one domain controller, the “rename” will break the AD service and you are not able to roll back.

The issue you will get is that after you rename domain controller, the AD DS services are still using the old hostname because you didn’t transfer the FSMO roles from the old name to the new name. And if you want to start any domain management tools you’ll get error said that domain is unavailable. And if you want to change domain controller name back you will get the same error because dc is not available and your renaming will failed too. And this issue won’t happen if your domain get two or more domain controllers.

Ok, how to fix this issue if you have already done so? What we can do now is to update registry and change the computer name back to the old one. Below are the four registry keys you need to update:

HKLM\System\CCS\Control\Computername "Computername"
HKLM\System\CCS\Control\Computername "ActiveComputername"
HKLM\System\CCS\Services\Tcpip\Parameters "Hostname"
HKLM\System\CCS\Services\Tcpip\Parameters "NVHostname"

Reading a memory.dmp or other .dmp file

This can be accomplished with 7 easy steps:

Step 1. Obtain and install the debugging tools.

Debugging Tools Windows

All you need to install is the “Install Debugging Tools for Windows as a Standalone Component (from Windows SDK)” and during the install only select “Debugging Tools for Windows”. Everything else is used for more advanced troubleshooting or development, and isn’t needed here. Today I followed the link to “Install Debugging Tools for Windows as a Standalone Component (from Windows SDK)” although for a different OS you may need to follow a different link.

Step 2. From an elevated command prompt navigate to the debugging folder. For me with the latest tools on Windows Server 2012 it was at C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\. You can specify the path during the install.

Step 3. Type the following:

kd –z C:\Windows\memory.dmp (or the path to your .dmp file)

Step 4. Type the following:

.logopen c:\debuglog.txt

Step 5. Type the following:

.sympath srv*c:\symbols*http://msdl.microsoft.com/download/symbols

If you computer can’t connect to internet, you can download the symbols from below link:

https://developer.microsoft.com/en-us/windows/hardware/download-symbols

Step 6. Type the following:

.reload;!analyze -v;r;kv;lmnt;.logclose;q

Step 7. Review the results by opening c:\debuglog.txt in your favorite text editor. Searching for PROCESS_NAME: will show which process had the fault. You can use the process name and other information from the dump to find clues and find answers in a web search. Usually the fault is with a hardware drivers of some sort, but there are many things that can cause crashes so the actual analyzing of the dump may take some research.

Often times a driver update will fix the issue. If the summary information doesn’t offer enough information then you’ll need to dig further into the debugging tools or open a CSS case with Microsoft. The steps above will provide you with a summary mostly-human-readable report from the dump. There is much more information available in the memory dump although it gets exponentially more difficult to track down the details the further you get into windows debugging.

Hopefully these quick steps are helpful for you as you troubleshoot the unwelcome BSOD.

Remove / Uninstall OneDrive in Windows 10

1. Run CMD as administrator, and then kill OneDrive process

    taskkill /f /im OneDrive.exe

2. Uninstall OneDrive for 32bit Windows 10

    %SystemRoot%System32OneDriveSetup.exe /uninstall

3. Uninstall OneDrive for 64bit Windows 10

    %SystemRoot%SysWOW64OneDriveSetup.exe /uninstall

4. Delete OneDrive folder

    rd "%UserProfile%OneDrive" /Q /S
    rd "%LocalAppData%MicrosoftOneDrive" /Q /S
    rd "%ProgramData%Microsoft OneDrive" /Q /S
    rd "C:OneDriveTemp" /Q /S

5. Delete registry keys for OneDrive.

    REG Delete "HKEY_CLASSES_ROOTCLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f
    REG Delete "HKEY_CLASSES_ROOTWow6432NodeCLSID{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f

Remove Windows 10 build-in Apps

Uninstall 3D Builder:

    Get-AppxPackage *3dbuilder* | Remove-AppxPackage

Uninstall Alarms and Clock:

    Get-AppxPackage *windowsalarms* | Remove-AppxPackage

Uninstall Calculator:

    Get-AppxPackage *windowscalculator* | Remove-AppxPackage

Uninstall Calendar and Mail:

    Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage

Uninstall Camera:

    Get-AppxPackage *windowscamera* | Remove-AppxPackage

Uninstall Contact Support:

This app can’t be removed.

Uninstall Cortana:

This app can’t be removed.

Uninstall Get Office:

    Get-AppxPackage *officehub* | Remove-AppxPackage

Uninstall Get Skype:

    Get-AppxPackage *skypeapp* | Remove-AppxPackage

Uninstall Get Started:

    Get-AppxPackage *getstarted* | Remove-AppxPackage

Uninstall Groove Music:

    Get-AppxPackage *zunemusic* | Remove-AppxPackage

Uninstall Maps:

    Get-AppxPackage *windowsmaps* | Remove-AppxPackage

Uninstall Microsoft Edge:

This app can’t be removed.

Uninstall Microsoft Solitaire Collection:

    Get-AppxPackage *windowsmaps* | Remove-AppxPackage

Uninstall Money:

    Get-AppxPackage *bingfinance* | Remove-AppxPackage

Uninstall Movies & TV:

    Get-AppxPackage *zunevideo* | Remove-AppxPackage

Uninstall News:

    Get-AppxPackage *bingnews* | Remove-AppxPackage

Uninstall OneNote:

    Get-AppxPackage *onenote* | Remove-AppxPackage

Uninstall People:

    Get-AppxPackage *people* | Remove-AppxPackage

Uninstall Phone Companion:

    Get-AppxPackage *windowsphone* | Remove-AppxPackage

Uninstall Photos:

Get-AppxPackage *photos* | Remove-AppxPackage

Uninstall Store:

    Get-AppxPackage *windowsstore* | Remove-AppxPackage

Uninstall Sports:

    Get-AppxPackage *bingsports* | Remove-AppxPackage

Uninstall Voice Recorder:

    Get-AppxPackage *soundrecorder* | Remove-AppxPackage

Uninstall Weather:

    Get-AppxPackage *bingweather* | Remove-AppxPackage

Uninstall Windows Feedback:

This app can’t be removed.

Uninstall Xbox:

    Get-AppxPackage *xboxapp* | Remove-AppxPackage