Categories
- Education (6)
- Fix IT (29)
- Information Technology (53)
- Tips (6)
- Uncategorized (7)
Tags
Tag Archives: Powershell
Set processor affinity for scom agent
Problem SCOM agent tasks are consuming 100% processor time causing a slow reaction time on servers. Solution Force SCOM agent processes to run on one CPU-core so other tasks get processor time. To achieve this add a scheduled task running … Continue reading
Revoke certificate from Microsoft PKI
This solution is based on powershell module PSPKI . Here is a link to download it : https://www.powershellgallery.com/packages/PSPKI/3.2.7.0 Open Poweshell and run the following commands Import-Module PSPKI $sCAServer = "<FQDN of your CA Server" # read certificates into a variable … Continue reading
Posted in Fix IT
Tagged certificate, Powershell
Comments Off on Revoke certificate from Microsoft PKI
Kill all but own powershell process
use the following command within powershell to terminate all but your one shell. get-process | where {$_.name -like “powershell” -and $_.ID -notlike “$pid”} | stop-process
Posted in Information Technology
Tagged Powershell
Comments Off on Kill all but own powershell process
List disk drives into an array
This Powershell script ist playing with an “athook” object based on an array having different named properties . $Array = @() Foreach ($vol In GET-WMIOBJECT win32_logicaldisk) { $obj = New-Object PSObject $Value = $vol.DeviceID $obj | Add-Member -MemberType NoteProperty -Name "Drive" -value … Continue reading