随笔分类 - PowerShell
windows强大的工具PowerShell
摘要:1.首先检查powershell版本: 应该为5.1 低版本升级补丁:https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6 WIN7S
阅读全文
摘要:REM:生成一个文件 del > Time.log echo > Time.log REM:获取系统日期及时间,同时将时间转换为8位(8:16:00-->08:16:00).写入文件。 :ABC set CurDate=%date:~0,10% set CurTime=%time% set hh=%CurTime:~0,2% if /i %hh% LSS 10 ...
阅读全文
摘要:https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6
阅读全文
摘要:Get-InitiatorID Get-InitiatorPort
阅读全文
摘要:删除补丁KB3191566 重新安装: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-windows-powershell?view=powershell-6
阅读全文
摘要:实例:替换一个目录下所有的字幕文件从720p到1080p *需要替换部分不可存在于全路径中 不然PS会报错路径无法替换 *Filter目前无效,尚不明确原因
阅读全文
摘要:1.禁用CMD win+Q gpedit 打开组策略 用户配置--管理模板--系统--阻止访问命令提示符--已启用。 2.启用PowerShell PS:需要使用CMD时可用powershell代替: win+Q powershell
阅读全文