![](/img/trans.png)
[英]How would I write a powershell script that pings AD, Outputs TXT of online systems, then use that file to output a list of installed software
我正在嘗試編寫一個 powershell 腳本,它將 Ping AD 中 OU 中的每個主機名,輸出在線主機名的 txt 文件,然后使用 Get-WmiObject 獲取每個在線系統上的軟件列表。 我已經嘗試過,但似乎無法弄清楚如何將 ping 的系統輸出到主機名的 txt 文件,以便我可以使用該文 ...