$accounts = (net localgroup users |Select-String -Pattern 'aac') -replace "\n"
Foreach ($account in $accounts) {
If($account –contains“Domain Users”) {
return;
}
netlocalgroup ClientGroup $account /add
}
本文共 245 字,大约阅读时间需要 1 分钟。
$accounts = (net localgroup users |Select-String -Pattern 'aac') -replace "\n"
Foreach ($account in $accounts) {
If($account –contains“Domain Users”) {
return;
}
netlocalgroup ClientGroup $account /add
}
转载于:https://blog.51cto.com/unicom/1983672