Get-SPCLicenseInfo¶
Returns the current SPClean license status from the module cache or disk. Never throws — safe to call at any time, including before Connect-SPCTenant.
Synopsis¶
Parameters¶
None.
Returns¶
SPC.LicenseInfo with the following properties:
| Property | Type | Description |
|---|---|---|
Status |
string |
Active, Expired, Invalid, or Unlicensed |
Tier |
string |
FREE, PRO, or CONSULTANT |
Email |
string |
Email address the license was issued to |
ExpiresAt |
DateTime? |
License expiry date (UTC). Empty for unlicensed |
RegisteredAt |
DateTime? |
Date the license was registered on this machine |
LicenseId |
string |
Unique license identifier embedded in the key |
Examples¶
Unlicensed output:
Active output:
Notes¶
- The cmdlet checks the module-level cache first. If the cache is empty it reads
%APPDATA%\SPClean\license.licfrom disk and re-verifies the HMAC signature. - If no license file exists,
Status = UnlicensedandTier = FREEare returned (no error). - After calling
Register-SPCLicense, the cache is cleared andGet-SPCLicenseInfowill reflect the new key immediately.