摘要: 将所有计算机添加到受信任主机列表 set-item wsman:localhost\client\trustedhosts -Force -value * 远程批量读取c:\c.txt $account = "zhangsan" $password = '!@#$%54321' $secpwd = 阅读全文
posted @ 2022-03-09 16:41 shenshu 阅读(204) 评论(0) 推荐(0)
摘要: Function myfun() { $cmd="ipconfig | findstr "+'"'+"IPv4"+'"' $ipaddr = iex $cmd if($ipaddr -isnot [Array]) { $ip=$ipaddr.Split(":")[1] return $ip.Trim 阅读全文
posted @ 2022-03-09 12:37 shenshu 阅读(177) 评论(0) 推荐(0)