prae1809 / PowerShell-Scripts

https://www.systemcenterdudes.com
61 stars 47 forks source link

Operational Collection 3.6.ps1: LINE 73 NEEDS A SPACE FOR ENTIRE SCRIPT TO WORK! #8

Open kingofi88 opened 2 years ago

kingofi88 commented 2 years ago

$Schedule =New-CMSchedule –RecurInterval Days –RecurCount 7 Needs to be $Schedule = New-CMSchedule –RecurInterval Days –RecurCount 7

vcarrier commented 1 year ago

The problem with this line is that the hyphens are expected by PowerShell 5.1 to be standard minus hyphens (U+002D), but in this line (and only this line) they are en_dash characters (U+2013). This looks like some sort of automatic character replacement like the one in Microsoft Word for instance.

I downloaded the script from GitHub and PowerShell ISE shows weird symbols instead of the hyphens.

image