• 如何在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檔,並且完成設定。

  • Windows 2008 R2找KMS Server做產品啟動時,出現0xC004F074錯誤

    由於目前文件上提到的可能原因為KMS不是1.2版本才造成此問題,根據實際的經驗,以下三個原因都可能造成此錯誤的產生:

    狀況1:KMS Server版本非升級至1.2版本

    狀況2:KMS Client無法找到KMS Server

    狀況3:KMS Client的時間或時區設定錯誤

    解決方式:

    狀況1.

    a.如果KMS Server尚未升級至1.2,請您先升級KMS Server元件後重新開機。

    Windows 2003元件下載點 http://support.microsoft.com/kb/968915/zh-tw

    Windows 2008元件下載點 http://support.microsoft.com/kb/968912/zh-tw

    b.開啟命令提示字元,執行slmgr -ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX (請輸入Windows 2008 R2版本的KMS Server 金鑰)

    c.執行slmgr –ato

    狀況2.

    如果是網路問題,請嘗試執行telnet <KMS Server IP> 1688以確定是否可以正常連線到KMS Server監聽的1688 port

    狀況3.

    請您在KMS Client的時區及時間上做檢查,看是否時區設定有誤,如果設定錯誤請修正後再嘗試做啟動

  • What is DFS maximum size limit

    Q.
    We know DFS maximum size is 64 GB in Windows 2000 DFS and Windows Server 2003(R2) DFSR.
    Does this limitation also applies to Windows Server 2008 and Windows Server 2008 R2 DFSR?
    Do we have similar article such as this http://technet.microsoft.com/en-us/library/cc773238(WS.10).aspx#BKMK_00 that describes the limit?

    A.
    The DFSR test team successfully tested replication of 10Tb (9.97Tb to be precise) of data between two Windows Server 2008 Standard Edition servers.  The test was conducted on a private network and it took about 8.5 days to fully replicate the data. The replicated data was composed of 4,410,445 files and 798 directories. The file data was randomly generated, meaning it cannot be compressed. Therefore, this scalability test represents the worst case workload and can be thought of as similar to replicating 10Tb of already compressed data.

    The DFSR product team expects data stored on customers’ servers to compress much better. That would reduce both the amount of data sent across the wire and the time taken by DFSR to replicate the data.

    Please note that these are preliminary test results. The DFSR product team will resume scalability tests as soon as possible and the above numbers serve as an indication, that DFSR is not limited to 10Tb or 4.5 million files.

    Thanks,
    The DFSR Product Team

  • How to shrink OperationsManagerDW database file size

    當 DB & Transaction Log 檔占滿硬碟空間時,您可以使用以下步驟壓縮資料庫:

    -- How to Shrink OperationManagerDW Database
    --1. Check the OperationManagerDW Database Properties and DBID, for example this database is DBID 18
    sp_helpdb
    --2. Check the OperationManagerDW(DBID 18) Database Log File ID / name (OperationManagerDW_Log)
    select * from master..sysaltfiles where dbid=18
    --3. Truncate Trnsaction Log
    Backup Log OperationManagerDW With Truncate_Only
    --4. Shrink Whole Database
    DBCC SHRINKDATABASE(OperationManagerDW)
    --5. Srink Log File Again to reduce file size
    USE OperationManagerDW
    GO
    DBCC SHRINKFILE(OperationManagerDW_Log)

    您可以參考 KB 256650 來避免 SQL Server 資料庫的交易記錄檔超出預期大小:
    - 像是固定執行 DB 備份
    - 設定維護計劃
    - 變更復原模式
    - etc...

    By default, in SQL Server 2000 and in SQL Server 2005, the recovery model for a SQL Server database is set to the Full recovery model. With the full recovery model, regular backups of the transaction log are used to prevent the transaction log file size from growing out of proportion to the database size. However, if the regular backups of the transaction log are not performed, the transaction log file grows to fill the disk, and you may not be able to perform any data modification operations on the SQL Server database.

    You can change the recovery model from full to simple if you do not want to use the transaction log files during a disaster recovery operation.

    Change the recovery model. If a disaster or data corruption occurs, you must recover your database so that the data consistency and the transactional integrity of the database are maintained. Based on how critical the data in your database is, you can use one of the following recovery models to determine how your data is backed up and what your exposure to the data loss is:

    - Simple recovery model
    - Full recovery model
    - Bulk-logged recovery model

    By using the simple recovery model, you can recover your database to the most recent backup of your database. By using the full recovery model or the bulk-logged recovery model, you can recover your database to the point when the failure occurred by restoring your database with the transaction log file backups.

    In addition, the Operations Manager databases do not need maintenance tasks as it has its own internal maintenance processes. Some table/index are dropped and created again. That is why your maintenance job is failing re-indexing an index that does not exist

    REFERENCE
    ================
    INF: Shrinking the Transaction Log in SQL Server 2000 with DBCC SHRINKFILE http://support.microsoft.com/kb/272318/en-us
    INF: 如何將 SQL Server 交易記錄檔壓縮 http://support.microsoft.com/kb/256650/zh-tw
    如何避免 SQL Server 資料庫的交易記錄檔超出預期大小 http://support.microsoft.com/kb/873235/zh-tw
    INF: SQL Server 中的 Autogrow 及 Autoshrink 設定考量 http://support.microsoft.com/kb/315512/zh-tw
    Maintenance Plans http://msdn.microsoft.com/en-us/library/ms187658.aspx
    Maintenance Tasks http://msdn.microsoft.com/en-us/library/ms140255.aspx
    Recovery Model Overview http://msdn.microsoft.com/en-us/library/ms189275.aspx

  • Web Server 2008 產品啟動問題

    問題
    =======
    Web Server 2008 產品啟動問題
    當您輸入產品金鑰後 ,並透過線上自動啟動Windows ,會出現 [無法驗證您的產品金鑰 . 請檢查您的產品金鑰 , 並確定您已正確輸入.]

    clip_image002

    解決方法
    ===========
    1. 安裝Web Server 2008時 , 請先選擇[下一步] , 跳過輸入金鑰步驟, 並將系統安裝完成

    clip_image004

    選擇[否]

    clip_image006

    安裝後 ,目前是Web Server 2008 SP1

    image

    2. 請先安裝SP2後, 第一次重新開機

    clip_image010

    3. 需再第二次重新開機 (如果沒有重新啟動 , 立即透過線上自動啟動Windows ,您會出現下面的錯誤)

    clip_image012

    4. 輸入產品金鑰

    clip_image014

    5. Web Server 2008 啟動成功

    clip_image016