Skip to content

Instantly share code, notes, and snippets.

View LudovicOmarini's full-sized avatar
😁
Good vibes

Ludovic Omarini LudovicOmarini

😁
Good vibes
  • Les Hôpitaux du Jura
  • Lons-le-Saunier, France
View GitHub Profile
@LudovicOmarini
LudovicOmarini / Enable_Disable_Service_Plan_O365.ps1
Last active June 21, 2023 14:23
Enable or disable service plan options within each license package while respecting current configuration for each user.
<#
.SYNOPSIS
Enable or disable service plan options within each license package while respecting current configuration for each user.
.DESCRIPTION
Even when using PowerShell, Microsoft doesn’t make it simple when it comes to adjusting licensing in bulk and service plan
options/apps within. Mainly that is because there is no easy way to keep a current configuration –
any license change you apply to a user overwrites their existing setup.
To address that letdown I created a script you can find below.
.WARNING
This script assumes you are already connected to the right services and have all modules installed.
@LudovicOmarini
LudovicOmarini / Change_Domain_userPrincipalName_O365.ps1
Created December 9, 2022 14:42
Change the domain of all office 365 users on your tenant.
<#
.SYNOPSIS
Change domain of all office 365 users.
.DESCRIPTION
This script change the domain of all office 365 users on your tenant.
This change the "userPricipalName".
.WARNING
This script assumes you are already connected to the right services and have all modules installed.
.EXAMPLE
Execute the script and type your choices.
# URL is for if you want to host your own copy of this payload
$url = "https://s.topchretien.com/media/filer_public_thumbnails/filer_public/e1/79/e179cc79-d3b4-4004-9c21-bacb3677d7da/homme_laid-_humour.jpg__770x433_q85_crop_subsampling-2_upscale.jpg"
$wp = "$Env:tmp\---wp.png"
iwr $url -O $wp
Function Set-WallPaper {
@LudovicOmarini
LudovicOmarini / ARCode_to_libretro.py
Created December 28, 2023 14:52
Convert Action Replay code to Libretro code
# Encryption seeds for Pro Action Replay v3/4
Seeds = [
0x7AA9648F,
0x7FAE6994,
0xC0EFAAD5,
0x42712C57
]
def decrypt(opcode, operand):
for i in range(32, 0, -1):
@LudovicOmarini
LudovicOmarini / Set_immutableid_to_null.ps1
Created April 8, 2024 12:58
Set immutableID for an Office 365 user to $null value
<#
.SYNOPSIS
Office 365 : Set immutableID to $null
.DESCRIPTION
This script set immutableID for an Office 365 user to $null value.
.EXAMPLE
.\Set_immutableid_to_null.ps1
#>
# Connexion à l'API Graph
@LudovicOmarini
LudovicOmarini / O365_Manage_Calendar_Rights.ps1
Created April 25, 2024 12:12
This script manages Exchange Online calendar permissions for one or more users.
<#
.SYNOPSIS
This script manages Exchange Online calendar permissions for one or more users.
.DESCRIPTION
This script first checks if the ExchangeOnlineManagement module is installed and installs it if necessary.
Then, it connects to Exchange Online and retrieves the current permissions on the specified users' calendars.
The user can then choose to add, update, or remove permissions on the calendars, specifying the target user and the permissions to grant.
The changes are then made to the relevant calendars.