PowerShell: How to find whether the machine is waiting for Restart

One of the biggest problems of many system administrators is to restart the machines on the network. So how do we get this information, and how can this information help us?

The machine is waiting for restart, you can reach it simply by using the PowerShell command below.

2018-09-27_17-00-23

Invoke-WmiMethod -Namespace "ROOTccmClientSDK" -Class CCM_ClientUtilities -Name DetermineIfRebootPending

One of my customers’ most inquiries was how to get the user machines to restart regularly.

First, we need to check whether the machine really needs restarts. If the machine wants to restart, we can produce various scenarios.
If the machine wants to restart, we can send the machine restart command.

Restart-Computer -ComputerName "ComputerName" -Force

Or it shows a warning to the user and the importance of restarting the machine can be explained. Such an interface can be improved either by HTML or again with PowerShell, allowing the user to confront it.

PowerShell ile makinenin Restart için bekleyip beklemediği nasıl bulunur?

Bir çok sistem yöneticisinin en büyük sorunlarından birisi de ağ üzerindeki makinelerin restart yapmasıdır. Peki bu bilgiye nasıl ulaşacağız ve bu bilgi bizim ne işimize yarayabilir?
Makinenin restart için beklediğini aşağıdaki PowerShell komutu ile basit bir şekilde öğrenebilirsiniz.

Continue reading “PowerShell ile makinenin Restart için bekleyip beklemediği nasıl bulunur?”

SCCM Client Agent installation error “Couldn’t verify ‘MicrosoftPolicyPlatformSetup.msi’ authenticode signature. Return code 0x800b0101 ccmsetup” (Solution)

When I wanted to install the SCCM agent, nothing happened. Ccmsetup.log dosyasını kontrol ettim ve dosyada aşağıdaki satırları buldum;

Couldn’t verify ‘C:\windows\ccmsetup\MicrosoftPolicyPlatformSetup.msi’ authenticode signature. Return code 0x800b0101        ccmsetup        22.01.2013 14:47:05        432 (0x01B0)

Continue reading “SCCM Client Agent installation error “Couldn’t verify ‘MicrosoftPolicyPlatformSetup.msi’ authenticode signature. Return code 0x800b0101 ccmsetup” (Solution)”