-
Notifications
You must be signed in to change notification settings - Fork 3
Update Readme, Include support for new function Get-AllVMSnapshot #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix these minor issues.
**Get-VMCpuReadyPercent** | ||
Calculates the CPU ready percent average of virtual machines provided | ||
|
||
**Get-VMCpuReadyPercent** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated from line 43 and 44.
**Get-VMCpuReadyPercent** | ||
Calculates the CPU ready percent average of virtual machines provided | ||
|
||
**Get-AllVMsnapshot** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the function to Get-SnapshotAll. This helps with sorting, the included command is Get-Snapshot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking Get-SnapshotHidden might be better.
$snapshotfinal = @() | ||
$vmlist = get-vm $VM | ||
|
||
#Get a list of all VM's with known snapshots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments should have a space after #.
} | ||
} | ||
|
||
#Get all VM's with delta disks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix function indentation.
$icount = $final.count - $snapshotfinal.count | ||
Write-Output "Total number of VM's with visible snapshots: $vcount" | ||
write-output "Total number of VM's invisible snapshots: $icount" | ||
write-output "`nYou have hidden snapshots on the follow VM's:`n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should only print if a hidden snapshot is found.
I've created a new function that will check for all VM snapshots, hidden or not, and report on them. Take a look at and let me know if any changes are needed. I tried to follow the existing standards code wise in the rest of the functions.