List AD Group Members:
Get-ADGroupMember -identity $GroupName -Recursive | select name
Or for all the details:
Get-ADGroupMember -identity $GroupName -Recursive
Get PS Version:
Get-Host | Select-Object Version or $PSVersionTable
Hyper-V Clustering:
List vms running on hyper-v cluster:
Get-VM –Name VMNAME –ComputerName (Get-ClusterNode –Cluster CLUSTER)
List only VMS on hyper-v cluster with high availability:
Get-VM –ComputerName (Get-ClusterNode –Cluster CLUSTER) | where { $_.IsClustered –eq $true }
Get-VM
Options:
VMName : svdc1
VMId : e3a95f29-2102-4aed-ac59-ce5651afa3a1
Id : e3a95f29-2102-4aed-ac59-ce5651afa3a1
Name : svdc1
State : Running
IntegrationServicesState : Up to date
OperationalStatus : {Ok}
PrimaryOperationalStatus : Ok
SecondaryOperationalStatus :
StatusDescriptions : {Operating normally}
PrimaryStatusDescription : Operating normally
SecondaryStatusDescription :
Status : Operating normally
Heartbeat : OkApplicationsHealthy
ReplicationState : Disabled
ReplicationHealth : NotApplicable
ReplicationMode : None
CPUUsage : 0
MemoryAssigned : 849346560
MemoryDemand : 713031680
MemoryStatus : OK
SmartPagingFileInUse : False
Uptime : 1.02:00:50
IntegrationServicesVersion : 6.3.9600.16384
ResourceMeteringEnabled : False
ConfigurationLocation : C:\LocalVMs
SnapshotFileLocation : C:\LocalVMs
AutomaticStartAction : Start
AutomaticStopAction : ShutDown
AutomaticStartDelay : 0
SmartPagingFilePath : C:\LocalVMs
NumaAligned : False
NumaNodesCount : 1
NumaSocketCount : 1
Key : Microsoft.HyperV.PowerShell.VirtualMachineObjectKey
IsDeleted : False
ComputerName : svhv1
Version : 5.0
Notes :
Generation : 2
Path : C:\LocalVMs
CreationTime : 8/24/2014 6:44:12 PM
IsClustered : False
SizeOfSystemFiles : 60258
ParentSnapshotId :
ParentSnapshotName :
MemoryStartup : 536870912
DynamicMemoryEnabled : True
MemoryMinimum : 536870912
MemoryMaximum : 2147483648
ProcessorCount : 2
RemoteFxAdapter :
NetworkAdapters : {Network Adapter}
FibreChannelHostBusAdapters : {}
ComPort1 : Microsoft.HyperV.PowerShell.VMComPort
ComPort2 : Microsoft.HyperV.PowerShell.VMComPort
FloppyDrive :
DVDDrives : {DVD Drive on SCSI controller number 0 at location 1}
HardDrives : {Hard Drive on SCSI controller number 0 at location 0}
VMIntegrationService : {Time Synchronization, Heartbeat, Key-Value Pair Exchange, Shutdown...}