Final answer:
Using the 'Get-Cluster' cmdlet in PowerShell to check the 'DrainOnShutdown' property will return a Boolean value: 'True' if the functionality is enabled and 'False' if it is disabled.
It controls the automatic migration of workloads during a shutdown.
Step-by-step explanation:
PowerShell is a cross-platform (Windows, Linux, and macOS) automation and configuration tool/framework that works well with your existing tools and is optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and object models.
If you need to manually enable or disable the drain on shutdown functionality in a cluster, you can configure the cluster's DrainOnShutdown property.
When you use the Get-Cluster PowerShell cmdlet, specifically (Get-Cluster).DrainOnShutdown, it will return a Boolean value indicating the current configuration setting.
If the drain on shutdown functionality is enabled, the cmdlet will return True. Conversely, if the functionality is disabled, the cmdlet will return False.
This setting determines whether or not active workloads will be automatically moved to other nodes in the cluster during a controlled shutdown process.