Skip to main content

Lenovo Warranty [CF]

Summary

This script is used to update the custom field with the Lenovo warranty end date (Warranty Expiration Date).

Sample Run

TimeProcedureStatusUser
11:19:41 am 21-Aug-25Lenovo Warranty (CF)Success THENPronoc
11:19:41 am 21-Aug-25Lenovo Warranty (CF)-0001Success THENPronoc
11:19:41 am 21-Aug-25Lenovo Warranty (CF)-0002Success THENPronoc
11:19:41 am 21-Aug-25Lenovo Warranty (CF)-0002Script successfully got the warranty and now updating the Custom Field.Pronoc
11:19:41 am 21-Aug-25Lenovo Warranty (CF)-0001warrantyEnd on 2021-05-31Pronoc
11:19:41 am 21-Aug-25Execute Shell command - Get Results to VariableSuccess THENPronoc
11:19:41 am 21-Aug-25Execute Shell command - Get Results to Variable-0001Success THENPronoc
11:19:41 am 21-Aug-25Execute Shell command - Get Results to Variable-0010Success THENPronoc
11:19:40 am 21-Aug-25Execute Shell command - Get Results to Variable-0002Success THENPronoc
11:19:40 am 21-Aug-25Execute Shell command - Get Results to Variable-0003Success THENPronoc
11:19:40 am 21-Aug-25Execute Shell command - Get Results to Variable-0004Success THENPronoc
11:19:40 am 21-Aug-25Execute Shell command - Get Results to Variable-0005Success ELSEPronoc
11:19:40 am 21-Aug-25Execute Shell command - Get Results to Variable-0005Executing command in 64-bit shell as system: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "& %ProgramData%_automation\AgentProcedure\get-lenovowarranty\get-lenovowarranty.ps1" >"c:\Pronoc\commandresults-1572523429.txt" 2>&1Pronoc
11:19:37 am 21-Aug-25Execute Powershell CommandSuccess THENPronoc
11:19:37 am 21-Aug-25Execute Powershell Command-0001Success THENPronoc
11:19:37 am 21-Aug-25Execute Powershell Command-0002Success THENPronoc
11:19:37 am 21-Aug-25Execute Powershell Command-0011Success THENPronoc
11:19:37 am 21-Aug-25Execute Powershell Command-0012Success THENPronoc
11:19:37 am 21-Aug-25Execute Powershell Command-0012Results returned to global variable #global:psresult# and saved in Documents tab of server.Pronoc
11:19:37 am 21-Aug-25Execute Powershell Command-0012Informational: GetFile command overwrote the server file C:\Kaseya\UserProfiles\479272172520311\GetFiles..\docs\psoutput.txt with the new contents from c:\Pronoc\psoutput.txt in THEN step 2.Pronoc
11:19:37 am 21-Aug-25Execute Powershell Command-0011Powershell command completed!Pronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0011Executing powershell "" -Command "New-Item -Type Directory -Path %ProgramData%_automation\AgentProcedure -Name get-lenovowarranty -ErrorAction SilentlyContinue" >"c:\Pronoc\psoutput.txt"Pronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0009Success THENPronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0010Success THENPronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0010Sending output to global variable.Pronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0007Success THENPronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0008Success THENPronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0008New command variable is: -Command "New-Item -Type Directory -Path %ProgramData%_automation\AgentProcedure -Name get-lenovowarranty -ErrorAction SilentlyContinue"Pronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0008Custom commands detected as New-Item -Type Directory -Path %ProgramData%_automation\AgentProcedure -Name get-lenovowarranty -ErrorAction SilentlyContinuePronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0003Success THENPronoc
11:19:35 am 21-Aug-25Execute Powershell Command-0004Success ELSEPronoc
11:19:33 am 21-Aug-25Execute Powershell Command-0002Powershell is present.Pronoc
11:19:32 am 21-Aug-25Lenovo Warranty (CF)Machine is: LENOVOPronoc
11:19:27 am 21-Aug-25Run Now - Lenovo Warranty (CF)Admin Pronoc scheduled procedure Run Now - Lenovo Warranty (CF) to run at Aug 21 2025 11:19AMPronoc

Dependencies

Warranty Expiration Date

Variables

NameDescription
ManufacturerThis shows the Manafucturer fetched from VSA
Dir%ProgramData%\ _automation\AgentProcedure\get-lenovowarranty

Managed Files

Get-LenovoWarranty

Output

Script Logs