Skip to content

Instantly share code, notes, and snippets.

View BeerRider's full-sized avatar

BeerRider BeerRider

  • Yekaterinburg
View GitHub Profile
@BeerRider
BeerRider / Get-LUNPathReport.ps1
Last active September 4, 2023 12:04
Get report of all paths for external stodrages in VMWare environment.
#Requires -Module VMware.VimAutomation.Core
param (
[String]
$VCenterServer = 'enteryourvcsaserver'
)
# Connect to vcenter
Connect-VIServer -Server $VCenterServer #-Credential (username@vsphere.local)
function Connect-Exchange {
[Cmdletbinding()]
param(
[Parameter(Mandatory = $false)]
[string]$URL = (Get-Content $HOME\.psvariables\exchangeserver)
)
Import-PSSession -Verbose (New-PSSession -Verbose -Name Exchange2013 -ConfigurationName Microsoft.Exchange -ConnectionUri http://$URL/PowerShell/ -Authentication Kerberos) -AllowClobber
}