{"id":396,"date":"2023-01-28T19:51:55","date_gmt":"2023-01-28T19:51:55","guid":{"rendered":"https:\/\/xuan.co.uk\/?p=396"},"modified":"2023-07-17T20:56:19","modified_gmt":"2023-07-17T20:56:19","slug":"command-line-to-check-if-you-admin-rights","status":"publish","type":"post","link":"https:\/\/xuan.co.uk\/?p=396","title":{"rendered":"Command line to check if you admin rights and exit if not"},"content":{"rendered":"<p>net.exe session 1&gt;NUL 2&gt;NUL || (Echo This script requires admin elevated rights, exiting. &amp; echo. &amp; pause &amp; Exit \/b 1)<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>net.exe session 1&gt;NUL 2&gt;NUL || (Echo This script requires admin elevated rights, exiting. &amp; echo. &amp; pause &amp; Exit \/b 1) &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[81],"class_list":["post-396","post","type-post","status-publish","format-standard","hentry","category-tech-tips","tag-cmd"],"_links":{"self":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=396"}],"version-history":[{"count":2,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/396\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/396\/revisions\/398"}],"wp:attachment":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}