2012-12-09
2012-10-13
Windows How to Finding non present devices
1. Open Command shell
2. type "set devmgr_show_nonpresent_devices=1"
3. type "start devmgmt.msc"
4. Select "Show hidden devices"
2. type "set devmgr_show_nonpresent_devices=1"
3. type "start devmgmt.msc"
4. Select "Show hidden devices"
2012-08-14
dsquery command
dsquery user -inactive 13 ==>list users have no login for 91 days.
dsquery user -stalepwd 180 ==>list users that the password had been used for 180 days.
dsquery user -stalepwd 180 ==>list users that the password had been used for 180 days.
2012-08-08
netsh command change IP address
netsh interface ip set address "Local Area Connection" static 192.168.0.1 255.255.255.0 192.168.0.254 1
netsh firewall set icmpsetting 8 => allow others to ping you
netsh firewall set icmpsetting 8 disable=> deny others to ping you
netsh firewall set icmpsetting 8 => allow others to ping you
netsh firewall set icmpsetting 8 disable=> deny others to ping you
2012-07-23
EventTriggers
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/eventtriggers.mspx?mfr=true
- /create - is used to create an event trigger,
- /delete can be used to delete the trigger
- /eid - is the event id number you wish to track
- /tr - is the name you would like to give to the event trigger
- /ru - is the user name to run under userdomain or user@domain.com are both acceptable
- /rp - is the user password
- /tk - is the action you would like performed when triggered
- /query - a list of event triggers
How to set event log security locally or by using Group Policy in Windows Server 2003
http://support.microsoft.com/kb/323076/en-us
http://social.technet.microsoft.com/Forums/zh-TW/winserverzhcht/thread/eda758fa-8841-4d64-9edb-5b798d99600d/
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Eventlog\Security
對CustomSD點兩下後,在最後面加上下面一行
(A;; 0x1;;;UserSID)
A=Allow
1 = 讀取
2 = 寫入
3 = 讀取+寫入
4 = 清除
http://social.technet.microsoft.com/Forums/zh-TW/winserverzhcht/thread/eda758fa-8841-4d64-9edb-5b798d99600d/
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Eventlog\Security
對CustomSD點兩下後,在最後面加上下面一行
(A;; 0x1;;;UserSID)
A=Allow
D=Deny
2 = 寫入
3 = 讀取+寫入
4 = 清除
7 = 讀取+寫入+清除
2011-12-13
微軟出品 -- 管理工具
Sysinternal
用來管理微軟的作業系統,非常好用的小工具,小工具、大功用。
http://technet.microsoft.com/en-us/sysinternals/default.aspx
打包http://download.sysinternals.com/Files/SysinternalsSuite.zip
http://technet.microsoft.com/en-us/sysinternals/default.aspx
打包http://download.sysinternals.com/Files/SysinternalsSuite.zip
Patch 派送 -- 沒有 WSUS or SMS 怎麼辦?
Patch 派送 -- 沒有 WSUS or SMS 怎麼辦?
1. 若是在 AD 的環境中,可以使用網域管理者的帳號或是具有本機管理者權限的帳號來做。
2. 若是非 AD 的環境,則必須有本機管理者權限的帳號與密碼。
For example
psexec.exe \\computername or IP -u "user_name" -p "password" -c "patch" /q /norestart
\\computername or IP 可以用 @file 來大量部署,將 "電腦名稱或IP"輸入txt檔
"user_name" 必須具有本機管理者權限
"password" 當然就是要輸入 "密碼" 囉
-c 就是把 patch 複製到該台電腦上執行
/q 不顯示安裝畫面
/norestart 安裝完,不重開機
2. 若是非 AD 的環境,則必須有本機管理者權限的帳號與密碼。
For example
psexec.exe \\computername or IP -u "user_name" -p "password" -c "patch" /q /norestart
\\computername or IP 可以用 @file 來大量部署,將 "電腦名稱或IP"輸入txt檔
"user_name" 必須具有本機管理者權限
"password" 當然就是要輸入 "密碼" 囉
-c 就是把 patch 複製到該台電腦上執行
/q 不顯示安裝畫面
/norestart 安裝完,不重開機
訂閱:
文章 (Atom)