Source Code and Samples

Thursday, 8 February 2007

Map network drives with powershell

Description

Map network drives with powershell

Source Code

$net = $(New-Object -ComObject WScript.Network)
$net.MapNetworkDrive("x:", \\servername\sharedfolder)

No comments: