Skip to content

Incorrect hyphen in Operational Collections script #11

Description

@vcarrier

I know that this issue has been brought up several times with a fix and all, however I did not see the true culprit mentioned anywhere. The following line is incorrect:

$Schedule =New-CMSchedule –RecurInterval Days –RecurCount 7

It's not the space that's problematic here but the hyphens marking the argument names. On this line, they are medium hyphens (U+2013) instead of the standard hyphen (U+002d) expected by Windows PowerShell. Normally this happens when the text is copy-pasted from a source that enforces typographic rules such as Word or some WYSIWYG editors. No big deal though, I'm an IT teacher and have to instruct my students each year to modify the two problematic hyphens before running the script, but it would be great that the owner or a collaborator just fix this minor error just to avoid further confusion. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions