Skip to content

Instantly share code, notes, and snippets.

@virtuallywired
virtuallywired / vm-file-downloader.ps1
Last active Oct 20, 2019
Finds Downloads Virtual Machine Screenshots, Logs or any other files from the Datastore VM directory to your local machine.
View vm-file-downloader.ps1
# This Script Finds Downloads Virtual Machine Screenshots, Logs or any other files from the Datastore VM directory to your local machine.
# Tested on vSphere 6.7 Update 3, vSAN 6.7 Update 3 and VMFS 6.
# Script Author: Nicholas Mangraviti #VirtuallyWired
# Version: 1.0
# Blog URL: virtuallywired.io
# Usage: Just enter the vCenter URL or IP, VM Name, Item Type, eg. LOG or PNG for Screenshots, specify the local path to download the file to.
$vCenter = "vc.virtuallywired.io"
$Creds = Get-Credential # Prompt for vCenter Credentials
@virtuallywired
virtuallywired / Modify-ESXi-FW.ps1
Last active Oct 11, 2017
Modify ESXi Firewall
View Modify-ESXi-FW.ps1
$Services = 'faultTolerance','fdm','dhcp'
$clusterName = 'VSAN-Cluster'
$csv = Import-csv "C:\scripts\allowedipmaster.csv"
$VIHosts = (Get-Cluster -Name $clusterName | Get-VMHost)
foreach ($VIHost in $VIHosts){