Skip to content

Commit b9eaad7

Browse files
committed
Document Get-UnityLicense
1 parent d239d56 commit b9eaad7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,10 +990,18 @@ function ConvertTo-DateTime {
990990
else { [DateTime]$Text }
991991
}
992992

993+
<#
994+
.Synopsis
995+
Get the active Unity licenses for the machine.
996+
.PARAMETER Serial
997+
Filter licenses to the specified serial
998+
.EXAMPLE
999+
Get-UnityLicense
1000+
#>
9931001
function Get-UnityLicense
9941002
{
9951003
[CmdletBinding()]
996-
param([SecureString]$Serial, [UnityVersion]$UnityVersion)
1004+
param([SecureString]$Serial)
9971005

9981006
$licenseFiles = Get-ChildItem "C:\ProgramData\Unity\Unity_*.ulf" -ErrorAction 'SilentlyContinue'
9991007
foreach ( $licenseFile in $licenseFiles ) {

0 commit comments

Comments
 (0)