Posted On July 23, 2020

Hyper-V: De-register Storage File Share and/or Removing Paths from VMM

kimconnect 0 comments
blog.KimConnect.com >> Virtualization >> Hyper-V: De-register Storage File Share and/or Removing Paths from VMM
# vmmDeregisterFileSharePath.ps1

$pathSearch='\\DECOMMISSIONED-FILESHARE008'
$unregister=$true
$remove=$false

$fileShares=Get-SCStorageFileShare|?{$_.SharePath -like "*$pathSearch*"}
$thisLibraryServer = Get-SCLibraryServer
if($unregister){$fileShares|%{Unregister-SCStorageFileShare -StorageFileShare $_ -LibraryServer $thisLibraryServer}}
if($remove){$fileShares|%{Remove-SCStorageFileShare -StorageFileShare $_}}

# Un-resolvable errors due to certain decommed dependencies being unavailable for VMM to make changes
# Unregister-SCStorageFileShare : The file share is not associated to (Error ID: 26187)
# Remove-SCStorageFileShare : The file share could not be removed because it is not currently managed by VMM. (Error ID: 26240)

Leave a Reply

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

Related Post

Install ESX 5.5 on 5th Generation NUC

Download the following:- ESX 5.5 ISO- ESXi-Customizer v2.7.2 - net-e1000e-3.1.0.2-glr-offline_bundle.zip (https://vibsdepot.v-front.de/wiki/index.php/Net-e1000e)- uNetbootinFollow these steps:- Edit…

How to Remove ‘Ghost’ VMs with Status ‘Off-Critical’ or ‘Saved-Critical’

Issue: Resolution: get-vm|?{$_.State -in @('OffCritical','SavedCritical')}|remove-vm -force

VMware ESX Installation Procedures

1. Install ESX from ISO Putty Rufus MWware-VCSA-all-6.0.0-2562643.iso VMware-viclient.exe KVM console (ie. Lantronix) 2. Install…
Other project: DragonCoin.com