摘要:
1 $testFile="pstips.net"2 dir | Out-File $testFile3 $shell = new-object -comobject "Shell.Application"4 $item = $shell.Namespace(0).ParseName( (Resolv... 阅读全文
摘要:
创建,显示和删除保存的用户名和密码:cmdkey.exe /add:targetname /user:username /pass:password 阅读全文
摘要:
映射网络路径:1 $net = New-Object -com WScript.Network2 $drive = "Z:"3 $path = "\\$ip\D$"4 $net.mapnetworkdrive($drive, $path, $true, $username, $password) 阅读全文