mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 08:25:20 +00:00
Map network drive to SharePoint Online
Map network drive to SharePoint Online
This commit is contained in:
parent
3a25c55cb0
commit
55e81a45b1
6
SharePointDLMapping.ps1
Normal file
6
SharePointDLMapping.ps1
Normal file
@ -0,0 +1,6 @@
|
||||
$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’>
|
||||
Loading…
x
Reference in New Issue
Block a user