Code Monkey home page Code Monkey logo

password-sync-support-tool's Issues

Continuous loop if DC name is blank

GSPStool calls itself with an additional argument to process individual DCs.

If a DC name pulled from the AD is blank then GSPStool will loop continuously.

Add a dump of "sc qc"

This would allow us to see if the service logon settings have been changed.

Expected results:

C:\>sc qc "G Suite Password Sync"
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: G Suite Password Sync
        TYPE               : 10  WIN32_OWN_PROCESS
        START_TYPE         : 2   AUTO_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : "C:\Program Files\Google\G Suite Password Sync\password_sync_service.exe"
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : G Suite Password Sync
        DEPENDENCIES       :
        SERVICE_START_NAME : NT AUTHORITY\NetworkService

Use 7zip as the EXE wrapper instead of AutoIt

We can use https://www.7-zip.org/a/lzma1900.7z from https://www.7-zip.org/sdk.html. We need to create build.config.gspstool:

;!@Install@!UTF-8!
ExecuteFile="cmd.exe"
ExecuteParameters="/c title G Suite Password Sync diagnostics tool && cscript //nologo gspstool.vbs"
Directory="%temp%"
GUIMode="2"
Progress="no"
;!@InstallEnd@!

...and then:

"C:\Program Files\7-Zip\7z.exe" a gspstool.7z gspstool.vbs
copy /b 7zSD.sfx  + build.config.gspstool + gspstool.7z test-exe\gspstool.exe

Check if the required root certs are trusted

Command to dump all trusted certs:

for %a in (Root AuthRoot Trust CA) do certutil -store %a >> trusted-certs.txt 2>>&1

We can probably only do it for the local machine this way, but it's better than nothing.

Make sure messagebox text is logged

We currently have separate log statements and messagebox statements in many places, but it would be better to also log the exact text that's shown to the user, instead of having to go to the code to correlate what's seen vs. what's logged.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.