mirror of
https://github.com/Micke-K/IntuneManagement.git
synced 2026-09-28 10:55:38 +02:00
3.10.1.1
Issue 364 - Failed to create group caused by wrong mailNickname
This commit is contained in:
+1
-11
@@ -3084,17 +3084,7 @@ function Get-GraphMigrationObjectsFromFile
|
|||||||
{
|
{
|
||||||
$groupName = $migTableGroupName
|
$groupName = $migTableGroupName
|
||||||
Write-Log "No group object found for $groupName. Creating a cloud group with default settings" 2
|
Write-Log "No group object found for $groupName. Creating a cloud group with default settings" 2
|
||||||
$dateStr = ((Get-Date).ToString("yyMMddHHmmss"))
|
$nickName = (New-Guid).Guid.SubString(0,10)
|
||||||
|
|
||||||
if(($groupName.Length + $dateStr.Length) -gt 64)
|
|
||||||
{
|
|
||||||
$nickName = $groupName.Substring(0,(64-$dateStr.Length))
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$nickName = $groupName
|
|
||||||
}
|
|
||||||
$nickName = $nickName + $dateStr
|
|
||||||
|
|
||||||
$groupJson = @"
|
$groupJson = @"
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user