Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

ScheduledTask - Cannot disable "Microsoft Compatibility Appraiser"

Aperta
#298 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
powershell

Direzione di ricerca

Riprodurre la configurazione di SchdTaskTest nell’ambiente Windows Server 2016 segnalato, iniziando con la risorsa ScheduledTask e il relativo output dettagliato per DisableMicrosoftCompatibilityAppraiser. Confrontare l’attività Microsoft Compatibility Appraiser che non riesce con l’attività ProgramDataUpdater nello stesso percorso. Il lavoro è completato quando l’attività di compatibilità può essere disabilitata senza l’errore del parametro.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug help wanted needs investigation
Details of the scenario you tried and the problem that is occurring

Trying to disable "Microsoft Compatibility Appraiser" Schedule task generates an error.

Verbose logs showing the problem

VERBOSE: [servername]: [[ScheduledTask]DisableMicrosoftCompatibilityAppraiser] Disabling
existing scheduled task 'Microsoft Compatibility Appraiser' in '\Microsoft\Windows\Application Experience'.
The parameter is incorrect.
+ CategoryInfo : InvalidArgument: (PS_ScheduledTask:) [], CimException
+ FullyQualifiedErrorId : HRESULT 0x80070057,Register-ScheduledTask
+ PSComputerName : localhost

VERBOSE: [servername]: LCM: [ End Set ] [[ScheduledTask]DisableMicrosoftCompatibilityAppraiser] in 0.7970
seconds.

Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here
Configuration SchdTaskTest 
{

    Import-DscResource -ModuleName PSDesiredStateConfiguration

    Import-DscResource -ModuleName ComputerManagementDsc

    Node localhost
    {
        ScheduledTask DisableMicrosoftCompatibilityAppraiser
        {
            TaskName            = 'Microsoft Compatibility Appraiser'
            TaskPath            = '\Microsoft\Windows\Application Experience\'
            Enable              = $false
        }

        ScheduledTask DisableSchdTaskApplicationExperienceProgramDataUpdator
        {
            TaskName            = 'ProgramDataUpdater'
            TaskPath            = '\Microsoft\Windows\Application Experience\'
            Enable              = $false
        }
    }
}

SchdTaskTest
The operating system the target node is running

OsName: Microsoft Windows Server 2016 Datacenter
OsOperatingSystemSKU: DatacenterServerEdition
OsArchitecture: 64-bit
WindowsBuildLabEx: 14393.3442.amd64fre.rs1_release.191219-1727
OsLanguage: en-US
OsMuiLanguages: {en-US, en-GB}

Version and build of PowerShell the target node is running

PSVersion 5.1.14393.3383
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.3383
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Version of the DSC module that was used ('dev' if using current dev branch)

ComputerManagementDsc 7.1.0.0

Lingua principale
PowerShell
Stelle
338
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dsccommunity/ComputerManagementDsc

Tutte le issue di dsccommunity/ComputerManagementDsc

Issue simili

Altre issue su Operating Systems

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.