Can we run the below cmd line for multiple servers using powershell, if someone can help on that would be greatly appreciated.
so, the below line needs to be applied on multiple servers to apply the license,
LicenseInfoCmd.exe -l Cxxxx -m "Trial Version" -s
The exe would be in the below path c:\program files\SQL\lite that needs to be updated with the above license.
$serverlist = Get-Content C:\CopiedTo\MyScripts\servers.txt
foreach ($server in $serverlist)
{
$remotesession = New-PSSession -ComputerName $server
Invoke-Command -Session $remotesession {cd c:\program files\SQL\lite}
Enter-PSSession -computername $server
Exit-PSSession
Remove-PSSession -Session $remotesession
}