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 / 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 / OffScrub16.vbs
Created July 18, 2016 12:36
OffScrub_O16msi.vbs Ufficiale Microsoft (Script to remove (scrub) Office 2016 MSI products when a regular uninstall is no longer possible)
'=======================================================================================================
' Name: OffScrub_O16msi.vbs
' Author: Microsoft Customer Support Services
' Copyright (c) 2015 Microsoft Corporation
' Script to remove (scrub) Office 2016 MSI products
' when a regular uninstall is no longer possible
'=======================================================================================================
Option Explicit
Dim sDefault
@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(
@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. mario.rossi@contoso.com)")]
[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 / Export-MFAStatusDefaultMethod.ps1
Created June 23, 2023 14:25
Esporta la lista degli utenti che fanno uso di MFA e riporta il metodo di autenticazione predefinito (SMS/call/TOTP/Authenticator App). Maggiori informazioni disponibili sul blog all'indirizzo https://wp.me/pdQ5q-tOk
function _CheckCSVFolder($path) {
if ([string]::IsNullOrEmpty($path)) {
$path = ".\"
} else {
$path = $path.TrimEnd('\')
}
return $path
}
function _SaveFileWithProgressiveNumber($path) {
@gioxx
gioxx / custom_style.css
Created June 22, 2023 14:10
Una modifica al foglio di stile personalizzato di Manage Engine Service Desk Plus per permettere una più comoda fruizione del div di risposta ai ticket da schermi più piccoli rispetto a quelli classici da scrivania. Maggiori informazioni disponibili sul blog all'indirizzo https://wp.me/pdQ5q-tOc
@media (max-width: 1600px) {
.replyPopup_s2id_height {
height: 10px !important;
}
.replyPopup_ta_height {
min-height: 500px;
}
#body>div.ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.req-noti-popup.ui-draggable.ui-resizable {
@gioxx
gioxx / MsolAccountSku-Export.ps1
Created June 12, 2023 09:46
La funzione che utilizzo per esportare le licenze in uso nel tenant Microsoft 365. Maggiori informazioni disponibili qui: https://wp.me/pdQ5q-tKh - Dai un'occhiata al modulo completo "ToyBox" disponibile all'indirizzo https://github.com/gioxx/ps.toybox
function MsolAccountSku-Export {
param(
[Parameter(Mandatory=$false, ValueFromPipeline, HelpMessage="Folder where export CSV file (e.g. C:\Temp)")][string] $folderCSV
)
if ( (Get-Module -Name Microsoft.Graph -ListAvailable).count -eq 0 ) {
Write-Host "Please install the Graph module using this command (then relaunch this script): `nInstall-Module Microsoft.Graph" -f "Yellow"
exit
} else { Connect-MgGraph | Out-Null }
@gioxx
gioxx / lolDrivers_FindMatches.ps1
Created May 30, 2023 13:27
Lo script si basa su quello pubblicato da Conan (https://go.gioxx.org/uditl), leggermente modificato per scrivere i risultati anche su file (di testo) che verrà caricato su Gist (privato) nel momento in cui dovesse trovare dei driver vulnerabili. Ne parlo sul blog: https://wp.me/pdQ5q-tGZ
Param(
[Parameter(Mandatory,ValueFromPipeline)][string]$GHToken
)
#Requires -Version 5.1
Set-StrictMode -Version 'latest'
$ErrorActionPreference = 'stop'
[bool]$found = $false
Start-Transcript -Path "$env:TEMP\lolDrivers_Results.txt" -IncludeInvocationHeader -Force