Test-DbaDiskAlignment Not Working PS H:\&gt; Test-DbaDiskAlignment -ComputerName Test_Server
    WARNING: [Test-DbaDiskAlignment][22:09:54] Can't connect to Test_Server
    WARNING: [Test-DbaDiskAlignment][22:09:54] CIM query to Test_Server failed.


I am very new to using dbatools. Would someone be able to help me with this error please.
Check out this post, do you meet the minimum requirements? Is remoting enabled?
https://dbatools.io/install/

Otherwise run it with the verbose flag and let us know what you get:

Test-DbaDiskAlignment -ComputerName Test_Server -Verbose


Also what version of both the dbatools module and powershell are you using?

Powershell version:

$PSVersionTable


dbatools version:

Get-Module dbatools