powershell admin 运行脚本

Start-Process powershell -verb runas -ArgumentList "-file c:\cmd\task.ps1"

 

开启多个tab,并分别调至不同path

wt `; -M `; new-tab -d D:\path1\ `; new-tab -d D:\path2\ `; split-pane -d D:\path3\ `; split-pane -H -d D:\path4\ 

 

posted @ 2020-08-05 10:46  fndefbwefsowpvqfx  阅读(216)  评论(0编辑  收藏  举报