##如何在BAT中调用powershell,把下面代码另存为bat格式
pushd %~dp0
powershell.exe -command ^
"& {set-executionpolicy Remotesigned -Scope Process; .'.\ClearIISLogFiles.ps1' }"
popd
pause
在Bat批处理中调用Powershell脚本
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
PowerShell
wwtwwttc
2019-02-23 12:56:16
如何使用Powershell为office 365用户批量分配许可证
AbrahamXu
2019-02-23 00:10:08
Powershell监控操作系统用户账号事件并预警
海底小縱隊
2019-02-23 00:07:30
Powershell中禁止执行脚本解决办法
zhanghmjm
2019-02-22 22:48:25
PowerShell 远程重置Vyos IPSec连接
beanxyz
2019-02-22 22:28:48
Powershell 方式安装Lync Server 2010 Lync Server 2013 前提组件。
54whh
2019-02-22 21:44:11
PowerShell脚本无法运行问题解决方法
54whh
2019-02-22 21:44:11
找出占用Installer 目录空间的元凶
yoke88
2019-02-22 21:26:51
AD-Powershell for Active Directory Administrators
chenxin4728
2019-02-22 20:59:57
AD-Powershell for Active Directory Administrators
chenxin4728
2019-02-22 20:59:50
批处理学习笔记(三)--批处理中输出《空白行》
Ajie_chen
2019-02-23 00:23:18
VB控件:mscomm32.ocx
wnyw
2019-02-23 00:14:46
.bat脚本基本命令语法
志強1224
2019-02-22 23:08:06
windows 启动多个bat脚本
cd1989929
2019-02-22 21:00:57