差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
windowsbatch:windowsbatch [2016/05/17 17:47]
tony [Common]
windowsbatch:windowsbatch [2023/06/25 09:48] (目前版本)
行 19: 行 19:
   * [[powershell:​remoteSetting|PowerShell-Remote Setting]] ​   * [[powershell:​remoteSetting|PowerShell-Remote Setting]] ​
   * [[manageEventLog|管理事件檢視器]] ​   * [[manageEventLog|管理事件檢視器]] ​
 +  * [[clearFile|清空檔案的方法]]
 ===== Miscellaneous ===== ===== Miscellaneous =====
     Q. 如何echo %1、%2、%*?​     Q. 如何echo %1、%2、%*?​
行 25: 行 26:
     Q. CMD預設會找的執行檔是?​     Q. CMD預設會找的執行檔是?​
     A. %PATH%的路徑與%PATHEXT%的副檔名。     A. %PATH%的路徑與%PATHEXT%的副檔名。
 +    ​
 +===== Windows Event Log ID =====   
 +  * 開機: 12
 +  * 關機: 13
 ===== Resource ===== ===== Resource =====
 ==== Common ==== ==== Common ====
行 34: 行 39:
   * [[https://​social.technet.microsoft.com/​Forums/​windows/​en-US/​0477ceb3-264a-4058-87a9-54217c797317/​easy-way-to-see-if-an-update-is-installed?​forum=w7itproinstall|list updates2]]   * [[https://​social.technet.microsoft.com/​Forums/​windows/​en-US/​0477ceb3-264a-4058-87a9-54217c797317/​easy-way-to-see-if-an-update-is-installed?​forum=w7itproinstall|list updates2]]
   * [[http://​rakhesh.com/​windows/​get-a-list-of-recently-installed-windows-updates-via-the-command-line/​|get-a-list-of-recently-installed-windows-updates-via-the-command-line]]   * [[http://​rakhesh.com/​windows/​get-a-list-of-recently-installed-windows-updates-via-the-command-line/​|get-a-list-of-recently-installed-windows-updates-via-the-command-line]]
 +  * [[https://​docs.microsoft.com/​zh-tw/​windows-server/​administration/​windows-commands/​msinfo32|抓系統資訊 - msinfo32]]
 +  * [[https://​errorxyz.com/​winserver2019-%E5%AE%89%E8%A3%9D-net-3-5-%E9%8C%AF%E8%AA%A4-0x800f0950-%E8%A7%A3%E6%B1%BA%E6%96%B9%E6%B3%95/​|安裝dot net 3.5的絕招]] (但我還是失敗了)
 ==== Policy ==== ==== Policy ====
   * [[http://​www.jb51.net/​article/​28046.htm|Secedit使用方式]]   * [[http://​www.jb51.net/​article/​28046.htm|Secedit使用方式]]
行 50: 行 57:
   * [[http://​networkerslog.blogspot.tw/​2013/​09/​how-to-enable-remote-desktop-remotely.html|How to enable RDP?]]   * [[http://​networkerslog.blogspot.tw/​2013/​09/​how-to-enable-remote-desktop-remotely.html|How to enable RDP?]]
   * [[http://​eggeral.blogspot.tw/​2010/​06/​powershell-remote-execution-invoke.html|不需要輸入密碼的方法]]   * [[http://​eggeral.blogspot.tw/​2010/​06/​powershell-remote-execution-invoke.html|不需要輸入密碼的方法]]
 +  * [[https://​www.pdq.com/​blog/​determining-disk-type-with-get-physicaldisk/​|Determining Disk Type with Get-PhysicalDisk]]
 +  * [[http://​8thway.blogspot.tw/​2014/​04/​wmi-ssd.html|SSDかどうかをWMIから判別する]]
 +==== WMI ====
 +  * [[https://​docs.microsoft.com/​zh-tw/​dotnet/​framework/​wcf/​diagnostics/​wmi/​|使用 Windows Management Instrumentation 進行診斷]]
 +