/build/static/layout/Breadcrumb_cap_w.png

Getting Custom Inventory Rule to run a PowerShell as the User, not system

I need to get the certificate expiration dates for our internally issued certificates for both the currently logged in user and the computer account.  Custom Inventory rules work great for the computer account since it runs under the SYSTEM account, but I also need to have a Custom Inventory rule that will return this info for the current logged in user.  Is there a way to populate the Custom Inventory value with the results from a powershell run as the Current User?

Get-Childitem cert:\CurrentUser\My -ExpiringInDays 60 | Where-Object {$_.Issuer -Match "my CA Server"}| Select NotAfter


0 Comments   [ + ] Show comments

Answers (1)

Posted by: Nico_K 1 year ago
Red Belt
2

not possible, only via workaround.
It is planned, that the CIR are only running by SYSTEM.

So what you need to do is creating a script via KACE scripting which creates a file running as logged in user (for instance at startup or all 6hr and at startup) and then reading out this file as a CIR

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ