差異處

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

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
windowsbatch:windowsbatch [2015/09/13 23:08]
127.0.0.1 外部編輯
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 ====
行 31: 行 36:
   * [[http://​stackoverflow.com/​questions/​3942265/​errorlevel-in-a-for-loop-batch-windows|errorlevel的處理]]   * [[http://​stackoverflow.com/​questions/​3942265/​errorlevel-in-a-for-loop-batch-windows|errorlevel的處理]]
   * [[http://​www.windows-commandline.com/​get-file-modified-date-time/​|檔案修改時間]]   * [[http://​www.windows-commandline.com/​get-file-modified-date-time/​|檔案修改時間]]
 +  * [[http://​www.techsupportalert.com/​content/​quick-and-easy-way-list-all-windows-updates-installed-your-system.htm|list updates]]
 +  * [[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]]
 +  * [[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使用方式]]
行 42: 行 52:
   * [[http://​www.krenger.ch/​blog/​windows-server-the-terminal-server-has-exceeded-the-maximum-number-of-allowed-connections/​|遠端桌面因連線數過多的連線方法]]   * [[http://​www.krenger.ch/​blog/​windows-server-the-terminal-server-has-exceeded-the-maximum-number-of-allowed-connections/​|遠端桌面因連線數過多的連線方法]]
   * [[http://​www.ccy.twbbs.org/​blog/?​p=708|遠端重開機]]   * [[http://​www.ccy.twbbs.org/​blog/?​p=708|遠端重開機]]
 +  * [[http://​www.techgainer.com/​create-batch-file-automatically-run-administrator/​|讓Batch使用admin執行的兩種方法]]
 ==== PowerShell ==== ==== PowerShell ====
   * [[http://​ss64.com/​ps/​|PowerShell Command List]]   * [[http://​ss64.com/​ps/​|PowerShell Command List]]
   * [[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 進行診斷]]
 +