{"id":226,"date":"2015-06-26T08:04:25","date_gmt":"2015-06-26T06:04:25","guid":{"rendered":"http:\/\/christianlehrer.com\/?p=226"},"modified":"2015-06-26T08:04:25","modified_gmt":"2015-06-26T06:04:25","slug":"installing-novell-zen-works-client-in-sccm-osd-tasksequence","status":"publish","type":"post","link":"https:\/\/christianlehrer.com\/?p=226","title":{"rendered":"Installing Novell ZEN-Works Client in SCCM OSD Tasksequence"},"content":{"rendered":"<div class=\"shariff\" data-title=\"Installing Novell ZEN-Works Client in SCCM OSD Tasksequence\" data-info-url=\"http:\/\/ct.de\/-2467514\" data-backend-url=\"https:\/\/christianlehrer.com\/wp-content\/plugins\/shariff-sharing\/backend\/index.php\" data-temp=\"\/tmp\" data-ttl=\"60\" data-service=\"tlxr\" data-services='[\"facebook\",\"twitter\",\"linkedin\",\"xing\",\"reddit\",\"whatsapp\",\"mail\",\"info\"]' data-image=\"\" data-url=\"https:\/\/christianlehrer.com\/?p=226\" data-lang=\"en\" data-theme=\"white\" data-orientation=\"horizontal\"><\/div><p>Hi there,<\/p>\n<p>I know, I know, why would you install the ZENworks Client when you got SCCM? Well, sometimes that\u00b4s just the way it is&#8230;<\/p>\n<p>Installting the ZENwork Clients is not as easy as it may seem. There is an installer that brings everything needed and so I started by just running that installer during the OSD Tasksequence. But the result was really disappointing: Sometimes the Installation would work, sometimes not, sometimes the device would be registered, sometimes the device would remain in a state where it was impossible to repair the ZENwork Client.<\/p>\n<p>Nearly giving up, I searched again and found a <a title=\"installing-novell-zcm-adaptive-agent-in-mdt-2012\" href=\"http:\/\/www.vaughnemiller.com\/2012\/09\/06\/installing-novell-zcm-adaptive-agent-in-mdt-2012\/\" target=\"_blank\">blog post<\/a> by Vaughn Miller, where he describes how he installs the ZENworks Client with MDT.<\/p>\n<p>Long Story short: The ZENworks installer starts up to <strong>52<\/strong> separate installers. The last one it starts is called Setup.exe. Voughn wrote a vbs-script waiting for this Setup.exe and stopping the script when this Setup.exe has finished.<\/p>\n<p>Beeing a PowerShell Guy, I rewrote the script and put this script into the OSD Tasksequence:<\/p>\n<p>Here is the script:<\/p>\n<hr \/>\n<p><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\">D:\\yourfiles\\ZCM\\PreAgentPkg_AgentCompleteX64.exe<\/span> <span style=\"color: #000080; font-family: Lucida Console; font-size: xx-small;\">-q<\/span> <span style=\"color: #000080; font-family: Lucida Console; font-size: xx-small;\">-x<\/span><\/p>\n<p><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$loop<\/span><\/span><\/span> <span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\">=<\/span><\/span><\/span> <span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\">1<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\">do<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\"> {<\/span><\/span><\/p>\n<p><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\">Start-Sleep<\/span><\/span><\/span> <span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\">5<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$isrunning<\/span><\/span><\/span> <span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\">=<\/span><\/span><\/span> <span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\">get-process<\/span><\/span><\/span> <span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\">setup<\/span><\/span><\/span> <span style=\"color: #000080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #000080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #000080; font-family: Lucida Console; font-size: xx-small;\">-ErrorAction<\/span><\/span><\/span> <span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\">SilentlyContinue<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\">if<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\"> (<\/span><\/span><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$isrunning<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\">) {<\/span><\/span><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$loop<\/span><\/span><\/span> <span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\">=<\/span><\/span><\/span> <span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\">0<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\">}<\/span><\/span><\/p>\n<p>}<\/p>\n<p><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\">until<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\"> (<\/span><\/span><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$loop<\/span><\/span><\/span> <span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\">-eq<\/span><\/span><\/span> <span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\">0<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\">)<\/span><\/span><\/p>\n<p><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$2ndloop<\/span><\/span><\/span> <span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\">=<\/span><\/span><\/span> <span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\">1<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\">do<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\"> {<\/span><\/span><\/p>\n<p><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\">Start-Sleep<\/span><\/span><\/span> <span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\">5<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$isrunning<\/span><\/span><\/span> <span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\">=<\/span><\/span><\/span> <span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #0000ff; font-family: Lucida Console; font-size: xx-small;\">get-process<\/span><\/span><\/span> <span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\">setup<\/span><\/span><\/span> <span style=\"color: #000080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #000080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #000080; font-family: Lucida Console; font-size: xx-small;\">-ErrorAction<\/span><\/span><\/span> <span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #8a2be2; font-family: Lucida Console; font-size: xx-small;\">SilentlyContinue<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\">if<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\"> (<\/span><\/span><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\">!<\/span><\/span><\/span><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$isrunning<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\">) {<\/span><\/span><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$2ndloop<\/span><\/span><\/span> <span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\">=<\/span><\/span><\/span> <span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\">0<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\">}<\/span><\/span><\/p>\n<p>}<\/p>\n<p><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #00008b; font-family: Lucida Console; font-size: xx-small;\">until<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\"> (<\/span><\/span><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #ff4500; font-family: Lucida Console; font-size: xx-small;\">$2ndloop<\/span><\/span><\/span> <span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;\">-eq<\/span><\/span><\/span> <span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\"><span style=\"color: #800080; font-family: Lucida Console; font-size: xx-small;\">0<\/span><\/span><\/span><span style=\"font-family: Lucida Console; font-size: xx-small;\"><span style=\"font-family: Lucida Console; font-size: xx-small;\">)<\/span><\/span><\/p>\n<hr \/>\n<p>What is this script doing?<\/p>\n<p>1. It starts the installer<\/p>\n<p>2. It checks if Setup.exe is running (in a Loop)<\/p>\n<p>3. When Setup.exe is running, it checks if Setup.exe is not running any more<\/p>\n<p>4. The script finishes.<\/p>\n<p>Now we can put this script in a Package, distribute it to our DPs and run it in the OSD Tasksequence.<\/p>\n<p>The tasksequence will wait until the script is finished and proceed to the next step.<\/p>\n<p>As a result we get the ZCM-agent installed and the device registered in ZENworks correctly. \ud83d\ude42<\/p>\n<p>Thanks to Voughn!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi there, I know, I know, why would you install the ZENworks Client when you got SCCM? Well, sometimes that\u00b4s just the way it is&#8230; Installting the ZENwork Clients is not as easy as it may seem. There is an installer that brings everything needed and so I started by just running that installer during&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[126,83,125],"_links":{"self":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts\/226"}],"collection":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=226"}],"version-history":[{"count":2,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts\/226\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}