Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue + Solution for Site Code error (pattern validation) #10

Open
jonswc opened this issue Jan 14, 2020 · 0 comments
Open

Issue + Solution for Site Code error (pattern validation) #10

jonswc opened this issue Jan 14, 2020 · 0 comments

Comments

@jonswc
Copy link

jonswc commented Jan 14, 2020

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 }$')]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant