Linked Questions

0 votes
2 answers
2k views

I have 100,000 list of servers from the text file (serverlist.txt) When I run in one shot it will burst my memory and cpu and the time took longer (about 3 days)to complete the scanning for DNSlookup....
Rindu's user avatar
  • 23
29 votes
4 answers
90k views

I have a PowerShell script like this: Foreach ($file in $files) { [Do something] [Do something] [Do something] } This way one file is treated after the other. I want to treat 4 files at ...
Werner Schoemaker's user avatar
12 votes
1 answer
31k views

W:> $job = start-job { Write-Output "hi there"; throw "an error!" } | Wait-Job W:> $job | select * State : Failed HasMoreData : True StatusMessage : Location : localhost Command ...
George Mauer's user avatar
4 votes
4 answers
5k views

I have an azure subscription that has upwards of 200 appServices where around about half of them have Continuous, always on webJobs attached, some also have slots which also have webJobs. Is there a ...
Damo's user avatar
  • 6,603
3 votes
3 answers
24k views

I am trying to get specific KBXXXXXX existence on a list of servers , but once my script one server it takes time and return result and come back and then move to next one . this script works ...
Fenomatik's user avatar
  • 497
4 votes
2 answers
4k views

I have four large OS installation media I need to download. This will take a long time if I wait for each download to finish before moving to the next one. Before downloading, I want to check if the ...
user2749942's user avatar
2 votes
2 answers
6k views

I have a store procedure DO_STUFF(obj rowFromMyTable) This take obj and process some data and save the result in an independent table. So the order i process the objects isn't important. DO_STUFF(...
Juan Carlos Oropeza's user avatar
2 votes
1 answer
5k views

I have a perl script perl1.pl. Within the perl script I call a powershell script script1.ps1. In script.ps1 I call other script like script2.ps1 with local variables as parameters. I have prepared a ...
JustSam's user avatar
  • 41
1 vote
3 answers
2k views

I've currently got a very simple script which pings 10 IPs: @ECHO OFF for /L %%i in (100, 1, 110) DO ( START /W /B cmd /c ping -n 1 192.168.0.%%i | find "time=" ) The output is as expected: C:\...
Abraxas's user avatar
  • 361
1 vote
1 answer
2k views

I'm trying to unzip a ton of files using PowerShell. I figured this is a great place to parallelize. However, my attempt to parallelize seems to make the unzip have no effect, even though it worked in ...
David says Reinstate Monica's user avatar
2 votes
2 answers
4k views

I have a azure function app in powershell, dedicated to kubernetes functions. There are multiple functions but on each of them, the first thing we do is something like this. az login --service-...
simple-thomas's user avatar
0 votes
2 answers
3k views

I'm trying to run some script in Powershell Core (no workflow, no -Parallel option for ForEach). So I'm trying to split my array in batches and run them at parallel. So I do: $iterCount = 150000; $...
Alex Zhukovskiy's user avatar
0 votes
1 answer
1k views

i want create thread that run script code in powershell using CreateThread WinApi. i use this code but error occured: function local:Get-ProcAddress { Param ( [OutputType([IntPtr])] [...
Alireza Jafari's user avatar
0 votes
2 answers
2k views

I have a Powershell script that converts Office documents to PDF. I would like to multithread it, but cannot figure out how based on other examples I have seen. The main script (OfficeToPDF.ps1) scans ...
DaveC's user avatar
  • 106
0 votes
1 answer
2k views

I am stuck at the below task: I have 5 PowerShell scripts that need to be executed in parallel. I want to create a home.ps1 that will call to other test1.ps1, test2.ps1, test3.ps1,test4.ps1 and test5....
Niranjan's user avatar

15 30 50 per page