2007年6月28日 星期四

admin scripting tools

一些和自動化網管有關的東西
重點:WSH, PowerShell, WMI, ADSI, VBS
需求:語法提示
Bonus: Script Resource, REference

Scripting Tools:
OnScript Editor: $75
focus on script, fully COM library and few reference
Neat one, small and useful.
Better than ASE personal edition, esp in syntax remind.
Admin Script EDitor: $99
Slow, unstatable.
Lots reference tho.
Fully com library.
A bit heavy, not a smooth one. Kind of bad organize.
But full support to WMI, ADSI (enterprise edtion, $299 orz)

Focus On VBS: $15
support VBS
有語法提示
PowerShell IDE(PowerShell Analyzer): $100, $59 promotion
Support Powershell,
Only Powershell

Resource Tuner Console: $199
· Add, edit, rename, replace, or delete string resources in executables
· Add, delete, or update file version information
· Modify the language for all of the resources in the files to one uniform value
· Convert a multi-lingual resource directory into a single-language one
· Convert a single-language resource directory into a multi-lingual one
· Create a copy of the resource with another specified language
· Provide support for multi-byte international character sets
· Update the checksum in the PE file header
· Export and save an entire file's resources as a resource DLL
· Multiple invokations using different parameter values

SystemScripter
One of the best script editors worldwide, Systemscripter supports a wide range of script languages (VBScript, HTA, ASP, and WSF), comes with an integrated debugger, code folding, WYSIWYG designer for HTML, code snippet support and lots of browsers which not only reveal scriptable COM libraries on your systems but also WMI, ADSI, and Active Directory. Via drag & drop, the editor automatically generates script code and helps write professional scripts even if you just begin to script windows. Version 6.01.20 may include unspecified updates, enhancements, or bug fixes.


網站
http://www.softpedia.com/
Guy Thomas: Logon Scripts, VBScripts for W2K3 and WSH Scripts and the Scripting Ezine

.Jeffery D. Hicks: JDH Information Technology Solutions - Script Samples and Newsletters.

Rob van der Woude's Scripting Pages - chock-full of scripting examples, ready to be used.

Scripting Guide for Windows - Part of the WinGuides Network: VBScript Reference Guide, WSH Reference Guide

2007年6月15日 星期五

用VBS寄信

http://www.paulsadowski.com/WSH/cdo.htm

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "me@my.com"
objMessage.To = "test@paulsadowski.com"
objMessage.TextBody = "This is some sample message text."
objMessage.AddAttachment "c:\temp\readme.txt"
objMessage.Send

Windows下備份的免費方法

1 SyncToy: MS出的免費軟體,目前最新版號1.4。可惜在我的XP sp2上跑會有問題。
另一個問題是似乎不能用指令開啟、給參數,可惜了。
2 xCopy:其實我覺得這東西比較好用.. 可惜無法做差異備份
參數:

複製檔案和樹狀目錄。

XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
[/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
[/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]\r\r
[/EXCLUDE:file1[+file2][+file3]...]

source 指定要複製的檔案。
destination 指定位置或者/以及新檔案的名稱。
/A 只複製設定成保存屬性的檔案,不要改變屬性的設定。
/M 只複製設定成保存屬性的檔案,並清除保存屬性。
/D:m-d-y 複製在指定日期當天或之後發生變更的檔案。如果沒有給日期,
只複製那些來源檔案日期比目的檔案日期為新的檔案。
/EXCLUDE:file1[+file2][+file3]...
指定檔案清單字串。每個字串
應該在檔案中的不同行。如果有字串對應到要進行複製的檔案絕
對路徑的任何部分,這個檔案會被排除複製。例如,指定字串
\obj\ 或 .obj 的話,會排除所有在 obj 目錄下副檔名是
.obj 的檔案複製。
/P 在建立每個目的檔案時顯示提示。
/S 複製每個目錄及其包含的子目錄,不複製空目錄。
/E 複製每個目錄及其包含的子目錄,也複製空目錄。/S 與 /E
相同,能夠用來修改 /T。
/V 驗證每個新檔案。
/W 在複製之前提示您按鍵繼續。
/C 如果錯誤發生時也繼續複製。
/I 如果目的不存在且複製一個以上的檔案的話,就假設指定的
目的一定是目錄。
/Q 在複製時不要顯示檔名。
/F 在複製時顯示來源及目的檔案的全部檔名。
/L 顯示要複製的檔案。
/G 允許加密檔案複製到不支援加密的
目的地。
/H 時複製隱藏檔和系統檔。
/R 覆蓋唯讀檔案。
/T 建立目錄結構,但不複製其中的檔案。不包括空目錄及子目錄。
/T /E 會包括空目錄及子目錄。
/U 只複製已經存在目的位置的檔案。
/K 複製檔案屬性。通常 Xcopy 會重設唯讀的屬性。
/N 用所產生的短檔名來進行複製。
/O 複製檔案所有權及 ACL 資訊。
/X 複製檔案審查設定 (包含 /O)。
/Y 不要提示您確認是否要覆蓋一個已經存在的檔案。
/-Y 示您確認是否要覆蓋一個已經存在的檔案。
/Z 在可重新開始的模式中複製網路檔案。

參數 /Y 可以在 COPYCMD 環境變數中預先設定。但可以在命令列中用 /-Y 參數
來覆蓋原有設定。

2007年6月13日 星期三

Win Server 管理員必備工具

Windows Server 2003 支援工具
  1. Windows Server 2003 Administration Tools Pack
  2. Microsoft Network Monitor 3
  3. Windows Server 2003 Service Pack 1 Administration Tools Pack
  4. Windows Server 2003 Service Pack 1 32-bit Support Tools
  5. Windows Server 2003 Resource Kit Tool Updates
  6. Windows Server 2003 Management Services

IIS6 下載搜尋結果

節錄其中一些部分
  1. Debug Diagnostic Tool v1.1
  2. IIS Diagnostics Toolkit (x86)
  3. IIS Diagnostics Toolkit (x64)
  4. Internet Information Services (IIS) 6.0 Manager for Windows XP
  5. Internet Information Services (IIS) 6.0 Resource Kit
  6. Authentication and Access Control Diagnostics 1.0 (x86)
  7. TraceDiag 1.0 (x86)
  8. Trace Diagnostics 1.0 (ia64)





Internet Information Services (IIS) 6.0 Resource Kit Tools

內含工具:
  • IIS 6.0 Migration Tool Version 1.0 Version 1.1 Now Available!
  • Apache to IIS 6.0 Migration Tool Version 1.0
  • CustomAuth Version 1.0
  • IISCertDeploy.vbs Version 1.0
  • IIS Host Helper Service Version 1.0
  • IISState Version 3.0
  • Log Parser Version 2.1 Version 2.2 Now Available!
  • Metabase Explorer Version 1.6
  • Permissions Verifier Version 1.0
  • RemapUrl Version 1.0
  • SelfSSL Version 1.0
  • TinyGet Version 5.2
  • Web Capacity Analysis Tool Version 5.2
  • WFetch Version 1.3

IIS Diagnostics Toolkit (x86)

內含工具:
  • Authentication and Access Control Diagnostics 1.0
  • SSL Diagnostics 1.1
  • SMTP Diagnostics 1.0
  • Log Parser 2.2
  • Trace Diagnostics 1.0
  • WFetch 1.4
  • Debug Diagnostics 1.0

    Windows Server 2003 Service Pack 1 Administration Tools Pack

  • 說明請看http://support.microsoft.com/default.aspx?scid=kb;en-us;304718