<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Intro_to_Windows_Command_Line on Ashour Blog</title><link>https://mostafa-ashour.github.io/posts/active_directory/intro_to_windows_command_line/</link><description>Recent content in Intro_to_Windows_Command_Line on Ashour Blog</description><generator>Hugo</generator><language>en-us</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener"&gt;CC BY-NC 4.0&lt;/a&gt;</copyright><lastBuildDate>Sun, 26 Apr 2026 19:29:11 +0300</lastBuildDate><atom:link href="https://mostafa-ashour.github.io/posts/active_directory/intro_to_windows_command_line/index.xml" rel="self" type="application/rss+xml"/><item><title>Powershell</title><link>https://mostafa-ashour.github.io/posts/2026/04/powershell/</link><pubDate>Sun, 26 Apr 2026 19:29:11 +0300</pubDate><guid>https://mostafa-ashour.github.io/posts/2026/04/powershell/</guid><description>&lt;h1 id="cmd-vs-powershell"&gt;CMD Vs. PowerShell&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;It&amp;rsquo;s time to look at Windows&amp;rsquo; modern successor to CMD, &lt;a href="https://learn.microsoft.com/en-us/powershell/scripting/overview?view=powershell-7.2"&gt;PowerShell&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="differences"&gt;Differences&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;PowerShell and CMD are included natively on any Windows host.&lt;/li&gt;
&lt;li&gt;Therefore, Why would I use one over the other?&lt;/li&gt;
&lt;li&gt;Observe the following table to know the differences/comparison between PowerShell &amp;amp; CMD.&lt;/li&gt;
&lt;/ul&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;&lt;strong&gt;Feature&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;CMD&lt;/strong&gt;&lt;/th&gt;
					&lt;th&gt;&lt;strong&gt;PowerShell&lt;/strong&gt;&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
			&lt;tr&gt;
					&lt;td&gt;Language&lt;/td&gt;
					&lt;td&gt;Batch and basic CMD commands only.&lt;/td&gt;
					&lt;td&gt;PowerShell can interpret Batch, CMD, PS cmdlets, and aliases.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Command utilization&lt;/td&gt;
					&lt;td&gt;The output from one command cannot be passed into another directly as a structured object, due to the limitation of handling the text output.&lt;/td&gt;
					&lt;td&gt;The output from one command can be passed into another directly as a structured object resulting in more sophisticated commands.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Command Output&lt;/td&gt;
					&lt;td&gt;Text only.&lt;/td&gt;
					&lt;td&gt;PowerShell outputs in object formatting.&lt;/td&gt;
			&lt;/tr&gt;
			&lt;tr&gt;
					&lt;td&gt;Parallel Execution&lt;/td&gt;
					&lt;td&gt;CMD must finish one command before running another.&lt;/td&gt;
					&lt;td&gt;PowerShell can multi-thread commands to run in parallel.&lt;/td&gt;
			&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;PowerShell is more than a command-line interface (CLI); it&amp;rsquo;s also a versatile scripting language designed for extensibility and integration with various tools.&lt;/li&gt;
&lt;li&gt;Unlike CMD, the traditional Windows CLI, PowerShell is &lt;a href="https://github.com/PowerShell/PowerShell"&gt;open-source project&lt;/a&gt; and cross-platform, supporting both Windows and Linux systems.&lt;/li&gt;
&lt;li&gt;Built on the &lt;code&gt;.NET&lt;/code&gt; framework, it leverages an object-based model for interaction and output, moving beyond simple text-based methods.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="why-choose-powershell-over-cmdexe"&gt;Why Choose PowerShell Over cmd.exe?&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;Why does PowerShell matter for IT admins, Offensive &amp;amp; Defensive Infosec pros&lt;/code&gt;?&lt;/p&gt;</description></item><item><title>CMD</title><link>https://mostafa-ashour.github.io/posts/2026/04/cmd/</link><pubDate>Sun, 26 Apr 2026 19:28:58 +0300</pubDate><guid>https://mostafa-ashour.github.io/posts/2026/04/cmd/</guid><description>&lt;h1 id="command-prompt-basics"&gt;Command Prompt Basics&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;To begin developing command-line skills, we&amp;rsquo;ll start with &lt;code&gt;cmd.exe&lt;/code&gt; (the Command Prompt) which includes:
&lt;ul&gt;
&lt;li&gt;What &lt;code&gt;cmd.exe&lt;/code&gt; is.&lt;/li&gt;
&lt;li&gt;How to access it.&lt;/li&gt;
&lt;li&gt;How the shell functions.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="cmdexe"&gt;CMD.exe&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The Command Prompt (&lt;a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmd"&gt;cmd.exe&lt;/a&gt; or CMD) is the default command-line interpreter for Windows OS, evolved from DOS&amp;rsquo;s &lt;code&gt;COMMAND.COM&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Found in nearly all Windows OSs versions, it allows users to execute commands directly, performing tasks like password changes or network interface status checks.
- This also reduces system resources, as graphical-based programs require more CPU and memory.&lt;/p&gt;</description></item></channel></rss>