File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ function Write-Log {
141141# DISCOVERY
142142# ============================================================================
143143function 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
You can’t perform that action at this time.
0 commit comments