Skip to content

ServiceEXEPersist.cna sc CREATE command Errors out on older windows distributions #14

@bufferattack

Description

@bufferattack

First, thanks for these scripts. Anyone who puts their good works up front like this is a real hero, and there are many out there. As payback, I have been testing some of these scripts over various OS's. Here is one I found to be an issue with a suggested fix:

File: ServiceEXEPersist.cna
lines 16-19.
the "sc" commands need to be modified to use "sc.exe". During testing of multiple OS's, especially older windows like Windows 7/8/2008, the binpath= argument will error out when inserting persistence. By moving the command call to sc.exe, the entire command will properly process the new sc create command - now I am not sure why, but it just does...

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