Closed dvdvideo1234 closed 9 months ago
When only module name is specified, the PowerShell will try to import it from the installed modules, and not from the local file. You need to use './VSCELicense.psd1'
. If you want to use module unattended, the command would look like this:
PowerShell.exe -Command "Import-Module -Name './VSCELicense.psd1' ; Get-VSCELicenseExpirationDate"
See usage docs: https://github.com/beatcracker/VSCELicense?tab=readme-ov-file#usage