Tuesday, May 11, 2010

Landesk local schedular restart

Found this here and it works well in a pinch:
http://community.landesk.com/support/thread/4648


: This script will delete the clients landesk database, recreate it, validate it and clean up
: old xml files/ Any xml files that are still required will repopulate as needed
: this is also good at fixing portal and other policy issues



cmd /c del "c:\documents and settings\all users\application data\landesk\managementsuite\database" /q
del "C:\Documents and Settings\All Users\Application Data\LANDesk\ManagementSuite\landesk\files" /q
del "C:\Documents and Settings\All Users\Application Data\vulScan\*.xml" /q
del "C:\Program Files\LANDesk\LDClient\sdmcache\landesk\files\*.xml" /q
net stop "Landesk Policy Invoker"
"c:\program files\landesk\ldclient\clientdbutil.exe" /create
"c:\program files\landesk\ldclient\clientdbutil.exe" /validate
net start "Landesk Policy Invoker"
"c:\program files\landesk\ldclient\policy.sync.exe"
"c:\program files\landesk\ldclient\policy.client.invoker.exe"
EXIT /B 0

No comments: