Compare commits
No commits in common. "ebf00f110fbec75bbd9e3e8b7b30f77749dc7211" and "2e037fe448ef75acef7fcb0c13e5126a2c6fe547" have entirely different histories.
ebf00f110f
...
2e037fe448
@ -1,13 +1,17 @@
|
||||
if($args[0] -eq $null)
|
||||
{
|
||||
#$spUrl = Read-Host "Adresse du SharePoint du client (ex: https//client.sharepoint.com) "
|
||||
#$spSite = Read-Host "Nom du site (ce qu'il y a apres '/sites/' dans l'URL du site en question) "
|
||||
$pnpCiD = Read-Host "Votre Client ID (ex: fa7800b5-0298-4205-a369-ffb976de3058) "
|
||||
$csvSPpath = Read-Host "Chemin vers la liste des sites (CSV) "
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$pnpCiD=$args[0]
|
||||
$csvSPpath=$args[1]
|
||||
$spUrl=$args[0]
|
||||
$spSite=$args[1]
|
||||
$pnpCiD=$args[2]
|
||||
$csvSPpath=$args[3]
|
||||
}
|
||||
|
||||
$csvSPfile = Import-Csv -Path "$csvSPpath"
|
||||
@ -317,6 +321,11 @@ Function Get-Folder($initialDirectory="")
|
||||
|
||||
$destinationFolder = Get-Folder
|
||||
|
||||
#region ***Parameters***
|
||||
#$SiteURL=$spUrl+"/sites/"+$spSite
|
||||
#$ReportFile="$SaveMyFile"
|
||||
#endregion
|
||||
|
||||
foreach ($site in $csvSPfile)
|
||||
{
|
||||
#Call the function to generate permission report
|
||||
|
Loading…
x
Reference in New Issue
Block a user