Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-it committed Nov 23, 2024
1 parent c164b74 commit b745896
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Find all the Microsoft 365 Groups that a user is an Owner of and replace them wi
$hasOwner = $null
# verify if the old user is in the owners list
$hasOwner = m365 entra m365group user list --groupId $group.id --query "[?userType=='Owner' && userPrincipalName=='$oldUser'].[id]" | Get-CLIValue
$hasOwner = m365 entra m365group user list --groupId $group.id --role owner --query "[?userPrincipalName=='$oldUser'].[id]" | Get-CLIValue
if ($hasOwner -ne $null) {
Write-Host "Found $oldUser" -ForegroundColor Green
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "7.7.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The following script shows how you can copy all library folders and contents to
# Copy everything (folders and files) to this target level 1 folder
Write-Host "Copying '$($Folder.ServerRelativeUrl)' to '$DestinationFolderUrl'" -ForegroundColor Cyan
m365 spo folder copy --webUrl $SiteURL --sourceUrl $Folder.ServerRelativeUrl --targetUrl $DestinationFolderUrl --allowSchemaMismatch
m365 spo folder copy --webUrl $SiteURL --sourceUrl $Folder.ServerRelativeUrl --targetUrl $DestinationFolderUrl
}
# Copy files from root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ When you delete Microsoft 365 groups, the modern group-connected team sites get
$progress++
write-host $progress / $total":" $site.Title
write-host $site.Url
m365 spo site remove --url $site.Url
m365 spo site remove --url $site.Url --force
}
```

Expand Down Expand Up @@ -74,7 +74,7 @@ When you delete Microsoft 365 groups, the modern group-connected team sites get
siteUrl=$(echo ${site} | jq -r '.Url')
echo "Deleting site..."
echo $siteUrl
m365 spo site remove --url $siteUrl
m365 spo site remove --url $siteUrl --force
done
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "6.3.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "6.3.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "6.3.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "6.4.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "6.9.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "6.3.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "6.3.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Changing the URL of a site results in a new site type: a Redirect Site. However
}
If($body.StatusCode -eq "404"){
Write-Host -f Red " Target location no longer exists, should be removed"
m365 spo site remove --url $siteUrl
m365 spo site remove --url $siteUrl --force
}
}
}
Expand Down Expand Up @@ -87,7 +87,7 @@ Changing the URL of a site results in a new site type: a Redirect Site. However
siteUrl=$(echo ${site} | jq -r '.Url')
echo "Deleting site..."
echo $siteUrl
m365 spo site remove --url $siteUrl
m365 spo site remove --url $siteUrl --force
done
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "7.4.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"metadata": [
{
"key": "CLI-FOR-MICROSOFT365",
"value": "7.0.0"
"value": "10.0.0"
}
],
"thumbnails": [
Expand Down

0 comments on commit b745896

Please sign in to comment.