I'm currently looking to find out all SolidWorks license information on the network.
I need help writing a script for PowerShell to look at a list of hosts that are on a CSV/TXT file then execute the following command saving the result in a CSV format having the computer name, SolidWorks license registry entry.
This is the command I'm using:
Invoke-Command -ComputerName NAME -Command {Get-ItemProperty -Path HKLM:\SOFTWARE\SolidWorks\Licenses}
By default. SolidWorks stores their license information in the following registry path
COMPUTERNAME\HKEY_LOCAL_MACHINE\SOFTWARE\SolidWorks\Licenses\Serial Numbers\Solidworks