Posted On July 23, 2019

PowerShell: Install Windows Cluster Admin

kimconnect 0 comments
blog.KimConnect.com >> Codes >> PowerShell: Install Windows Cluster Admin
# Install Microsoft Clustering Management
Function installClusteringManagment{
# Set PowerShell Gallery as Trusted to bypass prompts
$trustPSGallery=(Get-psrepository -Name 'PSGallery').InstallationPolicy
If($trustPSGallery -ne 'Trusted'){
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
}
# Adding Microsoft Cluster
if (!(get-module -Name "FailoverClusters") ){
# Install-WindowsFeature Failover-Clustering | out-null;
Install-WindowsFeature RSAT-Clustering-MGMT | out-null;
Install-WindowsFeature RSAT-Clustering-PowerShell | out-null;
# Import-Module FailoverClusters | out-null;
}
}

installClusteringManagment;
Cluadmin.msc;

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Move Virtual Machine Storage Using VMM

# moveVmStorageUsingVmm.ps1 # Version 0.01 $vmNames=@( 'TESTVM0001', 'TESTVM0002', 'TESTVM0003' ) $storageLocations=@( 'C:\ClusterStorage\BLOB001', 'C:\ClusterStorage\BLOB002', 'C:\ClusterStorage\BLOB003' )…

Domain Name Records Overview: A-record, MX, DKIM, SPF, SRV

A RECORD (A-host): - What: address record (A-record) specifies the IP address(es) of a given…

PowerShell: Snippet to Detect and Disconnect Active PS Sessions

# Manual DetectionPS C:\Windows\system32> get-pssession Id Name ComputerName ComputerType State ConfigurationName Availability -- ---- ------------…