{"id":3825,"date":"2021-01-25T08:00:31","date_gmt":"2021-01-25T14:00:31","guid":{"rendered":"https:\/\/practicalpowershell.com\/?p=3825"},"modified":"2021-01-31T19:30:30","modified_gmt":"2021-02-01T01:30:30","slug":"powershell-log-files-options","status":"publish","type":"post","link":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/","title":{"rendered":"PowerShell Log Files &#8211; Options"},"content":{"rendered":"<p><BR><\/p>\n<h3>Log Files<\/h3>\n<p>Creating log files for auditing can be a pain to implement, but may be a boon if you are automating scripts.  The oft asked detail, is indeed, how much details do we need to log for the script?  Well.  It Depends.  How deep do you want the log to cover?  Do you just need to know where the script stopped (if there were errors) OR do you need each \u2026 and every \u2026 step sent to the log for auditing and error analysis.<BR><br \/>\nFor this tip we&#8217;ll take a small script and then add a whole bunch of lines to create a log file.  Then we&#8217;ll examine what this log file contains and possible enhancements.  Key thing to remember in the output is that is it up to you, the scripter, to decide the level of detail and formatting of the log file as it will only be useful to you if it makes sense to you.<\/p>\n<h3>Script<\/h3>\n<p>First.  The script. [** NOTE ** The connection method is NOT shown. ] Within this script, we are checking a few prerequisites on a system to make sure a new PowerShell module can be downloaded.  In this case, we need to ensure that NuGet is the right version and that the PowerShell Gallery &#8211; PSGallery &#8211;  is trusted.  So here is the barest of code:<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\nInstall-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -Confirm:$False -Verbose<br \/>\nSet-PSRepository -Name &quot;PSGallery&quot; -InstallationPolicy Trusted -ErrorAction STOP<br \/>\n[\/sourcecode]<br \/>\nOn most computers this will probably install just fine.  However, what  if there are issues or errors logged, what if a reboot is required or an update is unreachable, then what?  If your script were automated, then these might fail and what log file would you review? None.  So let&#8217;s create one.<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\n# Logging File<br \/>\n$LogPath = (Get-Item -Path &quot;.\\&quot; -Verbose).FullName<br \/>\n$LogFile = &quot;Logging.txt&quot;<br \/>\n$LogDestination = $LogPath+&quot;\\&quot;+$LogFile<br \/>\n[\/sourcecode]<br \/>\nNow that we have a log file (this part is optional) we can add a header for each time we write to the log file for historical purposes:<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\n$CurrentDate = Get-Date -Format yyyymmdd-HHMMss<br \/>\n$Output = &quot;&quot; | Out-File $LogDestination -Append<br \/>\n$Output = &quot;################### $CurrentDate &#8211; Start ##############################&quot; | Out-File $LogDestination -Append<br \/>\n[\/sourcecode]<br \/>\nWith this header in place, we can proceed to the first prereq:<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\nTry {<br \/>\n    Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force -Confirm:$False -ErrorAction STOP<br \/>\n    $Date = Get-Date<br \/>\n    $Output = &quot;$Date &#8211; SUCCESS &#8211; NuGet is now at a minimum version of 2.8.5.201.&quot; | Out-File  $LogDestination -Append<br \/>\n} Catch {<br \/>\n    $Date = Get-Date<br \/>\n    $Output = &quot;$Date &#8211; FAILURE &#8211; NuGet is not at the correct versions. Error:&quot; | Out-File $LogDestination -Append<br \/>\n    $Line = &quot;$Date &#8211; Error message &#8211; $_.Exception.Message&quot; | Out-File $LogDestination -Append<br \/>\n}<br \/>\n[\/sourcecode]<br \/>\nNotice that Get-Date is used multiple times, this helps pinpoint times where there was an issue.  We are also using Try {} Catch {} to catch errors.  Successes and Failures are logged to the same log file.  Next line of code will be treated the same:<br \/>\n[sourcecode language=&#8221;powershell&#8221;]<br \/>\nTry {<br \/>\n    Set-PSRepository -Name &quot;PSGallery&quot; -InstallationPolicy Trusted -ErrorAction STOP<br \/>\n    $Date = Get-Date<br \/>\n    $Output = &quot;$Date &#8211; SUCCESS &#8211; PSGallery is now trusted.&quot; | Out-File  $LogDestination -Append<br \/>\n} Catch {<br \/>\n    $Date = Get-Date<br \/>\n    $Output = &quot;$Date &#8211; FAILURE &#8211; Could not change trust for PSGallery. Error:&quot; | Out-File $LogDestination -Append<br \/>\n    $Line = &quot;$Date &#8211; Error message &#8211; $_.Exception.Message&quot; | Out-File $LogDestination -Append<br \/>\n}<br \/>\n[\/sourcecode]<\/p>\n<h3>Results<\/h3>\n<p>Now, if you want, and there are many operations like this, we could potential create a wrapper function to hand this.  For this scenario, we are keeping it simple.  Let&#8217;s review the output:<BR><br \/>\n<a href=\"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg?resize=640%2C79&#038;ssl=1\" alt=\"\" width=\"640\" height=\"79\" class=\"aligncenter size-full wp-image-3826\" srcset=\"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg?w=644&amp;ssl=1 644w, https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg?resize=300%2C37&amp;ssl=1 300w, https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg?resize=600%2C74&amp;ssl=1 600w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\nWe can see that all worked as expected and we are ready to go (prereq-wise).  We also see that there is a Start and End date for the log which could help with troubleshooting.  If we have failures, we might see stuff like this:<BR><br \/>\n<a href=\"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25-02.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25-02.jpg?resize=640%2C63&#038;ssl=1\" alt=\"\" width=\"640\" height=\"63\" class=\"aligncenter size-full wp-image-3827\" srcset=\"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25-02.jpg?w=1313&amp;ssl=1 1313w, https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25-02.jpg?resize=300%2C29&amp;ssl=1 300w, https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25-02.jpg?resize=1024%2C101&amp;ssl=1 1024w, https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25-02.jpg?resize=768%2C75&amp;ssl=1 768w, https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25-02.jpg?resize=600%2C59&amp;ssl=1 600w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/>\nWith this log, we see that here were some connectivity issues, we might notice that there was an Internet issue at that time to explain it and if not, then may something more local that needs investigating.<\/p>\n<h3>Summary<\/h3>\n<p>As we see, this form of logging has its advantages (additional information) and downsides (additional time to code).  The formatting that is chosen is entirely up to you the scripter.  You can add more or remove lines, use different date formats and more.  Entirely up to you how the log will log as it will be yours to use.  Hope you enjoyed this tip.  Sign up for the newsletter if you have not already!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Log Files Creating log files for auditing can be a pain to implement, but may be a boon if you are automating scripts. The oft asked detail, is indeed, how much details do we need to log for the script? Well. It Depends. How deep do you want the log to cover? Do you just [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22],"tags":[],"class_list":["post-3825","post","type-post","status-publish","format-standard","hentry","category-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PowerShell Log Files - Options - Practical PowerShell<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/practicalpowershell.com\/powershell-log-files-options\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell Log Files - Options - Practical PowerShell\" \/>\n<meta property=\"og:description\" content=\"Log Files Creating log files for auditing can be a pain to implement, but may be a boon if you are automating scripts. The oft asked detail, is indeed, how much details do we need to log for the script? Well. It Depends. How deep do you want the log to cover? Do you just [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/practicalpowershell.com\/powershell-log-files-options\/\" \/>\n<meta property=\"og:site_name\" content=\"Practical PowerShell\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-25T14:00:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-01T01:30:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg\" \/>\n<meta name=\"author\" content=\"damian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"damian\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/\"},\"author\":{\"name\":\"damian\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#\\\/schema\\\/person\\\/4d0733c81966e744aabbb49f56d64deb\"},\"headline\":\"PowerShell Log Files &#8211; Options\",\"datePublished\":\"2021-01-25T14:00:31+00:00\",\"dateModified\":\"2021-02-01T01:30:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/\"},\"wordCount\":753,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#\\\/schema\\\/person\\\/4d0733c81966e744aabbb49f56d64deb\"},\"image\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/practicalpowershell.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/PSTOTW-2021-01-25.jpg\",\"articleSection\":[\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/\",\"url\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/\",\"name\":\"PowerShell Log Files - Options - Practical PowerShell\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/practicalpowershell.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/PSTOTW-2021-01-25.jpg\",\"datePublished\":\"2021-01-25T14:00:31+00:00\",\"dateModified\":\"2021-02-01T01:30:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/practicalpowershell.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/PSTOTW-2021-01-25.jpg?fit=644%2C79&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/practicalpowershell.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/PSTOTW-2021-01-25.jpg?fit=644%2C79&ssl=1\",\"width\":644,\"height\":79},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/powershell-log-files-options\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/practicalpowershell.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell Log Files &#8211; Options\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#website\",\"url\":\"https:\\\/\\\/practicalpowershell.com\\\/\",\"name\":\"Practical PowerShell\",\"description\":\"PowerShell books written by experts\",\"publisher\":{\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#\\\/schema\\\/person\\\/4d0733c81966e744aabbb49f56d64deb\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/practicalpowershell.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/practicalpowershell.com\\\/#\\\/schema\\\/person\\\/4d0733c81966e744aabbb49f56d64deb\",\"name\":\"damian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g\",\"caption\":\"damian\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PowerShell Log Files - Options - Practical PowerShell","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/","og_locale":"en_US","og_type":"article","og_title":"PowerShell Log Files - Options - Practical PowerShell","og_description":"Log Files Creating log files for auditing can be a pain to implement, but may be a boon if you are automating scripts. The oft asked detail, is indeed, how much details do we need to log for the script? Well. It Depends. How deep do you want the log to cover? Do you just [&hellip;]","og_url":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/","og_site_name":"Practical PowerShell","article_published_time":"2021-01-25T14:00:31+00:00","article_modified_time":"2021-02-01T01:30:30+00:00","og_image":[{"url":"https:\/\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg","type":"","width":"","height":""}],"author":"damian","twitter_card":"summary_large_image","twitter_misc":{"Written by":"damian","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/#article","isPartOf":{"@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/"},"author":{"name":"damian","@id":"https:\/\/practicalpowershell.com\/#\/schema\/person\/4d0733c81966e744aabbb49f56d64deb"},"headline":"PowerShell Log Files &#8211; Options","datePublished":"2021-01-25T14:00:31+00:00","dateModified":"2021-02-01T01:30:30+00:00","mainEntityOfPage":{"@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/"},"wordCount":753,"commentCount":0,"publisher":{"@id":"https:\/\/practicalpowershell.com\/#\/schema\/person\/4d0733c81966e744aabbb49f56d64deb"},"image":{"@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/#primaryimage"},"thumbnailUrl":"https:\/\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg","articleSection":["PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/practicalpowershell.com\/powershell-log-files-options\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/","url":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/","name":"PowerShell Log Files - Options - Practical PowerShell","isPartOf":{"@id":"https:\/\/practicalpowershell.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/#primaryimage"},"image":{"@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/#primaryimage"},"thumbnailUrl":"https:\/\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg","datePublished":"2021-01-25T14:00:31+00:00","dateModified":"2021-02-01T01:30:30+00:00","breadcrumb":{"@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/practicalpowershell.com\/powershell-log-files-options\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/#primaryimage","url":"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg?fit=644%2C79&ssl=1","contentUrl":"https:\/\/i0.wp.com\/practicalpowershell.com\/wp-content\/uploads\/2021\/01\/PSTOTW-2021-01-25.jpg?fit=644%2C79&ssl=1","width":644,"height":79},{"@type":"BreadcrumbList","@id":"https:\/\/practicalpowershell.com\/powershell-log-files-options\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/practicalpowershell.com\/"},{"@type":"ListItem","position":2,"name":"PowerShell Log Files &#8211; Options"}]},{"@type":"WebSite","@id":"https:\/\/practicalpowershell.com\/#website","url":"https:\/\/practicalpowershell.com\/","name":"Practical PowerShell","description":"PowerShell books written by experts","publisher":{"@id":"https:\/\/practicalpowershell.com\/#\/schema\/person\/4d0733c81966e744aabbb49f56d64deb"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/practicalpowershell.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/practicalpowershell.com\/#\/schema\/person\/4d0733c81966e744aabbb49f56d64deb","name":"damian","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g","caption":"damian"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/d5a8cc64a5aa27558a897b108e3be1a89859511a3fd26176dac292f26e7a4ae4?s=96&d=mm&r=g"}}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/posts\/3825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/comments?post=3825"}],"version-history":[{"count":3,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/posts\/3825\/revisions"}],"predecessor-version":[{"id":3830,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/posts\/3825\/revisions\/3830"}],"wp:attachment":[{"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/media?parent=3825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/categories?post=3825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/practicalpowershell.com\/wp-json\/wp\/v2\/tags?post=3825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}