Skip to content

Incorrect hyphen in Operational Collections script #11

@vcarrier

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!

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