Update
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
@@ -424,6 +424,10 @@ namespace domain_utility
|
||||
|
||||
if (remote == "all")
|
||||
{
|
||||
string armListKey = AnsiConsole.Prompt(
|
||||
new TextPrompt<string>("Введите УЗ на которой нужно сменить пароль")
|
||||
.AddChoices(new string[] { "OBR", "PIS", "OBM", "MMP" })
|
||||
);
|
||||
InputDomainCredentials();
|
||||
string path = Path.Combine(Environment.CurrentDirectory, "settings.json");
|
||||
if (!File.Exists(path))
|
||||
@@ -437,6 +441,8 @@ namespace domain_utility
|
||||
foreach (KeyValuePair<string, List<int>> unit in data.arm_list)
|
||||
{
|
||||
unitKey = unit.Key;
|
||||
if (unitKey != armListKey)
|
||||
continue;
|
||||
foreach (int position in unit.Value)
|
||||
{
|
||||
remote = CheckComputerName($"{unitKey}{(position < 10 ? $"0{position}" : position.ToString())}");
|
||||
|
||||
Reference in New Issue
Block a user