Skip to content

Instantly share code, notes, and snippets.

View gioxx's full-sized avatar
☮️
I do things, I see people, I write.

Giovanni Francesco Solone gioxx

☮️
I do things, I see people, I write.
View GitHub Profile
@gioxx
gioxx / FindIMEDownloadURL.ps1
Last active April 8, 2025 08:27
Finds the download URL for IntuneWindowsAgent.
<#
.SYNOPSIS
Finds the download URL for IntuneWindowsAgent.
.DESCRIPTION
This script retrieves the download URL for IntuneWindowsAgent from the registry.
It checks the registry path for the specified subkeys and retrieves the DownloadUrlList and ProductVersion properties.
.EXAMPLE
.\FindIMEDownloadURL.ps1
This command runs the script to find the download URL for IntuneWindowsAgent.
.NOTES
@gioxx
gioxx / Update-CSVDelimiter.ps1
Created February 7, 2025 13:08
Funzione PowerShell che permette di modificare il delimitatore utilizzato in un file CSV (da virgola a punto e virgola, e viceversa). Accetta parametri da riga di comando (file da lavorare, opzione di delimitazione da utilizzare). Il file che gli viene dato in pasto, viene modificato (quindi occhio, fai prima backup del tuo file, se necessario).
function Update-CSVDelimiter {
param (
[string]$FilePath,
[string]$Encoding = "ISO-8859-1", # Default encoding, can be changed
[switch]$ToComma, # Switch to convert ";" to ","
[switch]$ToSemicolon # Switch to convert "," to ";"
)
# Check if the specified file exists
if (Test-Path $FilePath) {
@gioxx
gioxx / Rename.bat
Created January 30, 2025 15:19
Batch che rinomina i file PDF ottimizzati da Stirling PDF, rimuovendo loro il "_Optimized" che hanno in coda al nome del file originale.
@echo off
:: GSolone, 2025
:: Rinomina i file PDF ottimizzati tramite Stirling-PDF e toglie dal nome "_Optimized"
:: Inserisci questo file batch nella cartella contenente i file PDF e lancialo. Spostalo ovunque tu ne abbia necessità.
setlocal enabledelayedexpansion
set "findWord=_Optimized"
for %%F in (*) do (
set "oldName=%%F"
set "newName=!oldName:%findWord%=!"
if not "!oldName!"=="!newName!" ren "%%F" "!newName!"
@gioxx
gioxx / Exchange-iOS-HWVersions.txt
Last active October 4, 2024 08:19
Exchange ActiveSync iOS Hardware Versions (credits: https://justworks.ca/blog/ios-and)
iPod2C1 = iPod Touch 2
iPod3C1 = iPod Touch 3
iPod4C1 = iPod Touch 4
iPod5C1 = iPod Touch 5
iPad1C1 = iPad
iPad2C1 = iPad 2 WIFI
iPad2C2 = iPad 2 WIFI + 3G
iPad2C3 = iPad 2 WIFI + 3G CDMA
iPad2C4 = iPad Mini - WIFI
@gioxx
gioxx / csv_delimiter.py
Created July 29, 2024 12:14
Uno script per modificare il delimitatore dei file CSV (da virgola a punto e virgola).
import csv
import sys
if len(sys.argv) != 3:
print("Utilizzo: python script.py input_file.csv output_file.csv")
sys.exit(1)
input_file = sys.argv[1]
output_file = sys.argv[2]
@gioxx
gioxx / checkVMGuest.ps1
Created November 28, 2023 13:57
Verifica lo stato dei VMware Tools e della Compatibility di tutte le macchine all'interno di un vCenter al quale si è collegati. Vedi l'articolo sul blog: https://go.gioxx.org/checkvmguest
# Retrieve the status (and the version) of the VMware Tools and the Hardware Version (Compatibility) of all VMs powered on
# GSolone, 2023
# Credits
# https://communities.vmware.com/t5/VMware-vSphere-Discussions/How-to-check-VMware-Tools-status-of-VM-use-PowerCLI/td-p/2278893
# https://blogs.vmware.com/PowerCLI/2018/09/discovering-vms-with-specific-vmware-tools-versions.html
Set-Variable ProgressPreference Continue
$arr_VMStats = @()
$ProcessedCount = 0
@gioxx
gioxx / AssignP1.ps1
Created October 2, 2023 15:14
Uno script che tramite Microsoft Graph modifica la Usagelocation dell'utente e - in seguito - assegna una licenza Exchange Online Plan 1. Vedi l'articolo completo sul blog all'indirizzo https://go.gioxx.org/graph-usagelocation
Param(
[Parameter(Position=0, Mandatory=$true, ValueFromPipeline=$true, HelpMessage="User principal name (es. [email protected])")]
[string] $UserPrincipalName
)
function priv_CheckMGGraphModule {
$mggConnected = $false
if ( (Get-Module -Name Microsoft.Graph -ListAvailable).count -gt 0 ) {
try {
@gioxx
gioxx / findSkypeActivePlans.ps1
Created September 15, 2023 13:15
Cercare e rimuovere piani attivi di Skype for Business per tutti gli utenti del tenant Microsoft 365: come farlo con due script. | Search and remove active Skype for Business plans for all Microsoft 365 tenant users: how to do it with two scripts. | Vedi articolo sul blog: https://wp.me/pdQ5q-u6Y
<#
.SYNOPSIS
Find active Skype for Business services on the entire tenant using Microsoft Graph.
.DESCRIPTION
Find active Skype for Business services on the entire tenant using Microsoft Graph. Generates an array containing the detected user and license and displays it on the screen.
It also saves the same data in a CSV file within the folder from which you are launching the script (Current Directory in PowerShell) that can be used for later manipulation of users and licenses (and active Skype for Business plans).
You can execute this script without parameters and wait for results.
.NOTES
@gioxx
gioxx / Qemu-Install.sh
Last active July 17, 2023 13:22
Installazione qemu-guest-agent DietPi
apt-get update
apt-get install qemu-guest-agent -y
systemctl unmask systemd-logind
apt install dbus -y
systemctl start systemd-logind
@gioxx
gioxx / GoSignDesktop.ps1
Last active October 19, 2023 15:44
(Non funziona più, vedi commenti) Script di installazione GoSign Desktop scaricando il pacchetto più aggiornato dal sito web ufficiale e personalizzando gli argomenti passati all'installer. Articolo sul blog: https://go.gioxx.org/udiup
<#
GSolone, 2023
Credits:
https://stackoverflow.com/a/44337588
Changes:
7/7/23- Improve: I provide for download-only capability via script with parameter -DownloadOnly (without installation).
Change: removed pause command, if I download the installation package I will proceed and notify on screen.
#>
param(