Skip to content

Commit 257e52c

Browse files
Remove-ManageEngineMDM.ps1: convert to ASCII (fix Windows PowerShell 5.1 parse errors from em-dashes)
1 parent a758f3e commit 257e52c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Intune/Remove-ManageEngineMDM.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ function Write-Log {
141141
# DISCOVERY
142142
# ============================================================================
143143
function Get-TargetEnrollments {
144-
# NOTE: do not use $matches here it is the automatic variable set by -match.
144+
# NOTE: do not use $matches here - it is the automatic variable set by -match.
145145
$results = @()
146146
if (-not (Test-Path $Script:EnrollmentsRoot)) {
147-
Write-Log "No Enrollments key present device has no MDM enrollment." -Level INFO
147+
Write-Log "No Enrollments key present - device has no MDM enrollment." -Level INFO
148148
return $results
149149
}
150150

@@ -214,7 +214,7 @@ function Remove-EnrollmentArtifacts {
214214
"HKLM:\SOFTWARE\Microsoft\PolicyManager\Providers\$Guid"
215215
)
216216

217-
# Backup first (always, even in DetectOnly we skip backup only when changing).
217+
# Backup first (always, even in DetectOnly we skip - backup only when changing).
218218
foreach ($t in $regTargets) { Backup-Key -RegPath $t }
219219

220220
foreach ($t in $regTargets) {
@@ -286,7 +286,7 @@ function Remove-Agent {
286286
$cmd = $app.QuietUninstallString
287287
if (-not $cmd) { $cmd = $app.UninstallString }
288288
if (-not $cmd) {
289-
Write-Log "No uninstall string for '$($app.DisplayName)' skipping." -Level WARN
289+
Write-Log "No uninstall string for '$($app.DisplayName)' - skipping." -Level WARN
290290
continue
291291
}
292292

0 commit comments

Comments
 (0)