You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A probably solution could be changing the parsing of the commandline arguments.
Without great thinking and not changing to much on your professional code:
Got the full Commandline
Parsing via quick and dirty regex and only using MatchingGroup 1
If we got an DoubleQuote take my parsed Password else take you default aproach
`
//Quick and Dirty fix for DoubleQuote
string cmdLine = Environment.CommandLine;
string myPWD = null;
Regex regex = new Regex(@"/password:(\S*)", RegexOptions.IgnoreCase);
foreach(Match m in regex.Matches(cmdLine))
{
int i = m.Index;
Group g = m.Groups[1];
myPWD = g.Value;
}
Hello
First of All, Big thanks for you tool. It is an awesome type of software.
I think there is an unexpected Behavior starting sccmclictr via commandline and " (Double Quote).
I am starting your tool via Commandline (cmd):
"SCCMCliCtrWPF.exe" test /Username:.\Test /password:Te"st6
this results in an Error "Unable to Connect". For debugging perpose I added an plaintext Lable besides the pb_Passwort-Textbox. The result is:
Test6
The double-quote is gone. So I tried an Username with " --> Result: nothing is parsed.
If I Escape the " via " --> Password is correctly enterd.
Probably this is an Issue with GetCommandLineArgs (https://learn.microsoft.com/en-us/dotnet/api/system.environment.getcommandlineargs?view=net-7.0) and DoubleQuotes.
Kind Regards
The text was updated successfully, but these errors were encountered: