-
Notifications
You must be signed in to change notification settings - Fork 53
Description
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 7It'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!