Skip to content

Error trying to remove scheduled task #1

@slundy

Description

@slundy

get an error 'access denied' when the script tries to remove the scheduled task:
At C:\ps\fix.intune.ps1:20 char:3

  • $rootFolder.DeleteFolder($enrollmentId,0)
  • + CategoryInfo          : OperationStopped: (:) [], UnauthorizedAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions