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 |
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 | |
Deploy Multiple VMs to vCenter | |
.DESCRIPTION | |
VMs are deployed asynchronously based on a pre-configured csv file (DeployVM.csv) | |
.PARAMETER csvfile | |
Path to DeployVM.csv file with new VM info |
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 | |
Checks Veeam Snapshot Backups For A Given Server Name. Also finds the Job that Server is being snapped in | |
.DESCRIPTION | |
.EXAMPLE | |
Check-ServerBackup -ComputerName Server01 | |
.EXAMPLE | |
Check-ServerBackup -ConnectVeeamServer:$true -ReloadQuery:$true -ComputerName Server02 | |
#> |
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 | |
Connect to ESX Hosts and Get Mgt IP and Test Connectivity if requested | |
.DESCRIPTION | |
.EXAMPLE | |
Get-VMHostManagementNetwork -VIServer 'vc.domain1.local' -VMHost 'ESX01.domain1.local' | |
.EXAMPLE | |
Get-VMHostManagementNetwork -VIServer 'vc2.domain1.local' | |
#> |
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
# Query VMWare for the List of All servers and compare with Veeam backups to see coverage | |
$Date = ((Get-Date -Format "yyyy-MM-dd_HHmm_K").Replace(":","-").Replace("+","-")).ToString() # _$($Date).csv" _$($Date).txt" # Date for use in Filenames with TZ | |
function Connect-VMWare{ | |
$Server = 'vcenter' | |
$VMCli = (Get-Module VMware.PowerCLI -ListAvailable).Name | |
if($VMCli -ne 'VMware.PowerCLI'){ |
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 information of a port number | |
.DESCRIPTION | |
Function provides detailed information of port numbers, like - the service which use the port, Transport protocol and a small decsription. | |
.EXAMPLE | |
PS > Get-Port -Port 20,21,53 | |
Port Service Protocol Description | |
---- ------- -------- ----------- |
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 Remove-PhishingEmail | |
{ | |
# "A maximum of 10 items per mailbox can be removed at one time" | |
# REF: https://docs.microsoft.com/en-us/microsoft-365/compliance/search-for-and-delete-messages-in-your-organization?view=o365-worldwide | |
#"Hard-deleted messages are marked for permanent removal from the mailbox and will be permanently removed the next time the mailbox is processed by the Managed Folder Assistant" REF: https://docs.microsoft.com/en-us/microsoft-365/compliance/search-for-and-delete-messages-in-your-organization?view=o365-worldwide | |
#"The goal is to process mailboxes at least once weekly. Experience is that MFA usually performs better than this and that you can expect to have mailboxes processed twice a week" REF: https://office365itpros.com/2018/12/10/reporting-the-managed-folder-assistant/ | |
NewerOlder