Skip to content

Instantly share code, notes, and snippets.

View kevinblumenfeld's full-sized avatar
🎯
Focusing

Kevin Blumenfeld kevinblumenfeld

🎯
Focusing
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kevinblumenfeld
kevinblumenfeld / Set-StandardMember.ps1
Created March 1, 2023 02:34 — forked from santisq/Set-StandardMember.ps1
sets PSStandardMember for all input objects
using namespace System.Management.Automation
function Set-StandardMember {
[CmdletBinding()]
param(
[parameter(Mandatory, ValueFromPipeline)]
[object] $InputObject,
[parameter(Mandatory)]
[string[]] $DefaultProperties
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Obj RefId="0">
<TN RefId="0">
<T>System.Collections.Hashtable</T>
<T>System.Object</T>
</TN>
<DCT>
<En>
<S N="Key">SourceApp</S>
<Obj N="Value" RefId="1">
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using DotNetCoreRazor_MSGraph.Graph;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Extensions.Logging;
function Remove-GraphGroupMember {
<#
.SYNOPSIS
Removes Members from Azure AD Security Group or Microsoft 365 Group
.DESCRIPTION
Removes Members from Azure AD Security Group or Microsoft 365 Group
.PARAMETER UserID
This is the User's ID. This is the user to be removed from the group
Find-MgGraphCommand
Find-MgGraphPermission
Get-MgSecurityAction
Get-MgSecurityAlert
Get-MgSecurityAttackSimulation
Get-MgSecurityCloudAppSecurityProfile
Get-MgSecurityDomainSecurityProfile
Get-MgSecurityFileSecurityProfile
Get-MgSecurityHostSecurityProfile
Get-MgSecurityIncident