{"id":415,"date":"2023-10-15T14:43:50","date_gmt":"2023-10-15T12:43:50","guid":{"rendered":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/?p=415"},"modified":"2023-10-15T14:43:51","modified_gmt":"2023-10-15T12:43:51","slug":"lock-computer-instant-screen-off","status":"publish","type":"post","link":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/?p=415","title":{"rendered":"Lock computer = instant screen off"},"content":{"rendered":"\n<p>It makes no sense to leave the monitor on when the device is locked. This PowerShell command sends the monitor to energy saving immediately.<\/p>\n\n\n\n<p>Because I don&#8217;t know how to send powershell commands from a task, I used a bat \ud83d\ude42<\/p>\n\n\n\n<p><code>@echo off<br>echo Der Bildschirm wird in den Ruhezustand geschickt!<br>powershell (Add-Type '[DllImport(\\\"user32.dll\\\")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)<\/code><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_25-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"480\" data-id=\"419\" src=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_25-1.png\" alt=\"\" class=\"wp-image-419\" srcset=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_25-1.png 632w, https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_25-1-300x228.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_39.png\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"480\" data-id=\"417\" src=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_39.png\" alt=\"\" class=\"wp-image-417\" srcset=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_39.png 632w, https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_39-300x228.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_50-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"480\" data-id=\"420\" src=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_50-1.png\" alt=\"\" class=\"wp-image-420\" srcset=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_50-1.png 632w, https:\/\/www.crazy-memorys.ch\/IfixedIT\/wp-content\/uploads\/2023\/10\/2023-10-11_07h53_50-1-300x228.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/a><\/figure>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>It makes no sense to leave the monitor on when the device is locked. This PowerShell command sends the monitor to energy saving immediately. Because I don&#8217;t know how to send powershell commands from a task, I used a bat \ud83d\ude42 @echo offecho Der Bildschirm wird in den Ruhezustand geschickt!powershell (Add-Type &#8218;[DllImport(\\&#8220;user32.dll\\&#8220;)]^public static extern int &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.crazy-memorys.ch\/IfixedIT\/?p=415\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eLock computer = instant screen off\u201c<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-415","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=\/wp\/v2\/posts\/415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=415"}],"version-history":[{"count":4,"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=\/wp\/v2\/posts\/415\/revisions"}],"predecessor-version":[{"id":424,"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=\/wp\/v2\/posts\/415\/revisions\/424"}],"wp:attachment":[{"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.crazy-memorys.ch\/IfixedIT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}