{"id":10661,"date":"2006-04-25T12:18:03","date_gmt":"2006-04-25T12:18:03","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2006\/04\/25\/using-monad-for-logon-scripts\/"},"modified":"2019-02-18T13:24:57","modified_gmt":"2019-02-18T20:24:57","slug":"using-monad-for-logon-scripts","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/using-monad-for-logon-scripts\/","title":{"rendered":"Using Monad for logon scripts"},"content":{"rendered":"<p>In case you were wondering, yes, you can use Monad for your logon scripts.&nbsp; You can&#8217;t just assign a .MSH file as a logon script however, since only file types with file associations work as logon scripts.&nbsp; Monad installation doesn&#8217;t create a file association &#8220;.MSH -&gt; msh.exe -command %1&#8221; for security reasons.&nbsp; The best way to run a Monad logon script is probably to create a .CMD file containing &#8220;msh.exe -command mylogonscript.msh&#8221;.<\/p>\n<p>[<i>Edit: Monad has now been renamed to Windows PowerShell.  This script or discussion may require slight adjustments before it applies directly to newer builds.<\/i>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In case you were wondering, yes, you can use Monad for your logon scripts.&nbsp; You can&#8217;t just assign a .MSH file as a logon script however, since only file types with file associations work as logon scripts.&nbsp; Monad installation doesn&#8217;t create a file association &#8220;.MSH -&gt; msh.exe -command %1&#8221; for security reasons.&nbsp; The best way [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>In case you were wondering, yes, you can use Monad for your logon scripts.&nbsp; You can&#8217;t just assign a .MSH file as a logon script however, since only file types with file associations work as logon scripts.&nbsp; Monad installation doesn&#8217;t create a file association &#8220;.MSH -&gt; msh.exe -command %1&#8221; for security reasons.&nbsp; The best way [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/10661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=10661"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/10661\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=10661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=10661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=10661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}