Skip to content

Exit Code 0 Returned When Running Silent as Non-Administrator #33

Description

@Hossy

Exit(ERROR_ACCESS_DENIED);

psupdate.exe -silent && echo success || echo fail returns success in a non-elevated command prompt on Windows Server 2012 R2.

The contents of the log file are:
2019-05-30 19:01:46 Getting windows user.
2019-05-30 19:01:46 Checking if user is an administrator.

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