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 / Convert-Doc-To-Docx.ps1
Last active August 10, 2021 14:08
This script run word application silently to convert ".doc" files to ".docx" files, include to not show the SaveAs dialog window. It's work recursively to convert all availables files.
<#
.SYNOPSIS
Convert ".doc" files to ".docx" files recursively.
.DESCRIPTION
This script run word application silently to convert ".doc" files to ".docx" files, include to not show the SaveAs dialog window.
It's work recursively to convert all availables files.
.EXAMPLE
.\Convert-Doc-To-Docx.ps1 -FolderPath 'c:\FolderWithDocFiles\'
#>
@LudovicOmarini
LudovicOmarini / Fresh-Install-Of-Windows10.ps1
Last active March 23, 2024 04:36
Delete all built-in apps on Windows10 for all current and future users except some apps, Disabling Telemetry, Removing Tiles, etc.
<#
.SYNOPSIS
Delete all built-in apps on Windows10 for all currant and future users except some apps, Disabling Telemetry, Removing Tiles, etc.
.DESCRIPTION
This script delete all built-in apps on Windows10 for all currant and future users except Windows Store, Calculator, Photos, Ubuntu and Linux
Disabling Telemetry, Removing Tiles, etc.
.EXAMPLE
.\Fresh-Install-Of-Windows10.ps1
#>
@LudovicOmarini
LudovicOmarini / Deploy_FusionInventoryAgent.bat
Last active August 12, 2021 11:17
This script install FusionInventory Agent by GPO if there is not installed or if the executable is in a newer version.
::.SYNOPSIS:
:: Deploy FusionInventory Agent by GPO.
::
::.DESCRIPTION:
:: This script install FusionInventory Agent by GPO if there is not installed or if the executable is in a newer version.
:: He also detect if it's a x86 or x64 computer to install the good executable.
:: First, you have to download the latest executables of FusionInventory Agent (x86 and x64) and link them to this script.
:: Don't forget to set your LimitDate, change your GLPI server adresse and change TAG.
:: LimitDate is the date that the script stop running.
:: You can create multiple GPOs with multiple scripts and differents TAG to organize them on FusionInventory.
@LudovicOmarini
LudovicOmarini / Softwares-List-Of-Remote-Computers.ps1
Last active August 10, 2021 14:23
Get an excel file of all softwares (x86 and x64) of computer(s) remotely.
<#
.SYNOPSIS
Get an excel file of all softwares (x86 and x64) of computer(s) remotely.
.DESCRIPTION
This script give you a list of all software installed on a remote computer.
You can find this list on an excel file created in the same folder of the script.
.EXAMPLE
Get list of a computer
.\Softwares-List-Of-Remote-Computers.ps1 -Computers DESKTOP-0123
@LudovicOmarini
LudovicOmarini / Get-Informations-Of-Remote-Computers.ps1
Last active August 10, 2021 14:21
Get informations about computer(s) remotely.
<#
.SYNOPSIS
Get informations about computer(s) remotely.
.DESCRIPTION
This script give you informations about one or multiple computers.
You can retrieve the serial number, the manufacturer, the model, the os, the architecture and the users currently connected.
.EXAMPLE
Get informations of a computer
.\Get-Informations-Of-Remote-Computers.ps1 -Computers DESKTOP-0123
Get informations of multiple computers
@LudovicOmarini
LudovicOmarini / Encrypt_And_Decrypt_String.php
Last active August 12, 2021 11:49
How to encrypt/decrypt a string in PHP.
/*
.SYNOPSIS
Encrypt and decrypt a string.
.DESCRIPTION
This function is a simple way to encrypt and decrypt a string.
.EXAMPLE
To encrypt :
$encrypted = encryption( 'Hello World!', 'e' );
To decrypt :
$decrypted = encryption( 'RTlOMytOZStXdjdHbDZtamNDWFpGdz09', 'd' );
@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
@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 / 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 / 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