Win 10 upgrade script commenting

This commit is contained in:
silversword411 2021-07-28 16:45:12 -04:00
parent 3ad56feafb
commit 9bb7016fa7
No known key found for this signature in database
GPG Key ID: 6F4BD176F56B50CA
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,12 @@
<#
Note on line 97 this:
if ((cscript "$($env:windir)\system32\\slmgr.vbs" /dli) -match "Licensed") { $returnVal = $true }
will fail for non-english installs of windows.
Removing the: -match "Licensed"
will allow it to run. So the line should read for non-english:
if ((cscript "$($env:windir)\system32\\slmgr.vbs" /dli)) { $returnVal = $true }
#>
Function Write-LogMessage {
param(
[Parameter(Mandatory)]