2008年3月31日 星期一

2008年3月24日 星期一

Windows Server 2008 多語系使用者介面 (MUI) 語言套件

多語系使用者介面 (MUI) 語言套件 (Windows Server® 語言套件),可以在 Windows Server® 2008 的環境中啟用多語系使用者介面。在 Windows Server® 2008 影像新增一個或一個以上的語言套件,便能於安裝的 Windows Server® 作業系統中啟用一個或一個以上的語言,讓公司能在世界各地部署相同的 Windows Server® 2008 影像,且仍能提供本地化的使用者介面。

http://www.microsoft.com/downloads/details.aspx?displaylang=zh-hk&FamilyID=e9f6f200-cfaf-4516-8e96-e4d4750397ff

2008年3月22日 星期六

系統時間校對

僅修正系統時間
* 0,6,12,18 * * * /usr/sbin/ntpdate -s stdtime.sinica.edu.tw

修正系統時間&硬體COMS時間
* 0,6,12,18 * * * (/usr/sbin/ntpdate -s stdtime.sinica.edu.tw; /sbin/clock -w) > /dev/null

Windows
建議使用標準檢驗局、海洋大學及中華電信研究所提供的中文化程式:ntpclock1_21.exe
設定啟動時執行即可,預設執行時連到time.stdtime.gov.tw對時,並每隔一小時再對時一次。
[註]在win2000上,可在命令提示字元下輸入:
C:\>net time /setsntp:time.stdtime.gov.tw(設定ntp server)
指令執行成功。
C:\>w32tm -once(執行一次對時)
接著會出現一堆執行w32Time的訊息,就完成對時了。
Unix
安裝FreeBSD或Linux或其他unix,在/usr/sbin目錄下一般都會有ntpdate,
只要以root身份執行
#/usr/sbin/ntpdate -s time.stdtime.gov.tw
即可對時;其中參數 s 代表將執行後的messages交由 syslog 來記錄,例如記錄在 /var/log/messages檔案。

ntpdate 程式有二種校正模式:
如果時鐘的誤差超過0.5 秒就執行settimeofday(2) 直接設定時間;
如果時鐘的誤差小於0.5 秒則執行adjtime(2)來修正系統時鐘。

Linux並不會將校對過的時間寫入CMOS,可以再執行 #/sbin/clock -w 將時間寫入。

如果系統沒有ntpdate,可以抓原始碼來編譯:
http://www.eecis.udel.edu/~ntp/index.html
抓回ntp-4.1.1.tar.gz
#tar zxvf ntp-4.1.1.tar.gz
#cd ntp-4.1.1
#./configure
#make
#make install
預設會將 ntpd, ntpdate....都裝在/usr/local/bin/目錄下,如果只是要當client,會用到的是 ntpdate 而已。

建議開機對時一次,並用crontab定期對時,如:
◎修改/etc/rc.local新增
/usr/local/bin/ntpdate -s time.stdtime.gov.tw;/sbin/clock -w
◎在 root 的crontab加上
* 0,6,12,18 * * * (/usr/local/bin/ntpdate -s timw.stdtime.gov.tw;/sbin/clock -w) > /dev/null

RedHat-7.2安裝預設會啟動Firewall,請修改/etc/sysconfig/ipchains,允許udp(port123)可以進入,才能成功執行ntpdate,如:

# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the
# firewall; such entries will *not* be listed here.
:input ACCEPT
:forward ACCEPT
:output ACCEPT
-A input -s 0/0 -d 0/0 123 -p udp -y -j ACCEPT ←加上這一行
-A input -s 0/0 -d 0/0 -i lo -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 0:1023 -y -j REJECT
-A input -p tcp -s 0/0 -d 0/0 2049 -y -j REJECT
-A input -p udp -s 0/0 -d 0/0 0:1023 -j REJECT
-A input -p udp -s 0/0 -d 0/0 2049 -j REJECT
-A input -p tcp -s 0/0 -d 0/0 6000:6009 -y -j REJECT
-A input -p tcp -s 0/0 -d 0/0 7100 -y -j REJECT


參考網站:
這裡有各種OS版本的最新對時工具:
http://www.eecis.udel.edu/~ntp/software/index.html

時間與頻率國家標準實驗室
http://www.stdtime.gov.tw

SMTP 線上測試網站

一般 Mail Server 架好,如果要測試寄信是否正常,通常我們可以寄一封信到 Gmail , 或是 Yahoo ,看是否可以收到。


不過有時候我們會想要用 telnet 到對方 port 25 來了解 SMTP 對話的過程。由於這些指令並不是每個人都很熟悉,我們還是交給軟體來代勞吧!

下面是我找到一個可以線上測試 SMTP 的網站
http://www.zoneedit.com/smtp.html

測試時會將與 Mail Server 對談的訊息,顯示在網頁,我們就可以很清楚知道 SMTP 對話過程。


2008年3月20日 星期四

修復-線上更新造成主機緩慢(svchost造成CPU Resource 100% Usage)

MU/WU consuming 100% CPU after applying May updates

This issue is described in KB927891

Resolutions:

(a) Install 927891

(b) If not solved, then install WindowsUpdateAgent3.0 at:

http://download.windowsupdate.com/v7/windowsupdate/redist/standalone/WindowsUpdateAgent30-x86.exe

http://download.windowsupdate.com/v7/windowsupdate/redist/standalone/WindowsUpdateAgent30-x64.exe

http://download.windowsupdate.com/v7/windowsupdate/redist/standalone/WindowsUpdateAgent30-ia64.exe

Further information can be found at http://blogs.technet.com/wsus/archive/2007/04/28/update-on.aspx

如何由DC新增帳號至用戶端電腦的本機帳號群组?

利用net localgroup,寫一隻bat檔,例如要將 cms domain 的 lusheng 加入 本機的administrators group

ex:

net localgroup administrators /add cms\lusheng

2008年3月6日 星期四

修復[開始] 功能表上的 [說明及支援]

按下 [開始] 功能表上的 [說明及支援],還是不能用。那就從 [說明及支援服務]下手好了:
net stop helpsvc
開啟工作管理員,確認下面三個程式沒有被執行,若有執行的話,用工作管理員結束他們: helpsvc.exe helphost.exe helpctr.exe
cd /d %windird%/pchealth\helpctr
rd PackageStore /q /s
cd binaries
start /wait helpsvc /svchost netsvcs /regserver /install(這個步驟會執行的久一點,要耐心等待一下)
net start helpsvc


再測試看看,按下 [開始] 功能表上的 [說明及支援],哈哈!終於出現了 說明及支援中心] 。

對於上述的指令簡單地解說:
步驟1. 停止 [說明及支援] 服務
步驟3. 切換到 [說明及支援] 的主要目錄。在 cd 指令之後,加上 /d ,表示要同時切換磁碟機
步驟4. 將儲存在 PackageStore 目錄下的 .cab 檔案刪除。rd 之後,加上 /s /q,表示要同時刪除子目錄並且不出現確認刪除的提示
步驟5. 切換到 binaries 目錄
步驟6. 重新安裝 [說明及支援]
步驟7. 啟動 [說明及支援] 服務

2008年3月5日 星期三

Sharepoint 2007 如何刪除某個人的個人網站

直接到網站集合中將此人的網站集合刪除或利用下列指令方法移除皆可
stsadm -o deletesite -url http://spswebname/personal/username