Research

Powered By Blogger

10/24/2010

Demo code module 2

查尋所有USERS 100個

dsquery user

查尋所有USERS 無限

dsquery user -limit 0

查尋所有叫Dan*的名字

dsquery user -name "Dan*"

查尋所有叫Dan*的E-MAIL

dsquery user -name "Dan*" -o upn

查尋所有叫Dan*的SAMID

dsquery user -name "Dan*" -o samid



dsquery user "ou=Admins,dc=contoso,dc=com" -name "Dan*"

找尋在Employees的Jeff Ford的E-MAIL

dsget user "cn=Jeff Ford,ou=Employees,ou=User Accounts,dc=contoso,dc=com" -email

查尋Jeff Ford的E-MAIL

dsquery user -name "Jeff Ford" | dsget user -email

查尋所有DAN開頭的E-MAIL

dsquery user -name "Dan*" | dsget user -email

查尋Domain admins的samid

dsquery group -name "domain admins" | dsget group -members | dsget user -samid

Jeff的部門改成IT

dsmod user "cn=Jeff Ford,ou=Employees,ou=User Accounts,dc=contoso,dc=com" -dept "Information Technology"

跟上面一樣,改成pipe的寫法

dsquery user "ou=Admins,dc=contoso,dc=com" | dsmod user -dept "Information Technology"

刪除DAH5926

dsrm "cn=DAH5926,ou=BEI,ou=Client Computers,dc=contoso,dc=com"

刪除DAH5926,不會要求yes or no

dsrm "cn=DAH5926,ou=BEI,ou=Client Computers,dc=contoso,dc=com" -noprompt

找出那裡面離開往域超過90天的,不限筆數,然後刪除,麥擱問

dsquery computer "ou=BEI,ou=Client Computers,dc=contoso,dc=com" -stalepwd 90 -limit 0 | dsrm -noprompt

把DBE6727搬到BEI


dsmove "CN=DBE6727,OU=CPT,OU=Client Computers,DC=contoso,DC=com" -newparent "OU=BEI,OU=Client Computers,DC=contoso,DC=com"

幫BEI6727改名成DBE6727

dsmove "CN=DBE6727,OU=BEI,OU=Client Computers,DC=contoso,DC=com" -newname BEI6727

在contoso.com裡建立一個Lab的ou

dsadd ou "ou=Lab,dc=contoso,dc=com"

10/21/2010

子網路的切割與VLSM

網段切割速算表 for (Class C)



怎麼在Vista上裝Virtual Server

安裝的 Vista 必須先安裝下列的 IIS 元件:

Under Web Management Tools enable:

IIS Management Console

Under IIS 6 Management Compatibility enable:

IIS Metabase and IIS6 configuration
compatibility


Under Application Development Features enable:

CGI

Under Common Http Features enable:

Default Document
Directory Browsing
HTTP Errors
Static Content


Under Health and Diagnostics enable:

HTTP Logging
Request Monitor


Under Performance Features enable:

Static Content Compression

Under Security enable:

Windows Authentication

10/20/2010

Exchange Server Important Command

Eseutil -A command-line tool that inspects,defragments,
and repairs the mailbox and public folder databases
in Exchange Server 2007.

Isinteg -A command-line tool that correlates and repairs information
and relationships between mailboxes, folders ,items and attachments in an
Exchange Server 2007 database.

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

eseutil /d [options]

eseutil /p [options]

isinteg -s dervername -fix -test alltests

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

10/19/2010

Cisco 的考試心得

在寫這篇文章之前
感謝網工班熱心的同學跟恆毅Cisco課程講師毛老師的精闢教學
第一次接觸Cisco的時候(或是第一次聽到的時候)是在我當兵的時候
通訊兵摸的裝備有些都是Cisco的,然後資訊室貼的網路七層架構
(OSI模型也是Cisco定的)這家公司雖然賣的配備有點很貴,
但是貴也有貴的價值,就看企業需求如何。
Cisco獲利來源大部分以教育為最大宗
考一次CCNA 就250美金的價格真的還蠻猛的

CCNA考試科目為640-802
考試中心的網站為VUE
可以參考台北恆毅網站的申請教學
http://www.uuu.com.tw/TestCenter/Steps?selectedTab=vue

之後會寄給你一封信件
(我是用Gmail的) Mail的header為
它會給你帳號跟原始密碼,之後更改密碼
注意密碼要有大小寫混和字母喔 例: Ab1234cD
這樣就OK囉

之後通過考試後會發恭喜通過的信件並且跟他的官方網站做結合


結合教學: http://www.itcert.org/thread-1484-1-1.html 圖有點小 =.=
這樣就算真正的告一段落囉