<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Powershell on myByways</title><link>https://myByways.com/tags/powershell/</link><description>Recent content in Powershell on myByways</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 12 Mar 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://myByways.com/tags/powershell/index.xml" rel="self" type="application/rss+xml"/><item><title>Command to turn off monitor in Windows 10</title><link>https://myByways.com/post/command-to-turn-off-monitor-in-windows-10/</link><pubDate>Fri, 12 Mar 2021 00:00:00 +0000</pubDate><guid>https://myByways.com/post/command-to-turn-off-monitor-in-windows-10/</guid><description>&lt;p&gt;I wanted to turn off my monitor in Windows 10, while listening to music, rather than wait for the &lt;strong&gt;Power plan&lt;/strong&gt; “Turn off the display” timer to kick in. Hmmm, seems Windows has never improved, because I recall having this requirement back-in-the-day - haha, that was during my first project ever, when I was involved in some Win32 development&amp;hellip;&lt;/p&gt;</description></item><item><title>PowerShell Pipeline to Rename Files</title><link>https://myByways.com/post/powershell-pipeline-to-rename-files/</link><pubDate>Mon, 30 Dec 2019 00:00:00 +0000</pubDate><guid>https://myByways.com/post/powershell-pipeline-to-rename-files/</guid><description>&lt;p&gt;For me, Microsoft &lt;strong&gt;PowerShell&lt;/strong&gt; is hard! I can’t wrap my mind around &lt;a href="https://docs.microsoft.com/en-us/powershell/scripting/learn/understanding-the-powershell-pipeline?view=powershell-6" rel="external"&gt;data pipelines&lt;/a&gt; (&lt;code&gt;|&lt;/code&gt;). Instead, I keep reverting to if/then, loops and other traditional programming paradigms, similar to what I’d do in UNIX shell!&lt;/p&gt;</description></item><item><title>PowerShell to monitor for deleted, renamed or moved files (part 2)</title><link>https://myByways.com/post/powershell-to-monitor-for-deleted-renamed-or-moved-files/</link><pubDate>Sun, 17 Jun 2018 00:00:00 +0000</pubDate><guid>https://myByways.com/post/powershell-to-monitor-for-deleted-renamed-or-moved-files/</guid><description>&lt;p&gt;This is part 2, of my attempt to &amp;ldquo;sync&amp;rdquo; photos I deleted on my desktop to my SD card (you can &lt;a href="https://myByways.com/post/powershell-to-list-deleted-files"&gt;read part 1 first&lt;/a&gt;). In this post, I try to use &lt;strong&gt;PowerShell&lt;/strong&gt; with .NET framework to (try) monitor for file system changes, and output to a batch file that &amp;ldquo;replicates&amp;rdquo; the &lt;code&gt;ren&lt;/code&gt; (rename) and &lt;code&gt;del&lt;/code&gt; (delete) to files and folders.&lt;/p&gt;</description></item><item><title>PowerShell to list deleted files (part 1)</title><link>https://myByways.com/post/powershell-to-list-deleted-files/</link><pubDate>Sat, 16 Jun 2018 00:00:00 +0000</pubDate><guid>https://myByways.com/post/powershell-to-list-deleted-files/</guid><description>&lt;p&gt;I have an unusual workflow when copying photos from my camera&amp;rsquo;s SD card to my Windows desktop. For any photos I my desktop, I want to also delete on the SD card. In this post (part 1 of 2), I describe my &lt;strong&gt;PowerShell&lt;/strong&gt; script to &amp;ldquo;repeat&amp;rdquo; what I deleted on the desktop on the SD card. In &lt;a href="https://myByways.com/post/powershell-to-monitor-for-deleted-renamed-or-moved-files"&gt;my next post, part 2&lt;/a&gt;, I expand the &lt;strong&gt;PowerShell&lt;/strong&gt; script to (try) monitor for file system changes instead.&lt;/p&gt;</description></item></channel></rss>