Closed xiaowuyaya closed 2 years ago
Do you think it'd be possible to just add another parameter to AuthenticationOptions such as "useWmicCommand" instead of using os.release()? I think it's better to have the caller have some more control over what is being called.
Do you think it'd be possible to just add another parameter to AuthenticationOptions such as "useWmicCommand" instead of using os.release()? I think it's better to have the caller have some more control over what is being called. Sorry, I don't know about this, where is the documentation to let me know about ‘useWmicCommand’
I was thinking we could add another property to this type https://github.com/matsjla/league-connect/blob/master/src/authentication.ts#L31 which would act as an option to use WMIC+Cmd instead of Get-CimInstance+PowerShell
I've went ahead and implemented it with two new options, useDeprecatedWmic
and windowsShell
which will allow you to use WMIC and Cmd by passing the options to authenticate()
I'll do a minor release soon.
Add win7 judgment on the original basis.
and we use wmic.
67