首页 > 代码库 > 映射网络路径

映射网络路径

映射网络路径:

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