Google News
logo
PowerShell - Interview Questions
Explain with an example how you can map a network drive in PowerShell?
To map a network drive in PowerShell you have to use the command like
 
# PowerShell Map Network Drive

$Net = $( New - Object – ComObject Wscript.Network )

$Net.MapNetworkDrive( "D:", \\expert\FTL901 )

In here the drive letter is “D:” and the Network share is called ‘expert’ on a computer called ‘FTL901.’

Advertisement