This file contains hidden or 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 | |
Gets a VM's last backup job and job start time based on tag or job name and and whether it is in progress | |
.DESCRIPTION | |
.EXAMPLE | |
Get-VeeamBackupJobTimes -ComputerName Server1 | |
.EXAMPLE | |
Get-VeeamBackupJobTimes -ComputerName Server1 -VBR VBR01.domain.com -VC vc01.domain.com | |
#> |
This file contains hidden or 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 | |
Get Local Windows Firewall Drops or Allows | |
.DESCRIPTION | |
Long description | |
.EXAMPLE | |
Get-FirewallDropOrAllows -IP 1.1.1.1 -DropOrAllow Drop -MinsAgo 1 | |
.EXAMPLE | |
#WIP | |
Get-FirewallDropOrAllows -IP 10.1.1.1 -DropOrAllow Drop -Protocol 'TCP' -HoursAgo 1 -ExportToCSV:$true |
This file contains hidden or 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 Get-VLAN { | |
Write-Host -f Green "For a Physcial Box:" | |
Get-NetAdapter | Select-Object Name,VlanID | |
Write-Host -f Green "For a VMware VM:" | |
Get-VM -Name $ENV:COMPUTERNAME | Get-VirtualPortGroup #| Select Name, VLanId | |
} |
This file contains hidden or 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 Get-iSCSiIQN { | |
Write-Host -f Green "$($env:COMPUTERNAME)`r`n" | |
Get-InitiatorPort | Select-Object -ExpandProperty NodeAddress | |
} |
This file contains hidden or 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 Disable-iPv6 { | |
#Requires -RunAsAdministrator | |
# Self-elevate the script if required | |
if( ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") -eq $false){ | |
Write-Warning "Run As Admin Required" | |
} | |
if( ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") -eq $true){ | |
Write-Host -f Green "Running As Admin - Success" | |
} |
This file contains hidden or 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
# Requires no Active Directory Module or rights. | |
$UPN = (([ADSISEARCHER]"samaccountname=$($env:USERNAME)").Findone().Properties).userprincipalname ; $UPN |
This file contains hidden or 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 Connect-Exchange | |
{ | |
$UPN = (([ADSISEARCHER]"samaccountname=$($env:USERNAME)").Findone().Properties).userprincipalname ; $UPN | |
Connect-ExchangeOnline -UserPrincipalName $UPN -ShowProgress $true | |
} |
This file contains hidden or 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
. C:\SCRIPTS\VEEAM\Connect-Veeam\Connect-Veeam.ps1 # Load the Connect Veeam Function | |
Connect-Veeam -VeeamServer $ENV:COMPUTERNAME | |
$JobSizes = Get-VBRBackup | Select @{N="Job Name";E={$_.Name}}, @{N="Size (GB)";E={[math]::Round(($_.GetAllStorages().Stats.BackupSize | | |
Measure-Object -Sum).Sum/1GB,1)}} | |
$JobSizes | Format-Table -AutoSize | |
$JobSizes | Export-CSV -NoTypeInformation $OutJobSizes |
This file contains hidden or 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
#Requires -Version 3.0 | |
#Requires -PSEdition Desktop | |
#Requires -Module @{ModuleName="Veeam.Backup.PowerShell"; ModuleVersion="1.0"} | |
<# | |
.SYNOPSIS | |
My Veeam Report is a flexible reporting script for Veeam Backup and | |
Replication. | |
.DESCRIPTION | |
My Veeam Report is a flexible reporting script for Veeam Backup and |
NewerOlder