Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING The scripts do not complete successfully

  • Thread starter Thread starter ozkank
  • Start date Start date
  • Replies Replies 4
  • Views Views 757

ozkank

New Member
Messages
3
Reaction score
0
Points
1
Even when I send a simple client restart script via SCCM, the script does not finish. When I researched related topics in forums, I saw that it could be a certificate issue, but when I checked the bgp server log file, there were no errors there either. I also don’t see any errors in the script.log file on the client side. Do you have any comments on this issue?

1726581254462.png

1726581352416.png
1726581388816.png
 
The script only restarts the server. The command I used is: shutdown /r /t 00
So, the restart will happen before the script ends. Without any output what you are seeing is to be expected.
 
You are right in what you said. However, in this case, I would have expected the server to restart, but it didn’t. Instead, I modified the script to run one that would create a folder in the C drive, but the result was still the same.
New-Item -ItemType Directory -Path C:\tools
 
Back
Top