<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://kb.whizzbang.co/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://kb.whizzbang.co/feed.php">
        <title>Whizzbang Tech Stuff - powershell:qnd</title>
        <description></description>
        <link>https://kb.whizzbang.co/</link>
        <image rdf:resource="https://kb.whizzbang.co/_media/logo.png" />
       <dc:date>2026-05-20T06:39:18+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://kb.whizzbang.co/powershell:qnd:documentation?rev=1657542214&amp;do=diff"/>
                <rdf:li rdf:resource="https://kb.whizzbang.co/powershell:qnd:file_operations?rev=1665087188&amp;do=diff"/>
                <rdf:li rdf:resource="https://kb.whizzbang.co/powershell:qnd:network?rev=1665669676&amp;do=diff"/>
                <rdf:li rdf:resource="https://kb.whizzbang.co/powershell:qnd:os_environment?rev=1648757388&amp;do=diff"/>
                <rdf:li rdf:resource="https://kb.whizzbang.co/powershell:qnd:output?rev=1655133537&amp;do=diff"/>
                <rdf:li rdf:resource="https://kb.whizzbang.co/powershell:qnd:powershell?rev=1729779895&amp;do=diff"/>
                <rdf:li rdf:resource="https://kb.whizzbang.co/powershell:qnd:scripts_and_modules?rev=1657809814&amp;do=diff"/>
                <rdf:li rdf:resource="https://kb.whizzbang.co/powershell:qnd:strings?rev=1655402554&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://kb.whizzbang.co/_media/logo.png">
        <title>Whizzbang Tech Stuff</title>
        <link>https://kb.whizzbang.co/</link>
        <url>https://kb.whizzbang.co/_media/logo.png</url>
    </image>
    <item rdf:about="https://kb.whizzbang.co/powershell:qnd:documentation?rev=1657542214&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-07-11T12:23:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>documentation</title>
        <link>https://kb.whizzbang.co/powershell:qnd:documentation?rev=1657542214&amp;do=diff</link>
        <description>Documentation

	*  &lt;https://docs.microsoft.com/en-us/powershell/scripting/developer/help/writing-comment-based-help-topics&gt;</description>
    </item>
    <item rdf:about="https://kb.whizzbang.co/powershell:qnd:file_operations?rev=1665087188&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-10-06T20:13:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>file_operations</title>
        <link>https://kb.whizzbang.co/powershell:qnd:file_operations?rev=1665087188&amp;do=diff</link>
        <description>File Operations

Path References


$env:userprofile\Desktop

$Home\Desktop

~\Desktop


User Split-Path to get folder name


cd $(Split-Path $PROFILE)


Common Commands By Example

List Items with Filter/Search for files with matching string in name</description>
    </item>
    <item rdf:about="https://kb.whizzbang.co/powershell:qnd:network?rev=1665669676&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-10-13T14:01:16+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>network</title>
        <link>https://kb.whizzbang.co/powershell:qnd:network?rev=1665669676&amp;do=diff</link>
        <description>Network


$WebClient = New-Object System.Net.WebClient

$webclient.DownloadFile(&quot;https://somedomain.com/test.zip&quot;, &quot;c:\tmp\test.zip&quot;)</description>
    </item>
    <item rdf:about="https://kb.whizzbang.co/powershell:qnd:os_environment?rev=1648757388&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-03-31T20:09:48+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>os_environment</title>
        <link>https://kb.whizzbang.co/powershell:qnd:os_environment?rev=1648757388&amp;do=diff</link>
        <description>OS/Environment

	*  The  pseudo drive env: can be use to access environment variables (e.g. $env:windir)
	*  ~ refers to the current users home directory</description>
    </item>
    <item rdf:about="https://kb.whizzbang.co/powershell:qnd:output?rev=1655133537&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-06-13T15:18:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>output</title>
        <link>https://kb.whizzbang.co/powershell:qnd:output?rev=1655133537&amp;do=diff</link>
        <description>Output


Get-ChildItem | Format-List Prop1, Prop2</description>
    </item>
    <item rdf:about="https://kb.whizzbang.co/powershell:qnd:powershell?rev=1729779895&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-24T14:24:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powershell</title>
        <link>https://kb.whizzbang.co/powershell:qnd:powershell?rev=1729779895&amp;do=diff</link>
        <description>Powershell (quick-n-dirty)

	*  Documentation
	*  strings
	*  OS/Environment
	*  File Operations
	*  Output
	*  Network

	*  Scripts and Modules

Core

	*  The back tick/grave accent (`) is the line continuation character
	*  On Powershell CLI press Shift + Enter to go into multi-line editing mode
	*  To string together multiple commands in one line use the</description>
    </item>
    <item rdf:about="https://kb.whizzbang.co/powershell:qnd:scripts_and_modules?rev=1657809814&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-07-14T14:43:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>scripts_and_modules</title>
        <link>https://kb.whizzbang.co/powershell:qnd:scripts_and_modules?rev=1657809814&amp;do=diff</link>
        <description>Scripts and Modules

Search for modules that contain a specified command.


Find-Command -Repository PSGallery -Name Connect-ExchangeOnline


Find modules in repo that match name. For example, the following finds modules with a name that begins with</description>
    </item>
    <item rdf:about="https://kb.whizzbang.co/powershell:qnd:strings?rev=1655402554&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-06-16T18:02:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>strings</title>
        <link>https://kb.whizzbang.co/powershell:qnd:strings?rev=1655402554&amp;do=diff</link>
        <description>strings

	*  `n and `r are the character literals for newline and carriage return

Common Command Examples

Using string Replace method to remove substring from string


❯ $url = &quot;http://www.google.com&quot;.Replace(&quot;http://www.&quot;, &quot;&quot;)
❯ $url
google.com</description>
    </item>
</rdf:RDF>
