You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't remember exactly what error was being thrown, but solution was editing "SCCMChoco.psm1" @ line 76.
Cause: My site code was "P01" - which is LETTER-NUMBER-NUMBER but the validation pattern wouldn't allow my second digit to be a "number" and had to edit to pattern right above [string] $CMSiteCode
Line 76 original: (do not add spaces, that was just for easier viewing)
[ValidatePattern('^[A-Z]{ 2 }[A-Z0-9]{ 1 }$')]
Line 76 edit: (do not add spaces, that was just for easier viewing)
[ValidatePattern('^[A-Z]{ 1 }[A-Z0-9]{ 2 }$')]
The text was updated successfully, but these errors were encountered:
Can't remember exactly what error was being thrown, but solution was editing "SCCMChoco.psm1" @ line 76.
Cause: My site code was "
P01
" - which is LETTER-NUMBER-NUMBER but the validation pattern wouldn't allow my second digit to be a "number" and had to edit to pattern right above[string] $CMSiteCode
Line 76 original: (do not add spaces, that was just for easier viewing)
[ValidatePattern('^[A-Z]{ 2 }[A-Z0-9]{ 1 }$')]
Line 76 edit: (do not add spaces, that was just for easier viewing)
[ValidatePattern('^[A-Z]{ 1 }[A-Z0-9]{ 2 }$')]
The text was updated successfully, but these errors were encountered: