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 Uninstall script doesn't work when it is deployed from SCCM

  • Thread starter Thread starter Gustavo
  • Start date Start date
  • Replies Replies 4
  • Views Views 3K

Gustavo

Member
Messages
21
Solutions
2
Reaction score
3
Points
3
Hi there,

I have created a simple script to uninstall an application. The script is working fine if you run it in the local machine or you run it through psexec. The problem is when I deploy the script from SCCM, the script is executed and finish with a 0 code, but the application is not uninstalled. I deploy it as a package with the following command "cscript script_name.vbs" and it is run as system user. Client logs is not reporting any issue, I have not found anything in the event viewer so I am stuck here. I really don't know what else I could check to look for a clue. Below you can see a screenshot of the client log.

1634718174365.png
And this is the script to uninstall the application
1634718974655.png
Any idea will be apreciated. Thanks in advance.
Best regards
Gustavo
 
To be clear you have run it as x86 local system account?
I would add logging to see what is failing.
 
To be clear you have run it as x86 local system account?
I would add logging to see what is failing.
Hi Garth,
Yes, I have run It as x86 local system account. Sorry for the question, do yo mean to add logging in my script or in the SCCM package?
Thanks
Gustavo
 
Hi Garth,
Yes, I have run It as x86 local system account. Sorry for the question, do yo mean to add logging in my script or in the SCCM package?
Thanks
Gustavo
Yes you should add it to your script or anything that executes (uninstall with logging). aka write lines out to a text file at each stage, in order to know what is happening.
 

Forum statistics

Threads
7,165
Messages
27,971
Members
18,271
Latest member
prashantrm

Trending content

Back
Top