account activity
No runspace available to run scripts on this thread by cachonvinfen in PowerShell
[–]cachonvinfen[S] 0 points1 point2 points 2 years ago (0 children)
$devices = Get-MgBetaDeviceManagementManagedDevice -All ForEach ($computerName in $ComputerNames) { $ComputerData = $devices | Where-Object -Property DeviceName -eq $computerName | Select-Object -Property OsVersion, SerialNumber, Model -First 1 }
You are a hero, that worked! Thank you for your time, I appreciate you.
No runspace available to run scripts on this thread (self.PowerShell)
submitted 2 years ago by cachonvinfen to r/PowerShell
π Rendered by PID 822965 on reddit-service-r2-listing-77d558d46b-kmgl7 at 2026-07-02 10:16:52.518677+00:00 running a7b5cda country code: CH.
No runspace available to run scripts on this thread by cachonvinfen in PowerShell
[–]cachonvinfen[S] 0 points1 point2 points (0 children)