Hi,
I am new to powershell and have been learning it from some time,
I just have a small task to check for a particular file in entire C: drive of a set of servers and display the paths where the file exist. I had developed a script as follows:
Read-MultiLineInputForm
if
(!($lst)) {
break; }
else {
foreach ($bin$lst) {
write-host
"The script execution to find ldap.ora is in progress on the server $b" -ForegroundColorGreen
Get-ChildItem
"\\$b\c$"-Recurseladp.ora|Select-Object-PropertyFullName } } The above script works fine but the issue is it takes a lot of time for each server to show the output. Is there any other way to speed up the execution and get the result? PS: I don't want to use invoke-command as winrm service is disabled in my environment and I don't want to touch those aspects.