mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 08:25:20 +00:00
6 lines
406 B
PowerShell
6 lines
406 B
PowerShell
$URL = “https://your_domain.sharepoint.com/sites/test_site/Shared%20Documents” #<Replace with your document library URL copied in the first procedure>
|
||
$IESession = Start-Process -file iexplore -arg $URL -PassThru -WindowStyle Hidden
|
||
Sleep 20
|
||
$IESession.Kill()
|
||
$Network = new-object -ComObject WScript.Network
|
||
$Network.MapNetworkDrive('Z:', $URL) #<Use the required drive name in place of ‘Z’> |