Skip to content

Instantly share code, notes, and snippets.

[
{
"id": "3195e36b.99fe1c",
"type": "tab",
"label": "Example",
"disabled": false,
"info": ""
},
{
"id": "e898cdb8.33c14",
kemp_loadmaster:
version: 2
auth:
community: public
walk:
- 1.3.6.1.4.1.12196.13.1
- 1.3.6.1.4.1.12196.13.2
metrics:
- name: vSidx
oid: 1.3.6.1.4.1.12196.13.1.1.1
function Start-VMStorageOptimization {
<#
.SYNOPSIS
Function to optimize storage usage on CSV volumes by using Hyper-V Live Storage Migration.
.DESCRIPTION
If you use dynamic virtual disks with VMs, you may need to monitor free space on your CSV volumes.
# variables
$promLocation = "C:\Program Files\wmi_exporter\textfile_inputs\csv.prom"
Import-Module FailoverClusters
$clustername = Get-Cluster
$objs = @()
$CurrentFree = @{}
# The following script enables the calendar processing feature for a shared mailbox
$UserCredential = Get-Credential
$Identity = Read-Host -Prompt "Please enter the identity for which you want to enable calendar processing"
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
get-mailbox $Identity | set-mailbox -type room
Set-CalendarProcessing -Identity $Identity -AutomateProcessing AutoAccept -AllBookInPolicy $true Optional -AllowConflicts $true
get-mailbox $Identity | set-mailbox -type shared
Remove-PSSession $Session
### Keybase proof
I hereby claim:
* I am smaroovers on github.
* I am smaroovers (https://keybase.io/smaroovers) on keybase.
* I have a public key whose fingerprint is 72E0 9616 90C2 A4D7 E269 6A5E FD06 4793 1C4C 9818
To claim this, I am signing this object: