• Windows 2008/KMS lost activation status with error: 0xc004d302 after reboot

    Symptoms :

    On already activated KMS client a Windows Activation window comes up with the error

    An error has occurred:

    Code: 0xC004D302

    Description: The Security processor reported that the trusted data store was rearmed.

    Cause :

    1. Changes in the default permissions of the "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" .

    2. Corruption in the Licensing Files.  (tokens.dat)

    3. If you have run the slmgr.vbs /rearm command and try to run any other activation command(/dlv or /dli for example) prior to rebooting you will experience this error.  You must reboot after using the slmgr.vbs /rearm command prior to attempting activation.

    Resolution:

    1. Change the directory on the command prompt by typing in

    (For Vista and Windows 2008)

    cd "%windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareLicensing"

    (For Win 7 and Windows 2008 R2)

    cd "%windir%\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform"

    2. Backupy tokens.dat to tokens.old  by typing the command and copy the token.dat from activated machine.

    ren tokens.dat tokens.old

    3. Activated using slmgr command by typing in

    - slmgr –ato  (using Internet)

    - slui.exe -4  (using telephone)

  • Windows 7無法連到分享的資料夾,錯誤碼 0x80004005

    問題描述:

    當使用網路芳鄰、UNC path、網路磁碟機連到遠端電腦時,出現0x80004005的錯誤,無法存取分享資料夾的內容。

    解決方法:

    我們懷疑這個問題產生的原因和以下文件描述的問題相關。如果在裝置管理員裏看到過多的6to4裝置,可能就會產生此問題。

    http://support.microsoft.com/kb/980486

    如果要解決這個問題,提供以下的建議:

    1. 在還沒發生這個問題的機器上,安裝此hotfix。

    2. 在已經發生此問題的機器上,您可以:

    a. 在裝置管理員裏手動刪除6to4的裝置。

    b. 或是停用IPV6的功能。關於停用IPv6的話,可以加上以下的機碼

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TCPIP6\Parameters

    "DisabledComponents"=dword:ffffffff

     

    由於愈來愈多的程式依賴IPv6才能運行,除非必要,我們不建議您採取停用IPv6來解決這個問題。假設真的發生了此問題,我們建議您採取的解決方式是「a.在裝置管理員裏手動刪除6to4的裝置」。

  • WSUS: Script to delete duplicate SID created by Disk Imaging / Disk Cloning

    You might notice that some computers are appearing multiple times in WSUSAdmin - Computers and some of them disappear very often. This is due to duplicate SUS client IDs. Take a look at this script which deletes duplicate SUS client IDs found on a computer. These IDs are often found on computers where the operating system was installed using an image-based setup.

    Script Code

    ============================================

    @echo off
    Echo Save the batch file "AU_Clean_SID.cmd". This batch file will do the following:
    Echo 1.    Stops the wuauserv service
    Echo 2.    Deletes the AccountDomainSid registry key (if it exists)
    Echo 3.    Deletes the PingID registry key (if it exists)
    Echo 4.    Deletes the SusClientId registry key (if it exists)
    Echo 5.    Restarts the wuauserv service
    Echo 6.    Resets the Authorization Cookie
    Echo 7.    More information on http://msmvps.com/Athif
    Pause
    @echo on
    net stop wuauserv
    REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f
    REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f
    REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f
    net start wuauserv
    wuauclt /resetauthorization /detectnow
    Pause

    ============================================

    SUS client ID will be generated at next detection.
     
  • Windows 7執行sysprep 時,出現「嘗試對電腦執行sysprep時發生嚴重錯誤」

     

    問題描述:

    當您在執行sysprep並勾選「一般化」時,在關機前出現以下的畫面:

    image

    解決方式:

    狀況1:確認該Image是否已經做過三次sysprep+一般化,如果是的話,請參考以下的文件。

    http://support.microsoft.com/kb/929828/zh-tw

    狀況2:如果該Image還沒有做過三次sysprep+一般化,但仍出現此錯誤,請依照以下的步驟解決。

    1.找到 C:\Windows\System32\sysprep\Panther\setuperr.log檔案。檢查內容有以下的記錄,如果內容符合以下的錯誤,請往步驟2。

    2011-12-29 18:37:13, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 31
    2011-12-29 18:37:13, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f

    2.找到HKLM\System\Setup\Status\SysprepStatus\右方的 GeneralizationState值為多少?如果不是7的話,請改成7,再試一次sysprep即可。

  • 如何在Windows 7上客制化Default User profile

    如果我們要讓新的使用者登入系統後,預設都能同樣的設定(例如桌面圖示、捷徑、IE首頁),必需讓設定套到Default Profile上,如此在新的帳戶登入時,會去copy Default Profile的設定而套用下來。在以往,我們習慣在以下的畫面中,將已經設定好的profile copy至Default User上。

    image

    在Windows 7裏,要使用http://support.microsoft.com/kb/973289 的方式才能達到這個需求。將步驟整理如下:

    1.登入一個帳戶,做完所有的設定。

    2.將以下的文件存成Unattend.xml檔,放在C:\下。

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <CopyProfile>true</CopyProfile>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:d:/sources/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    3.開啟CMD,將路徑切到C:\Windows\system32\sysprep。

    4. 執行sysprep.exe /generalize /unattend:c:\unattend.xml。

    5.重新開機,會做初始化的動作,系統即會依照步驟4去讀取unattend.xml檔,並且完成設定。