![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
powershell
天地英豪
这个作者很懒,什么都没留下…
展开
-
powershell批量重命名文件
#批量重命名 #去掉名称中"第"之前的字符 Get-ChildItem -Path "D:\path" -Filter *.* | ForEach-Object{ #echo $_.Name $index = $_.Name.IndexOf("第") #echo $index if($index -ge 0){ $len = $_.N...原创 2018-02-18 02:23:42 · 705 阅读 · 0 评论 -
powershell脚本:批量注册/取消windows cluster task
首先创建普通计划任务,定好执行时间,千万千万记得设置任务的起始路径.然后导出xml到指定目录,执行如下脚本批量注册/取消windows cluster task :function ImportTasks( [String]$xmlPath, [String]$clusterName) { #[String]$root, #taskpath is not support in clus...原创 2018-06-26 09:07:17 · 323 阅读 · 0 评论