• RSM (removable storage service) 服務出現錯誤訊息


    Problem
    =======
    2003 使用NTbackup 備份資料事件檢視器出現 RSM (removable storage service) 服務警告

     
    Event log
    ================
    Event Type:   Warning
    Event Source: Removable Storage Service
    Event Category:       None
    Event ID:       94
    User:            N/A
    Computer:     AAAAAAAA
    Description:

    RSM database IMPORT failed.  The import files might not exist or there may not be enough disk space.

     

    Solution
    ======
    修改登錄值

    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\NTMS 
    value name: ImportDatabase
    data type: REG_DWORD
    String: 0

  • How to fix WSUS MMC console error

    Issue: WSUS mmc console 打不開出現錯誤

     

    ·         WSUS console 出現MMC無法建立嵌入式管理單元, 該崁入式管理單元可能並未正確安裝.

    clip_image001 

    ·         除了WSUS MMC console打不開之外, SQL ServerSUSDB也無法進行存取, 錯誤: 916

    clip_image002

      

    Resolution:

    1.先把WSUS 3.0 SP2 移除, 並保留所有的資料  

    clip_image003

     

    2.執行下面的步驟重設SQL administrator帳號

    a)      Go to:

    Start > Programs > Microsoft SQL Server 2005 > Configuration Tools > SQL Server Configuration Manager

    b)      Right click on the SQL server you want to add an account for and click Stop.

    clip_image004

    c)      Once it has stopped, right click on it and open Properties. Go to the Advanced tab.

    d)      Under “Startup Parameters”, copy and paste that whole string to Notepad as a backup. Go back to the box and add the following right at the end of the string:

    ;–m

    It should look like this:

    clip_image005

    Press OK when done. What this does is forces SQL to start in single user mode.

    e)      Now right click the SQL server you had stopped before and start it.

    f)       Now if you go to SQL Management Studio, it will error out. The only way to get into it is using sqlcmd. So open a command prompt and type:

    sqlcmd

    which should give you a “1>” prompt denoting line 1. If it gives you an error saying “Login failed for user ‘xxxxx’. Reason: Server is in single user mode. Only one administrator can connect at this time. (Microsoft SQL Server, Error: 18461″, make sure all management consoles are closed and there are no other users logged in using it. Also go to your Windows services and stop all the following services:

    SQL Server Agent

    SQL Server FullText Search

    SQL Server Integration Services

    SQL Server Reporting Services

    SQL Server VSS Writer

    Only SQL Server and SQL Browser should be running. Try “sqlcmd” at the command prompt and it should let you through.

    g)      Now type the following to add your domain user account with admin privileges:

    EXEC sp_addsrvrolemember 'domain\useraccount', 'sysadmin';

    GO

    It should give you blank line if it was successful.

    3.重新安裝 WSUS 3.0 SP2

    4.WSUS MMC console正常開啟

    clip_image006

  • Hyper-V 中的guest machine的 DC時間同步的問題

     

    Issue: Hyper-V 中的guest machine DC時間同步的問題

     

    Log Analyze:

     

    ·         系統事件不斷發生 Event 24, 29, 38的錯誤

     

    image

    image

    image

     

    Resolution:

     

    ·         參考KB976924的方法從Hyper-V介面把時間同步化的功能關閉

     

    You receive Windows Time Service event IDs 24, 29, and 38 on a virtualized domain controller that is running on a Windows Server 2008-based host server with Hyper-V

    http://support.microsoft.com/kb/976924/en-us

     

    Disable time synchronization on the host by using Integration Services, and then configure the virtualized domain controller to accept the default Windows Time Service (W32time) domain hierarchy time synchronization. To do this, follow these steps:

    1. Open Hyper-V Manager.
    2. Click Settings.
    3. Click Integration services.
    4. Clear the Time Synchronization option.

    clip_image008

    1. Exit Hyper-V Manager.
    2. Restart the server.

    ·         在其他的DC執行下面的指令與PDC主機同步

     

    Net time /domain: 網域名稱

    Or

    ·         Net time \\PDC主機 /set /y

  • Event 1030 and 1065 error appear at Application log

     

    Issue: 機器每天都會產生 1030/1065 的錯誤訊息

    image

     

     

    Cause:

     

    ·         此問題與GPMC介面上的WMI篩選有關, 因為機器的WMI發生問題所以無法執行WMI篩選的工作才出現錯誤

     

    clip_image003

     

    ·         WMI控制台確認此台機器WMI的確有問題

     

    clip_image004

     

    Resolution:

    ·         透過指令的方法重建 WMI Repository (附加檔案: wmi.bat)

    net stop winmgmt

    c:

    cd %systemroot%\system32\wbem

    rd /S /Q repository

    regsvr32 /s %systemroot%\system32\scecli.dll

    regsvr32 /s %systemroot%\system32\userenv.dll

    mofcomp cimwin32.mof

    mofcomp cimwin32.mfl

    mofcomp rsop.mof

    mofcomp rsop.mfl

    for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s

    for /f %%s in ('dir /b *.mof') do mofcomp %%s

    for /f %%s in ('dir /b *.mfl') do mofcomp %%s

    echo DONE - you must reboot

    pause

    ·         重新啟動電腦

    ·         WMI已經恢復正常運作, 事件檢視器也不在發生錯誤

  • Windows 2003/Schedule Task failed to start randomly

     

    Issue: Schedule Task failed to start randomly

     

    image

     

    Cause: There is a Domain Policy defined for “Logon as batch job”, this settings will overwrite all local account’s right.

     

    Repro Step:

     

    1.      Create a Schedule Task using local administrator account and password

    2.      Test run these tasks

     

    clip_image002

     

    3.      Define “Logon as batch job” at domain level

     

    clip_image003

     

    4.      Run gpupdate /force at Server 2003

    5.      Once we did apply this policy from Domain, try to run task, it will failed

     

    clip_image004

     

           Failed with “could not start”

    clip_image005

     

     

    Workaround:

     

    ·         Include the default administrator account at “Logon as batch job” policy

     

    clip_image006

     

     

    Reference:

     

    http://technet.microsoft.com/en-us/library/cc755659(v=ws.10).aspx

     

    Log on as a batch job

    In Windows 2000 Server, Windows 2000 Professional, Windows XP Professional, and Windows Server 2003, the Task Scheduler automatically grants this right as necessary. The Task Scheduler injects this right for the user into the computer's effective policy immediately after the task is scheduled. If there is a contradictory group policy defining the Logon as a batch job user right, the effective policy settings will be overwritten by the group policy only upon policy refresh.