{"id":237,"date":"2017-07-28T14:23:31","date_gmt":"2017-07-28T14:23:31","guid":{"rendered":"http:\/\/blog.van-daag.nl\/?p=237"},"modified":"2017-07-28T14:24:22","modified_gmt":"2017-07-28T14:24:22","slug":"237","status":"publish","type":"post","link":"https:\/\/van-daag.nl\/?p=237","title":{"rendered":"Install Notepad++ with GPO"},"content":{"rendered":"<p>For a different company I needed to install Notepad++ on some systems.<\/p>\n<p>Created AD group. Created a Share. Give rights to the AD group.<br \/>\nIn the ad Group place the computers.<\/p>\n<p>Created GPO and rights to the AD group only.<br \/>\nAdded the script in startup scripts in the computer configuration.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-42\" src=\"https:\/\/i0.wp.com\/blog.van-daag.nl\/wp-content\/uploads\/2016\/12\/Computerpol-1.png?resize=640%2C88\" alt=\"\" width=\"640\" height=\"88\" srcset=\"https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2016\/12\/Computerpol-1.png?w=1292&amp;ssl=1 1292w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2016\/12\/Computerpol-1.png?resize=300%2C41&amp;ssl=1 300w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2016\/12\/Computerpol-1.png?resize=768%2C105&amp;ssl=1 768w, https:\/\/i0.wp.com\/van-daag.nl\/wp-content\/uploads\/2016\/12\/Computerpol-1.png?resize=1024%2C140&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<pre class=\"lang:batch decode:true \">@echo off\r\nREM #########################################\r\nREM ##### Created by Daag van der Meer #####\r\nREM ##### Blog.van-daag.nl             #####\r\nREM ##### Filename NPPInstall.cmd      #####\r\nREM #########################################\r\nPING 1.1.1.1 -n 1 -w 900 &gt;NUL\r\n\r\nSET LOGLOC=%Systemdrive%\\logs\r\n\r\n\r\nREM ############### Create Log Dir ###################\r\nmkdir %LOGLOC%\r\nattrib +s +h %Systemdrive%\\logs\r\nGOTO INSTALL\r\n\r\n:INSTALL\r\nREM ######## Check NPP Installed #############\r\nset Logfile=%LOGLOC%\\NPPfile.log\r\nif not exist \"%Logfile%\" (\r\necho NPP is Installed on %date% at %time% &gt;&gt; %LogFile%\r\nGOTO NPPSTART)\r\n\r\nGOTO END\r\n\r\n:NPPSTART\r\n\r\nif exist \"%programfiles%\\Notepad++\\uninstall.exe\" GOTO END\r\n\r\nif exist \"%programfiles(x86)%\\ Notepad++\\uninstall.exe\" GOTO END\r\n\r\nstart \/wait \\\\&lt;SERVER&gt;\\&lt;SHARE&gt;\\npp.7.4.2.Installer.exe \/S\r\n\r\n\r\n\r\n:END<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a different company I needed to install Notepad++ on some systems. Created AD group. Created a Share. Give rights to the AD group. In the ad Group place the computers. Created GPO and rights to the AD group only. Added the script in startup scripts in the computer configuration. @echo off REM ######################################### REM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[23,7,19,20],"tags":[],"class_list":["post-237","post","type-post","status-publish","format-standard","hentry","category-gpo","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\/237","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=237"}],"version-history":[{"count":2,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions\/239"}],"wp:attachment":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}