Skip to content

PSService.ps1 - Assembly types not supported on Windows Server 2022 #43

@marcleblanc2

Description

@marcleblanc2

Hey, thank you for creating the PSService.ps1 script! I'm trying to run the -Setup process and I'm getting this error. I've read the notes in the script, have searched the other issues in the repo, and have Googled it, and haven't found a workaround yet. Is this something you've seen before, or have a workaround for?

Error message:
PSService.ps1: Failed to create the C:\Windows\System32\PSService.exe service stub. Both the assembly types 'ConsoleApplication' and 'WindowsApplication' are not currently supported.

Output of $psversiontable:

Name                           Value
----                           -----
PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Microsoft Windows 10.0.20348
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

OS info from System > About
Edition Windows Server 2022 Standard
Version 21H2
Installed on ‎2024-‎02-‎02
OS build 20348.2762

Thank you!

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