<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikicyber.org/index.php?action=history&amp;feed=atom&amp;title=Draft%3APowerShell_for_Beginner_Users</id>
	<title>Draft:PowerShell for Beginner Users - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikicyber.org/index.php?action=history&amp;feed=atom&amp;title=Draft%3APowerShell_for_Beginner_Users"/>
	<link rel="alternate" type="text/html" href="https://wikicyber.org/index.php?title=Draft:PowerShell_for_Beginner_Users&amp;action=history"/>
	<updated>2026-09-24T04:42:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wikicyber.org/index.php?title=Draft:PowerShell_for_Beginner_Users&amp;diff=149&amp;oldid=prev</id>
		<title>MigrationBot: Backfill (v3.0 review queue): added to the review queue</title>
		<link rel="alternate" type="text/html" href="https://wikicyber.org/index.php?title=Draft:PowerShell_for_Beginner_Users&amp;diff=149&amp;oldid=prev"/>
		<updated>2026-09-22T05:42:24Z</updated>

		<summary type="html">&lt;p&gt;Backfill (v3.0 review queue): added to the review queue&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:42, 22 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l138&quot;&gt;Line 138:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 138:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Windows PowerShell|009]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Windows PowerShell|009]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Migrated from cypat.guide]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Migrated from cypat.guide]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Pending review]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikicyber:diff:1.41:old-69:rev-149:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>MigrationBot</name></author>
	</entry>
	<entry>
		<id>https://wikicyber.org/index.php?title=Draft:PowerShell_for_Beginner_Users&amp;diff=69&amp;oldid=prev</id>
		<title>MigrationBot: Import from cypat.guide: docs/windows/scripting/beginner_powershell.md</title>
		<link rel="alternate" type="text/html" href="https://wikicyber.org/index.php?title=Draft:PowerShell_for_Beginner_Users&amp;diff=69&amp;oldid=prev"/>
		<updated>2026-09-18T17:05:18Z</updated>

		<summary type="html">&lt;p&gt;Import from cypat.guide: docs/windows/scripting/beginner_powershell.md&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Submit}}&lt;br /&gt;
&amp;lt;!-- Migrated from https://cypat.guide/docs/windows/scripting/beginner_powershell (source: docs/windows/scripting/beginner_powershell.md) --&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Author(s):&amp;#039;&amp;#039;&amp;#039; Byrch&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Last Updated:&amp;#039;&amp;#039;&amp;#039; 07-30-2025&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;mw-collapsible mw-collapsed wikitable&amp;quot; style=&amp;quot;width:100%&amp;quot;&lt;br /&gt;
! Recommended Prerequisites (click to expand)&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
None – This guide is for complete beginners. Some familiarity with Windows is helpful.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
== What is a Commandlet (Cmdlet)? ==&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;cmdlet&amp;#039;&amp;#039;&amp;#039; (pronounced &amp;#039;&amp;#039;command-let&amp;#039;&amp;#039;) is a small, single-function command built into PowerShell.&amp;lt;br /&amp;gt;&lt;br /&gt;
Cmdlets are different from traditional commands because they:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ALWAYS&amp;#039;&amp;#039;&amp;#039; return objects (not just text).&lt;br /&gt;
* Use a consistent &amp;#039;&amp;#039;&amp;#039;verb-noun&amp;#039;&amp;#039;&amp;#039; naming convention.&lt;br /&gt;
* Can be combined together using &amp;#039;&amp;#039;&amp;#039;pipelines (|)&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;Get-Help        # Displays help info&lt;br /&gt;
Get-Process     # Lists running processes&lt;br /&gt;
Stop-Process    # Stops a process&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;&amp;#039;Tip:&amp;#039;&amp;#039;&amp;#039; Cmdlets are case-insensitive. &amp;lt;code&amp;gt;Get-Process&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;get-process&amp;lt;/code&amp;gt; work the same.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
To see all available cmdlets:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;Get-Command&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
&lt;br /&gt;
PowerShell can navigate your system like the command prompt, but with more features.&lt;br /&gt;
&lt;br /&gt;
=== Basic navigation commands: ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;Get-Location&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;pwd&amp;lt;/code&amp;gt;) → Shows your current directory.&lt;br /&gt;
* &amp;lt;code&amp;gt;Set-Location &amp;amp;lt;path&amp;amp;gt;&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;cd &amp;amp;lt;path&amp;amp;gt;&amp;lt;/code&amp;gt;) → Change directory.&lt;br /&gt;
* &amp;lt;code&amp;gt;Get-ChildItem&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;ls&amp;lt;/code&amp;gt;) → List files/folders in the current directory.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;Get-Location&lt;br /&gt;
Set-Location C:\Windows&lt;br /&gt;
Get-ChildItem&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Using relative paths:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;cd ..      # Move up one directory&lt;br /&gt;
cd .\Logs  # Move into Logs folder&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
== Basic Scripting ==&lt;br /&gt;
&lt;br /&gt;
PowerShell allows you to write scripts with the &amp;lt;code&amp;gt;.ps1&amp;lt;/code&amp;gt; file extension.&lt;br /&gt;
&lt;br /&gt;
=== Creating and running a script ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Open &amp;#039;&amp;#039;&amp;#039;Notepad&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;Powershell ISE (Integrated Scripting Environment).&amp;#039;&amp;#039;&amp;#039;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Write your PowerShell commands.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Save as &amp;lt;code&amp;gt;myscript.ps1&amp;lt;/code&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run it in PowerShell:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;.\myscript.ps1&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;#039;&amp;#039;&amp;#039;Important:&amp;#039;&amp;#039;&amp;#039; You may need to change the execution policy to allow scripts:&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;Set-ExecutionPolicy -Scope CurrentUser RemoteSigned&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Variables ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;$name = &amp;quot;CyberPatriot&amp;quot;&lt;br /&gt;
Write-Output &amp;quot;Hello, $name!&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Conditionals ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;if ($true) { Write-Output &amp;quot;It runs!&amp;quot; }&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Loops ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;# Loop that counts till 5&lt;br /&gt;
for ($i = 1; $i -le 5; $i++) {&lt;br /&gt;
    Write-Output &amp;quot;Number: $i&amp;quot;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
== File Operations ==&lt;br /&gt;
&lt;br /&gt;
PowerShell makes file management straightforward:&lt;br /&gt;
&lt;br /&gt;
=== Creating and reading files ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;New-Item -Path . -Name &amp;quot;notes.txt&amp;quot; -ItemType &amp;quot;File&amp;quot;   # Create file&lt;br /&gt;
Set-Content notes.txt &amp;quot;This is cool!&amp;quot;         # Write text&lt;br /&gt;
Get-Content notes.txt                                 # Read file&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Copying, moving, and deleting files ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;Copy-Item notes.txt C:\Backups&lt;br /&gt;
Move-Item notes.txt C:\Backups&lt;br /&gt;
Remove-Item C:\Backups\notes.txt&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Working with directories ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;New-Item -Name &amp;quot;Reports&amp;quot; -ItemType &amp;quot;Directory&amp;quot;&lt;br /&gt;
Remove-Item Reports -Recurse -Force&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Working with many files recursively ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;Get-ChildItem -Recurse -Force -File &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=== Pipelines (Power of PowerShell) ===&lt;br /&gt;
&lt;br /&gt;
You can pass the output of one cmdlet to another using &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;Get-ChildItem -Recurse -Force -File | Where-Object {$_.Extension -eq &amp;quot;.mp3&amp;quot;}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This command finds all the &amp;#039;&amp;#039;&amp;#039;files&amp;#039;&amp;#039;&amp;#039; in the current directory with the extension *.mp3&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
=== Fun Commands (Power of PowerShell) ===&lt;br /&gt;
&lt;br /&gt;
You can find the checksum of a file using:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;Get-FileHash -Algorithm MD5 -Path &amp;quot;/file/path/here&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Want to secure a plaintext string? You can use the following to convert it to encrypt and store strings securely (this will come in handy later):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;&amp;quot;mypassword&amp;quot; | ConvertTo-SecureString -AsPlainText -Force&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Don&amp;#039;t know what a command-let does? You can view the parameters and other capabilties using another command-let:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;powershell&amp;quot;&amp;gt;Show-Command Get-LocalUser&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Windows PowerShell|009]]&lt;br /&gt;
[[Category:Migrated from cypat.guide]]&lt;/div&gt;</summary>
		<author><name>MigrationBot</name></author>
	</entry>
</feed>