{"id":135,"date":"2017-04-27T14:25:13","date_gmt":"2017-04-27T12:25:13","guid":{"rendered":"http:\/\/blog.van-daag.nl\/?p=135"},"modified":"2017-04-27T14:25:13","modified_gmt":"2017-04-27T12:25:13","slug":"create-a-reboot-popup-with-landesk","status":"publish","type":"post","link":"https:\/\/van-daag.nl\/?p=135","title":{"rendered":"Create a reboot popup with Landesk"},"content":{"rendered":"<p>The problem what I had with Landesk, when software is installed I want to inform the user to reboot. This is not configured in Landesk.<\/p>\n<p>I made this script that use landesk client on the system to create a popup for a reboot.<\/p>\n<pre class=\"lang:batch decode:true \" title=\"reboot.cmd\">@echo off\ncls\necho --------------------------------------------------------\necho .\necho .\necho .                     Reboot\necho .         Window will close once installed\n\nIf \"%PROCESSOR_ARCHITECTURE%\" == \"AMD64\" GOTO X64\nIF \"%PROCESSOR_ARCHITECTURE%\" == \"x86\" GOTO x86\n\nGOTO EXIT\n\n\n:: Wait for 20 seconds\nping -n 20 127.0.0.1 &gt; NUL\n\n:x86\n\n\nREM Run Reboot\n\"C:\\Program Files\\LANDesk\\LDClient\\ldReboot.exe\"\n\n\nGOTO EXIT\n\n\n\n:X64\n\nREM Run Reboot\n\"C:\\Program Files (x86)\\LANDesk\\LDClient\\ldReboot.exe\"\n\n\nGOTO EXIT\n\n:EXIT\nREM Return exit code to SCCM\nexit \/B %EXIT_CODE%<\/pre>\n<p>Add this script to landesk as a program and you can use it every time when you need to inform the user to reboot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The problem what I had with Landesk, when software is installed I want to inform the user to reboot. This is not configured in Landesk. I made this script that use landesk client on the system to create a popup for a reboot. @echo off cls echo &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; echo . echo . echo . Reboot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,7,19,20],"tags":[],"class_list":["post-135","post","type-post","status-publish","format-standard","hentry","category-landesk","category-ms-dos-scripts","category-windows-10","category-windows-7"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135"}],"version-history":[{"count":0,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions"}],"wp:attachment":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}