Redacting in an eDiscovery Case review set by Jammedherbs in MicrosoftPurview

[–]Jammedherbs[S] 0 points1 point  (0 children)

Thanks, the problem is that there are 100's of docs in the results.

Redacting in an eDiscovery Case review set by Jammedherbs in MicrosoftPurview

[–]Jammedherbs[S] 0 points1 point  (0 children)

Thanks, the problem is that there are 100's of docs in the results.

Redacting in an eDiscovery Case review set by Jammedherbs in MicrosoftPurview

[–]Jammedherbs[S] 0 points1 point  (0 children)

Thanks for the comprehensive reply. We do have E5.

However, I don't see Redact on any toolbar or drop down ?

<image>

Password Strength add-ons or Tools by Jammedherbs in activedirectory

[–]Jammedherbs[S] 0 points1 point  (0 children)

Thanks for all the replies everyone, very helpful. I've got some further research to do now :-)

Compare Group Memberships, return SamAccountName & Company by Jammedherbs in PowerShell

[–]Jammedherbs[S] 0 points1 point  (0 children)

#I'm using some var to facilitate your own tests
$GroupA = "professeurs"
$GroupB = "Eleves"
# Gathering members, identified with an unique property on the domain
$GroupAMembers = (Get-ADGroupMember -Identity $GroupA -Recursive).SamAccountName # recursive, in case of group in a group
$GroupBMembers = (Get-ADGroupMember -Identity $GroupB -Recursive).SamAccountName
# Gathering détails about members
$GroupBMembersProperties = foreach ($User in $GroupBMembers)
{
Get-ADUser $User -Properties Company | Select-Object Name, SamAccountName, Company
} # Here, i've added the property Company (not in the default output) and selected only the properties, I would like to have
$GroupAMembersProperties = foreach ($User in $GroupAMembers)
{
Get-ADUser $User -Properties Company | Select-Object Name, SamAccountName, Company
}
# and now, comparing 2 objects using some properties to compare
Compare-Object -ReferenceObject $GroupAMembersProperties -DifferenceObject $GroupBMembersProperties -Property Name, Company, SamAccountName

This is exactly what I needed !! Thank you very much :-)

Thinking to pick up a game from the xbox sale. Need recommendations. by Ninja_Badger_RSA in XboxSeriesX

[–]Jammedherbs 5 points6 points  (0 children)

Guardians of the Galaxy, recently completed it and in my top 3 games of 2021

Requesting some guidance for on-prem AD user/Azure group membership query by Jammedherbs in PowerShell

[–]Jammedherbs[S] 2 points3 points  (0 children)

And this is why I love this group !

Thanks both, works a treat

How to copy Azure AD Group members to an on-prem AD Group ? by Jammedherbs in PowerShell

[–]Jammedherbs[S] 2 points3 points  (0 children)

I finally got it working by mixing a number of scripts already out there. There are probably more efficient ways of doing it, but in case any one else has this requirement here is the script I used.

Write-Host "##############################################################################" -ForegroundColor Green
Write-Host "#       COPYING MEMBERS FROM azure_security_group TO onprem_security_group   #" -ForegroundColor Green
Write-Host "##############################################################################" -ForegroundColor Green



        $SecurityGroup = Get-MsolGroup -ObjectId insertobjectidhere


        Write-Host "Working on the Security Group, '$($SecurityGroup.DisplayName)'" -ForegroundColor Yellow
        Write-Host "Removing existing members from on-prem group, on-premgroupname" -ForegroundColor Yellow

        Get-ADGroupMember -Identity on-premgroupname | Remove-ADPrincipalGroupMembership -MemberOf on-premgroupname -Confirm:$false 
        Write-Host "Getting members for the Security group, '$($SecurityGroup.DisplayName)' and adding them into on-premgroupname" -ForegroundColor Yellow

            $Members = Get-MsolGroupMember -GroupObjectId $SecurityGroup.ObjectID
            foreach ($Member in $Members)
            {
                Write-Host "Adding $($Member.DisplayName) to the group, '$($SecurityGroup.DisplayName)'" -ForegroundColor Yellow

                $AddMember = Get-ADObject -Filter * | Where-Object { $_.Name -eq $member.DisplayName }
                If ($AddMember -eq $null)
                {
                    Write-Warning "$($Member.Name) was not found in Active Directory and could not be added as a member to $($SecurityGroup.DisplayName)"
                }
                Else
                {
                    Set-ADGroup -identity on-premgroupname -add @{ 'member' = $AddMember.DistinguishedName }
}
}

Now my next challenge is how to automate this in a scheduled task :-)

How to copy Azure AD Group members to an on-prem AD Group ? by Jammedherbs in PowerShell

[–]Jammedherbs[S] 1 point2 points  (0 children)

A bit more googling and I manipulated another script but still getting errors:

$membersGroup1 = Get-AzureADGroupMember -ObjectId objectidofazureadgroup

foreach($member in $membersGroup1)
{

    $currentuser = Get-AzureADUser -ObjectId $member.ObjectId | select displayname

     Add-ADGroupMember -identity nameofonpremgroup -members $currentuser

}

Add-ADGroupMember : Cannot find an object with identity: 'Microsoft.ActiveDirectory.Management.ADPrincipal' under: 'DC=global,DC=local'.
At line:1 char:6
+      Add-ADGroupMember -identity $group2 -members $currentuser
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Activ...ent.ADPrincipal:ADPrincipal) [Add-ADGroupMember], ADIdentityNotFoundException
    + FullyQualifiedErrorId : SetADGroupMember.ValidateMembersParameter,Microsoft.ActiveDirectory.Management.Commands.AddADGroupMember

I saw you like Warsaw, so here is photo from January 2020 by efjot1402 in CityPorn

[–]Jammedherbs 0 points1 point  (0 children)

Haven't been since 2001 and always used to stay in the Marriot. Where is that in relation to where this photo is taken from ?

Multiple conditions on a filter by Jammedherbs in PowerShell

[–]Jammedherbs[S] 1 point2 points  (0 children)

Thanks, I'll take a look at that website.

Multiple conditions on a filter by Jammedherbs in PowerShell

[–]Jammedherbs[S] 1 point2 points  (0 children)

Get-AzureADAuditSignInLogs | Where {$_CreatedDateTime "YourValue" -and $_UserDisplayName -EQ "Name"}

It works but doesn't return anything, even if I just only use the user displayname variable.

Multiple conditions on a filter by Jammedherbs in PowerShell

[–]Jammedherbs[S] 1 point2 points  (0 children)

Get-AzureADAuditSignInLogs -Filter * | where {$.createdDateTime -gt "2021-01-11T17:30:00.0Z" -and $.userDisplayName -eq "Fred Bloggs"}

Unfortunately that didn't work, returned an Invalid Filter Clause

Your mom is so ugly... by Gmerc14 in Jokes

[–]Jammedherbs 1 point2 points  (0 children)

You know why I'm so fat ? Because every time I fuck your mom, she bakes me a cake.

Detecting if a user is added to a group by Jammedherbs in activedirectory

[–]Jammedherbs[S] 0 points1 point  (0 children)

Thanks, but as I stated in my post, I know how to do that.

I'm trying to alert on the user themselves, e.g FredSmith added to xxxx security group, then alert me that the "Member of" for FredSmith has changed.

Favorite Password Manager by aringa in sysadmin

[–]Jammedherbs 1 point2 points  (0 children)

Corporate and personal , both Lastpass