Форум сайта python.su
Есть список с IP-адресами
computers = ['10.62.0.8', '10.62.0.9', '10.62.0.10']
computer = subprocess.run(['powershell.exe', 'Get-WmiObject -ComputerName {computers} -Class Win32_OperatingSystem'])
computer = subprocess.run(['powershell.exe', 'Get-WmiObject -ComputerName 10.62.0.8, 10.62.0.9, 10.62.0.10 -Class Win32_OperatingSystem'])
Отредактировано atm87 (Июнь 28, 2024 08:52:05)
Офлайн
“,”.join(computers)
Офлайн