系统任务 与 powershell ps1 文件交互的问题


PowerShell交流中心分类: Powershell基础系统任务 与 powershell ps1 文件交互的问题
0
hychx asked 6年 ago

windows2012 系统中
编写了一个ps1
如这样
funtion fun([string]$url )
{
curl -uri $url -Method Get
}

然后试图在操作系统cmd 下
C:\Users\admin>schtasks /Create /sc minute /mo 5 /tn liveLog /tr “powershell.exe d:\fun.ps1 fun ‘http://www.mysite.com/state=live'”

没有效果