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 / 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 / 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 / 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 / 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 / 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 / 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\'
#>