Runspaces - Lets Work in Parallel

  Рет қаралды 1,533

Guy Leech

Guy Leech

Күн бұрын

Пікірлер: 1
@stereoactivo
@stereoactivo 6 ай бұрын
Hi! thanks for this, it was super useful. I was following this to achieve the same result, however I'm having some issues with it, maybe you can give me a hand. Instead of Start-Sleep -Seconds $sleep, I created a class: class MyBackgroundTask { [void] run() { $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" Write-Host "$Timestamp Starting background task..." Start-Sleep -Seconds 20 $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" Write-Host "$Timestamp Background task completed." } } However, when calling run() on the object, all the parallelism is gone. Do you have any idea how to fix it?
Top 10 PowerShell Commands for Troubleshooting
46:13
Guy Leech
Рет қаралды 4,9 М.
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,6 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 110 МЛН
Advanced PowerShell - Runspaces
17:04
Adam Driscoll
Рет қаралды 9 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 72 М.
JWT авторизация. Основы JWT - механизма.
6:45
Хочу вАйти
Рет қаралды 12 М.
How is this Website so fast!?
13:39
Wes Bos
Рет қаралды 475 М.
Automating and Managing VMware with PowerShell
40:18
Guy Leech
Рет қаралды 9 М.
I reverse engineered Next to find what they are hiding
29:48
Theo - t3․gg
Рет қаралды 8 М.
Fast & Efficient Windows Troubleshooting via PowerShell
50:44
Dissecting Logons
40:15
Guy Leech
Рет қаралды 305
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,6 МЛН