I need to write a Perl script that connects via WMI to a remote windows machine (its a prerequisite, cant change the protocol) and retrieve all file information from a specific directory path (file size,creation date, file name). I thought about the possibility of somehow access the to the machine's cmd and run dir command but could not find relevant information.
Someone have an idea of how to implement this? Thank you for your support.