映射网络路径

映射网络路径:

1 $net = New-Object -com WScript.Network
2 $drive = "Z:"
3 $path = "\\$ip\D$"
4 $net.mapnetworkdrive($drive, $path, $true, $username, $password)

 

posted on 2014-08-22 09:50  momingliu11  阅读(392)  评论(0编辑  收藏  举报