{"id":52403,"date":"2009-09-23T03:01:00","date_gmt":"2009-09-23T03:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2009\/09\/23\/hey-scripting-guy-can-i-sort-files-by-creation-date\/"},"modified":"2009-09-23T03:01:00","modified_gmt":"2009-09-23T03:01:00","slug":"hey-scripting-guy-can-i-sort-files-by-creation-date","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/hey-scripting-guy-can-i-sort-files-by-creation-date\/","title":{"rendered":"Hey, Scripting Guy! Can I Sort Files by Creation Date?"},"content":{"rendered":"<p><!-- AddThis Button BEGIN --><a class=\"addthis_button\" href=\"http:\/\/www.addthis.com\/bookmark.php?v=250&amp;pub=scriptingguys\"><img decoding=\"async\" alt=\"Bookmark and Share\" src=\"http:\/\/s7.addthis.com\/static\/btn\/v2\/lg-share-en.gif\" width=\"125\" height=\"16\"><\/a><!-- AddThis Button END --><\/p>\n<p><span><span><img decoding=\"async\" title=\"Hey, Scripting Guy! Question\" border=\"0\" alt=\"Hey, Scripting Guy! Question\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" width=\"34\" height=\"34\"><\/span><\/span>Hey, Scripting Guy! I have a number of files that I work with based upon the date the file was created. I need an easy way to sort the listing of the files in a folder by creation date if possible. I am not sure this is even possible. When I look at the files in Windows Explorer, the date the file was created does not even appear. When I use the Windows PowerShell <b>Dir<\/b> command, the creation date does not appear either. Is this something that Windows quit tracking? Or is the date a file was modified the same thing as the date the file was created?<\/p>\n<\/p>\n<p>&lt;<\/p>\n<p>p style=&#8221;MARGIN: 0in 0in 8pt&#8221; class=&#8221;MsoNormal&#8221;&gt;&#8211; JB<\/p>\n<p><font size=\"3\"><img decoding=\"async\" title=\"Hey, Scripting Guy! Answer\" border=\"0\" alt=\"Hey, Scripting Guy! Answer\" align=\"left\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" width=\"34\" height=\"34\"><\/font><\/p>\n<p class=\"MsoNormal\">Hello JB, <\/p>\n<p class=\"MsoNormal\">Microsoft Scripting Guy Ed Wilson here. You know, when I am looking at pictures I took while I was scuba diving off the Little Caymans, such as the one following this paragraph, I often like to look at the creation date of the picture. In this way, I can match it up with the dates in my dive log and always remember where the picture was taken. In fact, because the time is also recorded in the creation date, I know not only where the picture was taken, but also the dive number. From my dive computer, I can look it up and tell you the water temperature, the maximum depth of the dive, the length of time I was in the water, the visibility, and all the other information (including the name of my dive buddy). <\/p>\n<p class=\"Fig-Graphic\"><img decoding=\"async\" title=\"Image of sea life off Little Caymans\" alt=\"Image of sea life off Little Caymans\" src=\"http:\/\/img.microsoft.com\/library\/media\/1033\/technet\/images\/scriptcenter\/qanda\/hsg\/2009\/september\/hey0923\/hsg-09-23-09-01.jpg\" width=\"600\" height=\"450\"><\/p>\n<p class=\"MsoNormal\"><br>Anyway, JB, you did not mention why you need to look at the creation date of the file, nor did you say the types of files with which you are working. But in reality, it does not matter. Because the SortFilesInFolderByCreationDate.ps1 script will accept a <b>path<\/b> argument and a <b>filter<\/b> argument, you can choose the folder and the file with which to work. The complete SortFilesInFolderByCreationDate.ps1 script is seen here.<\/p>\n<p class=\"CodeBlockScreenedHead\"><strong>SortFilesInFolderByCreationDate.ps1<\/p>\n<p><\/strong><\/p>\n<p class=\"CodeBlockScreened\"><span><font><font face=\"Lucida Sans Typewriter\">Param([string]$path, [string]$filter, [switch]$help)<\/p>\n<p>Function Sort-Files ([string]$path,[string]$filter)<br>{<br><span>&nbsp;<\/span>Get-ChildItem -Path $path -Filter $filter | <br><span>&nbsp;<\/span>Sort-Object -Property CreationTime<br>} #end Sort-Files<\/p>\n<p>Function Get-HelpText<br>{<br><span>&nbsp;<\/span>$helpText = @&#8221;<br>DESCRIPTION:<br><span>&nbsp; <\/span>Sorts files by creation date. Accepts parameter for path and file type.<br>EXAMPLE:<br><span>&nbsp; <\/span>SortFilesInFolderByCreationDate.ps1 -path c:fso -filter &#8220;*.txt&#8221;<br><span>&nbsp; <\/span>SortFilesInFolderByCreationDate.ps1 -p c:fso -f *.txt<br><span>&nbsp; <\/span>SortFilesInFolderByCreationDate.ps1 c:fso *.txt<br>&#8220;@<br><span>&nbsp;<\/span>$helpText<br>} #end Get-HelpText<br># *** Entry point to Script ***<\/p>\n<p>if($help) { Get-HelpText ; exit }<br>Sort-Files -path $path -filter $filter | <br>Format-Table -property name, creationtime -AutoSize <\/p>\n<p><\/font><\/font><\/span><\/p>\n<p class=\"MsoNormal\">The SortFilesInFolderByCreationDate.ps1 Windows PowerShell script begins by creating three command-line parameters. This will allow you to change the directory location or the file type to sort without needing to actually edit the text of the script. The SortFilesInFolderByCreationDate.ps1 script also creates a switched parameter named <b>help<\/b> that will display a help string when the script is run with the <b>&ndash;help<\/b> switch. The command-line parameter statement is seen here: <\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">Param([string]$path, [string]$filter, [switch]$help)<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">The main function in the SortFilesInFolderByCreationDate.ps1 script is the <b>Sort-Files<\/b> function. It accepts the <b>&ndash;path<\/b> parameter and the <b>&ndash;filter<\/b> parameter for inputs. When the parameters for the function are defined, they are specified as strings. To ensure the input is an instance of the <b>system.string<\/b> .NET Framework class, the class name is placed inside square brackets and it is used to constrain the value of the input parameter. An example of using this technique is shown here, where the number 15 is converted into a string value:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; $a = [string]15<br>PS C:&gt; $a.GetType()<\/p>\n<p>IsPublic IsSerial Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>BaseType<br>&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8211;<br>True<span>&nbsp; <\/span><span>&nbsp;&nbsp;&nbsp;<\/span>True<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>String<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>System.Object<\/p>\n<p><br>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">Inside the <b>Sort-Files<\/b> function, the <b>Get-ChildItem<\/b> cmdlet is used to obtain a listing of all the files in the specified folder that meet the filter criteria. An example of using the <b>Get-ChildItem<\/b> cmdlet to display a listing of jpg files from the <b>c:fso<\/b> folder is seen here:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; Get-ChildItem -Path C:fso -Filter *.jpg<\/p>\n<p><br><span>&nbsp;&nbsp;&nbsp; <\/span>Directory: C:fso<\/p>\n<p><br>Mode<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>LastWriteTime<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Length Name<br>&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;&#8212;-<span>&nbsp;&nbsp;&nbsp; <\/span><span>&nbsp;<\/span>&#8212;&#8212; &#8212;-<br>-a&#8212;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>10\/12\/2008<span>&nbsp;&nbsp; <\/span>7:26 PM<span>&nbsp;&nbsp;&nbsp; <\/span>9941280 LittleCayman_0122_edited-1.JPG<\/p>\n<p><br>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">After you have the collection of files that meet the filter criteria, the results are passed across the Windows PowerShell pipeline to the <b>Sort-Object<\/b> cmdlet. The <b>Sort-Object<\/b> has several parameters. The first parameter is the <b>&ndash;property<\/b> parameter, which is used to specify which properties will be sorted. The <b>&ndash;property<\/b> parameter will accept multiple properties, but in general its usefulness seems to breakdown after two or three properties to sort on. The other main parameter you will want to use is the <b>&ndash;descending<\/b> switched parameter. By default Windows PowerShell sorts in ascending order. The sorting is done in a case-insensitive fashion unless the <b>&ndash;casesensitive<\/b> switched parameter is used. You also have the ability to use the <b>&ndash;unique<\/b> switched parameter to cause the <b>Sort-Object<\/b> cmdlet to return only unique values. The use of the <b>Sort-Object<\/b> cmdlet is illustrated here:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; Get-ChildItem -Path C:fso -Filter *.txt | Sort-Object -Property name -Descen<br>ding<\/p>\n<p><br><span>&nbsp;&nbsp;&nbsp; <\/span>Directory: C:fso<\/p>\n<p><br>Mode<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>LastWriteTime<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Length Name<br>&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212; &#8212;-<br>-a&#8212;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>9\/15\/2009<span>&nbsp;&nbsp; <\/span>5:30 PM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>20 IwasHere.txt<br>-a&#8212;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>9\/14\/2009<span>&nbsp; <\/span>12:09 PM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>0 8907.txt<br>-a&#8212;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>9\/14\/2009<span>&nbsp; <\/span>12:09 PM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>0 5678.txt<br>-a&#8212;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>9\/14\/2009<span>&nbsp; <\/span>12:09 PM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>0 2456.txt<br>-a&#8212;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>9\/14\/2009<span>&nbsp; <\/span>12:09 PM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>0 1356.txt<br>-a&#8212;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>9\/14\/2009<span>&nbsp; <\/span>12:09 PM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>0 1345.txt<br>-a&#8212;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span>&nbsp;<\/span>9\/14\/2009<span>&nbsp; <\/span>12:09 PM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>0 1234.txt<\/p>\n<p><br>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">The complete <b>Sort-Files<\/b> function is seen here: <\/p>\n<p class=\"CodeBlock\"><br><span><font face=\"Lucida Sans Typewriter\">Function Sort-Files ([string]$path,[string]$filter)<br>{<br><span>&nbsp;<\/span>Get-ChildItem -Path $path -Filter $filter | <br><span>&nbsp;<\/span>Sort-Object -Property CreationTime<br>} #end Sort-Files<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">When a script uses command-line parameters, it is a best practice to implement some kind of Help system for the user of the script to know which parameters are available and what sample syntax might look like. It is important to do this, even if you do not intend to share the script with anyone else. In Windows PowerShell 2.0, you will be able to use the <b>Get-Help<\/b> cmdlet to provide Help for your script, but in Windows PowerShell 1.0 there is no such feature. <\/p>\n<p class=\"MsoNormal\">To make your script display Help in a systematic fashion, use the <b>Get-HelpText<\/b> function. The <b>Get-HelpText<\/b> function uses a <b>here-string<\/b> to store the Help text in a variable named <b>$helpText<\/b>. The <b>here-string<\/b> begins with the at symbol and quotation mark (<b>@&#8221;<\/b>), and it ends with the quotation mark and the at symbol (&#8220;@). Between the tags, everything is interpreted as text. The first advantage of using a here-string is that it allows you to dispense with typing quotation marks at the beginning and end of each line. The second advantage is that it allows you to ignore quoting rules and issues with escaping the quotation marks inside a text string. The use of the back tick (`) symbol to escape a quotation mark inside a string is illustrated here: <\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; &#8220;This is a &#8220;string&#8221; with a quote in it&#8221;<br>Unexpected token &#8216;string with a quote in it&#8217; in expression or statement.<br>At line:1 char:39<br>+ &#8220;This is a &#8220;string&#8221; with a quote in it&#8221; &lt;&lt;&lt;&lt;<br>PS C:&gt; &#8220;This is a `&#8221;string`&#8221; with a quote in it&#8221;<br>This is a &#8220;string&#8221; with a quote in it<br>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">The contents of the <b>here-string<\/b> are assigned to the <b>$helpText<\/b> variable in the <b>Get-HelpText<\/b> variable. The last thing the <b>Get-HelpText<\/b> function does is to display the contents of the <b>$helpText<\/b> variable. This is seen here: <\/p>\n<p class=\"CodeBlock\"><br><span><font face=\"Lucida Sans Typewriter\">Function Get-HelpText<br>{<br><span>&nbsp;<\/span>$helpText = @&#8221;<br>DESCRIPTION:<br><span>&nbsp; <\/span>Sorts files by creation date. Accepts parameter for path and file type.<br>EXAMPLE:<br><span>&nbsp; <\/span>SortFilesInFolderByCreationDate.ps1 -path c:fso -filter &#8220;*.txt&#8221;<br><span>&nbsp; <\/span>SortFilesInFolderByCreationDate.ps1 -p c:fso -f *.txt<br><span>&nbsp; <\/span>SortFilesInFolderByCreationDate.ps1 c:fso *.txt<br>&#8220;@<br><span>&nbsp;<\/span>$helpText<br>} #end Get-HelpText<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">The entry point to the script first checks for the existence of the <b>$help<\/b> variable. If the <b>$help<\/b> variable is found, it means the script was run with the <b>&ndash;help<\/b> parameter, and the user of the script wishes to see the Help message. The <b>Get-HelpText<\/b> function is called, and the Help text is displayed. The script is then exited by using the <b>exit<\/b> statement. This is seen here: <\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">if($help) { Get-HelpText ; exit }<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">When the script is run with the <b>&ndash;help<\/b> switched parameter, the Help message is displayed on the Windows PowerShell console. This is seen here:<\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">PS C:&gt; C:ScriptingGuysSortFilesInFolderByCreationDate.ps1 -help<br>DESCRIPTION:<br><span>&nbsp; <\/span>Sorts files by creation date. Accepts parameter for path and file type.<br>EXAMPLE:<br><span>&nbsp; <\/span>SortFilesInFolderByCreationDate.ps1 -path c:fso -filter *.txt<br><span>&nbsp; <\/span>SortFilesInFolderByCreationDate.ps1 -p c:fso -f *.txt<br><span>&nbsp; <\/span>SortFilesInFolderByCreationDate.ps1 c:fso *.txt<br>PS C:&gt;<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">If the <b>$help<\/b> variable is not present, it means the script was not run with the <b>help<\/b> switched parameter, because the only way the <b>$help<\/b> variable will exist is if it is supplied from the command line. After checking for the <b>help<\/b> variable, the script calls the <b>Sort-Files<\/b> function. The values for the <b>&ndash;path<\/b> and <b>&ndash;filter<\/b> parameters are collected from the Windows PowerShell command line. The results from the <b>Sort-Files<\/b> function are passed back to the <b>Format-Table<\/b> cmdlet. The <b>name<\/b> and the <b>creationtime<\/b> properties are selected from the <b>System.Io.FileInfo<\/b> .NET Framework class, and the <b>&ndash;autosize<\/b> parameter is used to tighten up the data that is displayed on the Windows PowerShell command line. This section of the script is shown here: <\/p>\n<p class=\"CodeBlock\"><span><font face=\"Lucida Sans Typewriter\">Sort-Files -path $path -filter $filter | <br>Format-Table -property name, creationtime -AutoSize<\/p>\n<p><\/font><\/span><\/p>\n<p class=\"MsoNormal\">Well JB, that is about all there is to know about using the <b>Get-ChildItem<\/b> cmdlet and the <b>Sort-Object<\/b> cmdlet to find the creation date from your files and display a formatted list. <\/p>\n<p class=\"MsoNormal\">If you want to know exactly what we will be looking at tomorrow, follow us on <a href=\"http:\/\/www.twitter.com\/scriptingguys\/\" target=\"_blank\">Twitter<\/a> or <a href=\"http:\/\/www.new.facebook.com\/group.php?gid=5901799452\" target=\"_blank\"><font face=\"Segoe\">Facebook<\/font><\/a>. If you have any questions, send e-mail to us at <a href=\"http:\/\/blogs.technet.commailto:scripter@microsoft.com\" target=\"_blank\">scripter@microsoft.com<\/a> or post your questions on the <a href=\"http:\/\/social.technet.microsoft.com\/Forums\/en\/ITCG\/threads\/\" target=\"_blank\">Official Scripting Guys Forum<\/a>. See you tomorrow. Until then, peace.<\/p>\n<p class=\"MsoNormal\">&nbsp;<\/p>\n<p><b><span>Ed Wilson and Craig Liebendorfer, Scripting Guys<\/p>\n<p><\/span><\/b><\/p>\n<p><font size=\"3\"><font face=\"Times New Roman\"><span><\/span><\/font><\/font>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey, Scripting Guy! I have a number of files that I work with based upon the date the file was created. I need an easy way to sort the listing of the files in a folder by creation date if possible. I am not sure this is even possible. When I look at the files [&hellip;]<\/p>\n","protected":false},"author":595,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[38,3,12,45],"class_list":["post-52403","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-files","tag-scripting-guy","tag-storage","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Hey, Scripting Guy! I have a number of files that I work with based upon the date the file was created. I need an easy way to sort the listing of the files in a folder by creation date if possible. I am not sure this is even possible. When I look at the files [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/52403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/595"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=52403"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/52403\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=52403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=52403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=52403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}