Forum Discussion
mfranhind115
Jul 21, 2022Brass Contributor
how to "parameterize" a for loop cycle
Hi all, weird question it is. I would like to change the "for each" loop depending on a value got on input. This is what I'm trying: $currdomain = Read-Host "Please enter the name of...
- Jul 21, 2022
You can try the following
foreach ($user in (Get-MsolUser -DomainName $currdomain)) {......}
farismalaeb
Jul 21, 2022Steel Contributor
You can try the following
foreach ($user in (Get-MsolUser -DomainName $currdomain)) {......}
mfranhind115
Jul 21, 2022Brass Contributor
excellent farismalaeb!
it works fine!!!
many thanks!
it works fine!!!
many thanks!