I'm looking for the correct parameter positions for this call. Especially the persistent, username, and password positions.
$( New-Object -ComObject WScript.Network).MapNetworkDrive( "K:", "\\server\share", $True, "username", "passwword" )
Using the above syntax the drive will map but requests a username and password when accessed. I'm thinking the parameter positions are wrong, can't find it on the net.
Thanks,
David.
$( New-Object -ComObject WScript.Network).MapNetworkDrive( "K:", "\\server\share", $True, "username", "passwword" )
Using the above syntax the drive will map but requests a username and password when accessed. I'm thinking the parameter positions are wrong, can't find it on the net.
Thanks,
David.