Delete Snapshot's from Multiple Virtual Machines

Swapnil Infotech
Swapnil Infotech
1.8 هزار بار بازدید - 2 سال پیش - In This Video, You will
In This Video, You will be learning how to user Remove-Snapshot command to Delete snapshot on Multiple Computer. You have to create a text file with all computer name that you want to delete a snapshot. Use the script and let me know if you are facing any challenges.

=======================================================
$Credential = Get-Credential -Message "Enter Login Credential"
$vCenter =  Read-Host -Prompt "Enter vCenter Name"
Connect-VIServer -Server $vCenter -Credential $Credential
$VMs = Get-Content C:\Scripts\Allservers.txt
foreach ($vm in $VMs){
Get-VM $vm | Get-Snapshot | Remove-Snapshot -Confirm:$false}
pause
=======================================================

Create Snapshot on Multiple Virtual Machine
Create Snapshot on Multiple Virtual M...

How can I check if a port is open remotely
Identify if Windows TCP Ports are ope...

Installing software remotely on Multiple "Workgroup" Computers
Installing software remotely on Multi...

PowerShell Installing software remotely on Multiple Computers
PowerShell Installing software remote...

Unable to move OU in Active Directory (Access is denied)
Unable to move OU in Active Directory...

PowerShell Installing software remotely on Multiple Computers
PowerShell Installing software remote...

Get Multiple Services Status Remotely | Remotely Start or Stop Services
Get Multiple Services Status Remotely...

Get Date and Time from Multiple Remote Computers
Get Date and Time from Multiple Remot...

PowerCLI - How to get HA restarted VM's List
PowerCLI - How to get HA restarted VM...

Get-Childitem - Search file on Local and Remote Computers
Get-Childitem - Search file on Local ...

Remotely Create Update Delete Registry Key on Multiple Computers
Remotely Create Update Delete Registr...

Get service status from remote server's using PowerShell
Get service status from remote server...
2 سال پیش در تاریخ 1401/01/25 منتشر شده است.
1,833 بـار بازدید شده
... بیشتر