{"id":8219,"date":"2021-11-23T21:02:21","date_gmt":"2021-11-23T20:02:21","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=8219"},"modified":"2021-12-01T10:05:37","modified_gmt":"2021-12-01T09:05:37","slug":"powershell-generate-a-guid","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/powershell-generate-a-guid\/","title":{"rendered":"Powershell: Generate a GUID"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_8219 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_8219')){$('.twoclick_social_bookmarks_post_8219').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Powershell%3A%20Generate%20a%20GUID\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ato%20create%20a%20GUID%20in%20powershell%20for%20the%20use%20in%20your%20own%20scripts%20call%20the%20static%20function%20NewGuid%28%29%20from%20the%20system.Guid%20class.%0D%0A%5Bpowershell%5D%0D%0APS%20D%3A%5C%26gt%3B%20%5Bsystem.Guid%5D%3A%3ANewGuid%28%29%0D%0Af3f8591a-c1d6-4d82-bec2-d3dac2c1fee5%0D%0A%5B%2Fpowershell%5D%0D%0A%0D%0AMichael\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/powershell-generate-a-guid\\\/\",\"post_id\":8219,\"post_title_referrer_track\":\"Powershell%3A+Generate+a+GUID\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>to create a GUID in powershell for the use in your own scripts call the static function NewGuid() from the system.Guid class.<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\nPS D:\\&gt; &#x5B;system.Guid]::NewGuid()\r\nf3f8591a-c1d6-4d82-bec2-d3dac2c1fee5\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, to create a GUID in powershell for the use in your own scripts call the static function NewGuid() from the system.Guid class. PS D:\\&gt; &#x5B;system.Guid]::NewGuid() f3f8591a-c1d6-4d82-bec2-d3dac2c1fee5 Michael<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[344],"tags":[73,1720,133],"class_list":["post-8219","post","type-post","status-publish","format-standard","hentry","category-powershell-scripting","tag-get","tag-guid","tag-powershell"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=8219"}],"version-history":[{"count":1,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8219\/revisions"}],"predecessor-version":[{"id":8220,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/8219\/revisions\/8220"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=8219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=8219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=8219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}