• 語系設定 for Windows 2008/Windows 7

    Windows Svr 2008 語系設定

    第一次安裝後因為選擇系語言為英文

    完成設定後想設定回中文,並且希望新使用者第一次登入皆能套用新的語系設定,但是新使用者登入都還是維持英文

    如何設定所有新的使用者登入都使用相同設定

    請根據畫面設定套用每位使用者的預設語系設定值

    clip_image002

  • SCCM 2007 Software Distribution step by step

    Ⅰ. 確認Software Distribution setting Enable

    1. 確認下列路徑Site Database\Site Management\Site code\Site settings\Client Agents的 “Advertised Programs Client Agent Properties”

    2. 選擇 Advertised Programs Client Agent

    clip_image002

    3. 請勾選Enable Software distribution to clients, 並勾選 [Allow user targeted advertisement requests] 及 [New program notification icon opens Add or Remove Programs] .

    clip_image004

    4. 您也許需要設定如何通知Client (非必要選項).

    clip_image005

    Ⅱ. 建立collection

    1. 請建立一個 Collection 佈署測試您要的軟體.

    2. 例如:

    Collection 名稱: 您自訂的名稱包含一個測試的用戶端

    clip_image006

    Ⅲ. 建立一個佈署 package

    1. 右鍵您建立的測試 collection選擇 Distribute>Software

    clip_image008

    2. 您將會看到 [Distribute Software to Collection Wizard], 請按 Next button.

    clip_image010

    3. 選擇 [Create a new package and program without a definition file], 按下 Next.

    clip_image012

    4. 在 Package Identification 頁面, 請給Package Name 按下 Next.

    clip_image014

    5. In Source Files, 請選擇 [Always obtain files from a source directory], 按下 Next.
    clip_image016

    6. 在 Source Directory, 請選 Local drive on site server 在 [Source directory location:] 按 [browse] 選取source 路徑

    clip_image018

    7. 在 Distribution Points頁面, 請選擇一台DP 來佈署軟體

    Note: 請確認SCCM site 環境中您定義的DP 或是BDP角色.
    clip_image020

    8. 在 Program Identification,請給Program 名稱並點選 [Browse] 按鈕找到要佈署的program程式名稱.
    clip_image022

    9. 例如,找到檔案、選擇IE8-setup-Full.exe 然後按[Open].

    clip_image024

    10. 當完成您將看到 “IE8-setup-Full.exe” show 秀在Command line.

    clip_image026

    11. 選擇何時執行program, 預設是[Only when a user is logged on] 若是用戶端沒有本機管理者權限請勾選 [Run with administrative rights].
    clip_image028

    12. 當您需要一個公告(Advertisement)這個 Program 做為部屬, 選擇[Yes] 按 Next下一步.

    clip_image030

    13. 在 Select Program頁面,確認我們訂義Program name 正確, 按Next下一步.

    clip_image032

    14. 您可以定義您的Advertisement Name按Next下一步.

    clip_image034

    15. 請檢查在[The program will be advertised to the following collections:]下的collection name是否正確 然後Next下一步.(這裡我們只選擇公告到這個collection不包含這個collection下的sub-collection)

    clip_image036

    16. 請選擇一個排定時間來公告program 並選擇[No, this advertisement never expires]. 留下預設勾選的[Download content from…], 按Next下一步.
    clip_image038

    17. 在 Assign Program, 請選擇 [Yes, assign the program] 然後設定排時間, 按Next下一步.
    clip_image040

    18. 您將可以看到您先前訂義information, 按Next下一步.
    clip_image042

    19. 精靈完成, 請按Close button 完成設定精靈.
    clip_image044

    20. 完成精靈後.請確認DP state show Installed:

    [Site Database\Computer Management\Software Distribution\Packages\Package Name\Package Status\Package Status\Site server]
    clip_image046

    Ⅳ. 如何檢查installed successful?

    1. 您可以看到client side 通知 .
    clip_image047

    2. 執行程式,或是等待時間到會自動安裝.
    clip_image049

    3. 我們可以檢查report 126, 127 and 135 status.您也可以由Software Distribution的其他類別reporting中檢查.
    clip_image051

    4. 最後, 我們也可以找到Success state 顯示在Software Distribution Homepage Summarization.
    clip_image053

  • Win7使用指令加入網域範例

    一、假設您要從Server上下NETDOM指令讓Client 加入Domain,可以參考:

    netdom join client /Domain:eric\dc1 /Userd:eric\administrator /Passwordd:* /UserO:administrator /PasswordO:*

    其中

    Domain name為eric

    DC名稱為DC1

    Client的名稱為client

    /Userd: 後面接的是domain 帳戶

    /UserO:後面接的是該client的本機administrator帳戶

    輸入後,會跳出二次需要輸入密碼的地方,第一次為輸入domain 帳戶的密碼,第二次是輸入該電腦本機admin的密碼。

    clip_image002

    Client的防火牆上至少要開「檔案及印表機共用」,才能從DC連到該 Client,否則會出現「找不到網路路徑」的錯誤。

    clip_image004

    clip_image006

    以上的做法是參考以下的文件。

    Using Netdom 2.0 to create computer accounts on admin-specified domain controllers

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

    For example, if you want to join a \\Windows2000Pro workgroup computer on the \\NA-DC-01 domain controller in the NORTHAMERICA.COM domain, the full netdom join command line is:

    netdom join windows2000pro /Domain:NA\NA-DC-01 /Userd:NA\administrator /Passwordd:* /UserO:administrator /PasswordO:*

    Note Always prepend the domain name to the user that is passed in the /userd parameter.

    二、如果要從Client上下Netdom的指令加入Domain,可以這樣做:

    1. Windows 7預設沒有netdom,要另外安裝RSAT並且啟動功能才會有這個指令。

    2. 指令的下法為:

    netdom join %computername% /Domain:domainname /UserD:administrator /PasswordD:12345

    三、如果要以Power Shell 的方式加入Doamin,請用這個語法

    Add-Computer –DomainName <網域名稱> -Credential <網域名稱\網域帳戶>

    clip_image008

  • SMS\SCCM collection 排除另一個collection

    經常有遇到希望建立排除已安裝某些軟體的用戶端,例如我們需要抓出未安裝IE8用戶端,針對collection A: All system,另外建立一個collection B 內容包含所有安裝過IE8用戶端,在建立一個collection C透過A-B=C 方式列出未安裝IE8的用戶端

    Collection A: all systems
    Collection B: Client with “IE8” installed

    Collection C: C=A-B

    We could create the collection C with the following WQL query

    **************
    select SMS_R_System.ResourceID,SMS_R_System.ResourceType,SMS_R_System.Name,SMS_R_System.SMSUniqueIdentifier,SMS_R_System.ResourceDomainORWorkgroup,SMS_R_System.Client from SMS_R_System where SMS_R_System.ResourceId in (select ResourceID from SMS_CM_RES_COLL_XXXXXXXX) and SMS_R_System.ResourceId not in (select ResourceID from SMS_CM_RES_COLL_YYYYYYYY)
    **************

    Here, the  SMS_CM_RES_COLL_XXXXXXXX is the source collection A and the SMS_CM_RES_COLL_YYYYYYYY is the exclusion collection B
    Note: we could get the collection ID from the SMS admin console-> collections->Detail pane

    The “All Systems” collection ID:SMS0001 and the “IE8” collection ID:001000AB

  • Windows Server 2003 Cluster - 如何將一個第三方的服務設定成 Generic Clustered Service

    參考文件: http://support.microsoft.com/default.aspx?scid=kb;EN-US;292542

    Configuration two: Use a Generic Cluster Service to allow the cluster service to control the 3rd party service
    In this configuration, set up 3rd party service as a Generic Cluster Service in Cluster Administrator.

    To set up 3rd party service as a Generic Cluster Service, do the following:
    1.    Open the Cluster Administrator.
    2.    Create a new group for your 3rd party application/service
    3.    Right-click the Group, click New, and then click Resource.
        a)    Name the New Resource "MsgrVirtualIP" 
        b)    Select IP Address as the Resource Type, and then click Next.
        c)    Select both Nodes as Possible Owners, and then click Next.
        d)    In Dependencies click Next.
        e)    Assign IP Address, Subnet Mask and Network interface for the resource and then click Finish.
    4.    Right-click the Group, click New, and then click Resource. 
        a)    Name the New Resource "MsgrVirtualName"
        b)    Select Network Name as the Resource Type, and then click Next.
        c)    Select both Nodes as Possible Owners, and then click Next.
        d)    In Dependencies, add "MsgrVirtualIP" to the Resource dependencies list and then click Next. 
        e)    Assign a Name (here I use "CLUSTERMSGR") and then click to check the DNS Registration Must Succeed check box and then click Finish.
    5.    Right-click the Group, click New, and then click Resource. 
        a)    Name the New Resource "MsgrSvc"
        b)    Select Generic Service as the Resource Type, and then click Next.
        c)    Select both Nodes as Possible Owners, and then click Next.
        d)    In Dependencies, add "MsgrVirtualName" to the Resource dependencies list and then click Next.
        e)    In Generic Service Parameters, type a proper service name in the Service Name field, (I have chosen "Messenger" service as my service) leave the Start Parameter blank, click to check the Use Network Name for Computer Name check box, and then click Next.
        f)    Add registry paths to replicate in Registry Replication if there is any, and then click Finish.
    6.    Bring the new service online.
    7.    Test fail over by moving the new Group between both nodes and verify that the Messenger service is coming online