Compare commits
2 Commits
2e037fe448
...
ebf00f110f
Author | SHA1 | Date | |
---|---|---|---|
ebf00f110f | |||
0b350b268d |
@ -1,17 +1,13 @@
|
|||||||
if($args[0] -eq $null)
|
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) "
|
$pnpCiD = Read-Host "Votre Client ID (ex: fa7800b5-0298-4205-a369-ffb976de3058) "
|
||||||
$csvSPpath = Read-Host "Chemin vers la liste des sites (CSV) "
|
$csvSPpath = Read-Host "Chemin vers la liste des sites (CSV) "
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$spUrl=$args[0]
|
$pnpCiD=$args[0]
|
||||||
$spSite=$args[1]
|
$csvSPpath=$args[1]
|
||||||
$pnpCiD=$args[2]
|
|
||||||
$csvSPpath=$args[3]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$csvSPfile = Import-Csv -Path "$csvSPpath"
|
$csvSPfile = Import-Csv -Path "$csvSPpath"
|
||||||
@ -321,11 +317,6 @@ Function Get-Folder($initialDirectory="")
|
|||||||
|
|
||||||
$destinationFolder = Get-Folder
|
$destinationFolder = Get-Folder
|
||||||
|
|
||||||
#region ***Parameters***
|
|
||||||
#$SiteURL=$spUrl+"/sites/"+$spSite
|
|
||||||
#$ReportFile="$SaveMyFile"
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
foreach ($site in $csvSPfile)
|
foreach ($site in $csvSPfile)
|
||||||
{
|
{
|
||||||
#Call the function to generate permission report
|
#Call the function to generate permission report
|
||||||
|
Loading…
x
Reference in New Issue
Block a user