{"id":3761,"date":"2023-06-01T10:37:02","date_gmt":"2023-06-01T10:37:02","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=3761"},"modified":"2023-06-01T10:37:02","modified_gmt":"2023-06-01T10:37:02","slug":"message-on-terminal-server-logon","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=3761","title":{"rendered":"Message on Terminal Server Logon"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Here&#8217;s a quick one, if you need to show a logon message to all users as they logon to a Terminal Server, for example to alert them to maintenance upcoming, there are a number of ways to do this, but this approach is a simple one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You would just add the a &#8220;Logon&#8221; script by use of the  <strong>User Configuration->Policies->Windows Settings->Scripts (Logon\/Logoff)->Logon section<\/strong>. Upload the file into the policies directory. Then refer to the filename within the configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this case Loopback processing is enabled on the GPO (as its a terminal server) which essentially means that the &#8220;User Configuration&#8221; section is applied to a user logging on based on the computer to which they logon to (in this case a Terminal Server). i.e. Loopback applies the User Configuration even when the user&#8217;s account is not actually within scope of the GPO.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"671\" src=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/06\/image.png\" alt=\"\" class=\"wp-image-3762\" srcset=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/06\/image.png 804w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/06\/image-300x250.png 300w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2023\/06\/image-768x641.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The content of the VBS file should be:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>answer=MsgBox(\"We are doing something\",64,\"Important Notice\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now when you attempt to logon you&#8217;ll see this message appear in a message box.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a quick one, if you need to show a logon message to all users as they logon to a Terminal Server, for example to alert them to maintenance upcoming, there are a number of ways to do this, but this approach is a simple one. You would just add the a &#8220;Logon&#8221; script by &#8230; <a title=\"Message on Terminal Server Logon\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=3761\" aria-label=\"Read more about Message on Terminal Server Logon\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,14,20],"tags":[],"class_list":["post-3761","post","type-post","status-publish","format-standard","hentry","category-active-directory","category-microsoft-windows","category-random"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3761"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3761\/revisions"}],"predecessor-version":[{"id":3763,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3761\/revisions\/3763"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}