我想对每个OU运行相同的Powershell命令。of的列表以文本文件的形式给出。**Powershell command:**run_script OU2
OU1...// then delete $OU from ouNames.txt
// and inlcude $OU in the file ouNa
我想使用Shell脚本从文本文件中读取每一行的特定单词(比如位于第二位)。我更喜欢shell脚本,因为对我来说更容易实现其余的函数。目前,我只能一个一个地从文本文件中提取第二个单词,这样我就可以使用这个词来搜索包含它的文件。因为我是新手,所以我没试过多少。(FOR /L %%i IN (1,1,2) DO SET /P line=) < sql.txtENDLOCAL