Skip to content

Commit

Permalink
Update comment and remove [String] from requirement
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Wahl <[email protected]>
  • Loading branch information
chriswahl committed Dec 1, 2015
1 parent 046de3b commit 7c00368
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions VMware vSphere/Reset-CBT.ps1
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
#requires -PSSnapin VMware.VimAutomation.Core
#Requires -Version 2
#Requires -Version 2
function Reset-CBT
{
<#
.SYNOPSIS
Resets the Change Block Tracking (CBT) file for a Virtual Machines
Resets the Change Block Tracking (CBT) file for affected Virtual Machines
.DESCRIPTION
The Reset-CBT cmdlet will reset the Change Block Tracking (CBT) file for a Virtual Machine affected by issues or corruption with the CBT file.
.NOTES
Written by Chris Wahl for community usage
Twitter: @ChrisWahl
GitHub: chriswahl
.LINK
https://github.com/rubrikinc/PowerShell-Module
https://github.com/WahlNetwork/powershell-scripts
#>

[CmdletBinding()]
Param(
[Parameter(Mandatory = $true,Position = 0,HelpMessage = 'Virtual Machine',ValueFromPipeline = $true)]
[Alias('Name')]
[ValidateNotNullorEmpty()]
[String]$VM,
$VM,
[Parameter(Mandatory = $true,Position = 1,HelpMessage = 'vCenter FQDN or IP address')]
[ValidateNotNullorEmpty()]
[String]$vCenter,
Expand Down Expand Up @@ -118,12 +117,13 @@ function Reset-CBT
if ($_.PowerState -ne 'PoweredOn')
{
Write-Warning -Message "Skipping $_ - Not powered on"
$notfixedvm += $_
}
if ($_.ExtensionData.Snapshot -ne $null)
{
Write-Warning -Message "Skipping $_ - Snapshots found"
$notfixedvm += $_
}
$notfixedvm += $_
}
}

Expand Down

0 comments on commit 7c00368

Please sign in to comment.