This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install qemu-guest-agent -y | |
systemctl unmask systemd-logind | |
apt install dbus -y | |
systemctl start systemd-logind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _CheckCSVFolder($path) { | |
if ([string]::IsNullOrEmpty($path)) { | |
$path = ".\" | |
} else { | |
$path = $path.TrimEnd('\') | |
} | |
return $path | |
} | |
function _SaveFileWithProgressiveNumber($path) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder