I need to collect a particular file size info from multiple servers, whereas in our domain environment WinRM service is disabled, so unable to use the invoke command and unable to initiate remote PSSession. Test-WSman is also failing.
Unable to find any WMI class which I can use to extract the info, as for testing if I am using “gwmi -Class win32_logicaldisk” command to get the disk space from remote server its working and giving the required output also.