
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Command Prompt Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/command-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>https://168.138.42.164/tag/command-prompt/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Tue, 17 May 2022 09:46:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>Command Prompt Archives - TECHNIG</title>
	<link>https://168.138.42.164/tag/command-prompt/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>Run PowerShell as Administrator in Windows Server 2022</title>
		<link>https://www.technig.com/run-powershell-as-administrator-in-windows-server-2022/</link>
					<comments>https://www.technig.com/run-powershell-as-administrator-in-windows-server-2022/#respond</comments>
		
		<dc:creator><![CDATA[Mashallah Haidarzada]]></dc:creator>
		<pubDate>Tue, 17 May 2022 09:46:15 +0000</pubDate>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PowerShell Articles]]></category>
		<category><![CDATA[Windows 11]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2016]]></category>
		<category><![CDATA[Windows Server 2019]]></category>
		<category><![CDATA[Windows Server 2022]]></category>
		<guid isPermaLink="false">https://technig.com/?p=17880</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="853" height="510" src="https://www.technig.com/wp-content/uploads/2022/05/Feature-Image.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Run PowerShell as Administrator" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2022/05/Feature-Image.png 853w, https://www.technig.com/wp-content/uploads/2022/05/Feature-Image-300x179.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Feature-Image-768x459.png 768w" sizes="(max-width: 853px) 100vw, 853px" /></div>
<p>Opening PowerShell as an administrator will give you the ability to execute scripts with administrative rights. To speed up your skills, you have to know how to run PowerShell as an Administrator in different ways, especially if you are using Windows Server 2022. For example, you are running commands in Command Prompt, and you need [&#8230;]</p>
<p>The post <a href="https://www.technig.com/run-powershell-as-administrator-in-windows-server-2022/">Run PowerShell as Administrator in Windows Server 2022</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="853" height="510" src="https://www.technig.com/wp-content/uploads/2022/05/Feature-Image.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Run PowerShell as Administrator" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2022/05/Feature-Image.png 853w, https://www.technig.com/wp-content/uploads/2022/05/Feature-Image-300x179.png 300w, https://www.technig.com/wp-content/uploads/2022/05/Feature-Image-768x459.png 768w" sizes="(max-width: 853px) 100vw, 853px" /></div>
<p>Opening PowerShell as an administrator will give you the ability to execute scripts with administrative rights. To speed up your skills, you have to know how to run PowerShell as an Administrator in different ways, especially if you are using Windows Server 2022. For example, you are running commands in Command Prompt, and you need to open PowerShell. You should be able to open PowerShell directly from Command Prompt instead of minimizing Command Prompt and opening PowerShell in another way.</p>



<h2 class="wp-block-heading">Run PowerShell as Administrator From Graphical User Interface</h2>



<p>The Windows Server 2022 comes with two major types, Desktop Experience, and Core versions. The Desktop Experience editions will allow you to do tasks in a graphical environment, but using the core versions, you have to run PowerShell, and CMD commands.</p>



<p><strong>Start Menu:</strong> to open PowerShell with administrative capabilities from the start menu, click on the <strong>Windows icon</strong> or press the <strong>Windows key</strong>. Right-click on <strong>Windows PowerShell,</strong> then click on <strong>Run as administrator</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="706" height="678" src="https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220504_124650-1.png" alt="Run PowerShell as administrator" class="wp-image-17949" srcset="https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220504_124650-1.png 706w, https://www.technig.com/wp-content/uploads/2022/05/screenshot_20220504_124650-1-300x288.png 300w" sizes="(max-width: 706px) 100vw, 706px" /><figcaption>Run PowerShell as administrator from the Start menu.</figcaption></figure></div>



<p><strong>Search Bar:</strong> if for any reason you unpin PowerShell from the Start menu, you can open it from the windows search bar. Type <strong>Windows PowerShell</strong> in the search bar, right-click on it, then click on <strong>Run as administrator</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="549" height="678" src="https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-the-Search-bar.-1.png" alt="Run PowerShell as administrator" class="wp-image-17951" srcset="https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-the-Search-bar.-1.png 549w, https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-the-Search-bar.-1-243x300.png 243w" sizes="(max-width: 549px) 100vw, 549px" /><figcaption>Run PowerShell as administrator from the Search bar.</figcaption></figure></div>



<p><strong>Windows Run:</strong> press <strong>Win+R</strong> to open the <strong>Run</strong>, type <strong>PowerShell</strong> in it, then press <strong>Ctrl+Shift+Enter</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-Run..png" alt="Run PowerShell as Administrator." class="wp-image-17952" width="526" height="293" srcset="https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-Run..png 410w, https://www.technig.com/wp-content/uploads/2022/05/Run-PowerShell-as-Administrator-from-Run.-300x167.png 300w" sizes="(max-width: 526px) 100vw, 526px" /><figcaption>Run PowerShell as administrator from Run.</figcaption></figure></div>



<p>It is easy to run PowerShell using GUI tools, but sometimes you are not in the graphical interface. A good example is Windows Server core editions. You must know how to run PowerShell from the command line interface.</p>



<p>Click on this article to learn <a href="https://technig.com/replace-powershell-with-cmd-window-10/" target="_blank" rel="noreferrer noopener">how to replace PowerShell with cmd in Windows 10?</a></p>



<h2 class="wp-block-heading">Run Powershell as Administrator From Command Line Interface</h2>



<p>In non-GUI windows operating systems, you will have to use Command Prompt and PowerShell to do tasks. There is no Run or Start menu to open PowerShell. You will use Command Prompt.</p>



<p><strong>Command Prompt:</strong> Open Command Prompt, type <strong>PowerShell</strong>, and press Enter key. The<strong> PS</strong> will be added at the beginning of your commands. It means you have opened PowerShell but not as an administrator. Execute the <code>Start-Process PowerShell -Verb runAs</code> command. Enter a username and password with administrative access.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="505" height="165" src="//i0.wp.com/technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-1.png" alt="" class="wp-image-18040" srcset="https://www.technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-1.png 505w, https://www.technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-1-300x98.png 300w" sizes="(max-width: 505px) 100vw, 505px" /><figcaption>Run PowerShell as administrator from the command prompt.</figcaption></figure></div>



<p><strong>PowerShell:</strong> if you opened PowerShell on your computer and want to open it as administrator. Just execute the <code>Start-Process PowerShell -Verb runAs</code> command, then enter the administrator user name and password.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="494" height="120" src="//i0.wp.com/technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-command-in-PowerShell.png" alt="" class="wp-image-18039" srcset="https://www.technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-command-in-PowerShell.png 494w, https://www.technig.com/wp-content/uploads/2022/05/Start-Process-PowerShell-Verb-RunAs-command-in-PowerShell-300x73.png 300w" sizes="(max-width: 494px) 100vw, 494px" /><figcaption>Run PowerShell as administrator from the standard PowerShell.</figcaption></figure></div>



<p>The ability to work in both GUI and CLI is important for everyone using Windows Server. I hope that I can cover every detail about how to run PowerShell as an administrator in Windows Server 2022.</p>



<p>Learn more about <a href="https://docs.microsoft.com/en-us/powershell/scripting/learn/ps101/01-getting-started?view=powershell-7.2" target="_blank" rel="noreferrer noopener">PowerShell</a>.</p>
<p>The post <a href="https://www.technig.com/run-powershell-as-administrator-in-windows-server-2022/">Run PowerShell as Administrator in Windows Server 2022</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/run-powershell-as-administrator-in-windows-server-2022/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">17880</post-id>	</item>
		<item>
		<title>10 Useful Command line Commands You Should Know</title>
		<link>https://www.technig.com/10-useful-command-line-commands/</link>
					<comments>https://www.technig.com/10-useful-command-line-commands/#respond</comments>
		
		<dc:creator><![CDATA[Hujatulla Asghari]]></dc:creator>
		<pubDate>Sat, 23 Sep 2017 05:30:41 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command Line Tips]]></category>
		<category><![CDATA[Command Prompt]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[PowerShell Tutorials]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=11176</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="421" src="https://www.technig.com/wp-content/uploads/2017/09/10-Useful-Command-Prompt-Commands.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="10 Useful Command Line Commands" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2017/09/10-Useful-Command-Prompt-Commands.png 840w, https://www.technig.com/wp-content/uploads/2017/09/10-Useful-Command-Prompt-Commands-300x150.png 300w, https://www.technig.com/wp-content/uploads/2017/09/10-Useful-Command-Prompt-Commands-768x385.png 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>Command line is used mostly by power users. It gives you the abilities to do any action almost without any limitation. So, If you want to learn how to use command prompt for your next operation, this article is for you. Besides learning the basic command, you will learn some power user  commands as well. Additionally, [&#8230;]</p>
<p>The post <a href="https://www.technig.com/10-useful-command-line-commands/">10 Useful Command line Commands You Should Know</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="421" src="https://www.technig.com/wp-content/uploads/2017/09/10-Useful-Command-Prompt-Commands.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="10 Useful Command Line Commands" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2017/09/10-Useful-Command-Prompt-Commands.png 840w, https://www.technig.com/wp-content/uploads/2017/09/10-Useful-Command-Prompt-Commands-300x150.png 300w, https://www.technig.com/wp-content/uploads/2017/09/10-Useful-Command-Prompt-Commands-768x385.png 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>Command line is used mostly by power users. It gives you the abilities to do any action almost without any limitation. So, If you want to learn how to use command prompt for your next operation, this article is for you. Besides learning the basic command, you will learn some <a href="https://en.wikipedia.org/wiki/Power_user">power user </a> commands as well. Additionally, it will empower your skill. Because what command line does, GUI can&#8217;t. We have collected the top 10 essential and useful command line commands that will help you in daily tasks.</p>
<h2>10 Useful Command line Commands</h2>
<h3>1. Check internet connection.</h3>
<p>An effortless command that will check where you have internet access or not. Most of the times your wifi icon lie.  So, you must use the following command to check your internet.</p>
<pre class="lang:default decode:true">ping technig.com -t</pre>
<p>If you see any reply, you have internet; otherwise, there is no internet. The<span style="background-color: #e0e0e0;"> -t</span> flag means, pings the specified host until stopped. You can stop by<span style="background-color: #e0e0e0;"><em> Ctrl + C</em></span></p>
<h3>2. System Information</h3>
<p>To see your computer systems information like system manufacturer, system model, system type and more, so use the following command.</p>
<pre class="lang:default decode:true">systeminfo</pre>
<p>The list is long. It gives you almost every detail you want on your computer.</p>
<h3>3. Save a Command&#8217;s Output to a File</h3>
<p>The 2nd command shows a lot of information about your system. If you want to give those data to anyone else, you save to a notepad file. Subsequently, use this command.</p>
<pre class="lang:default decode:true">systeminfo &gt; C:\data.txt</pre>
<p><strong>Note</strong>: This command needs administrator access. Press Win button and search form cmd, then right click and run as administrator.</p>
<p>Now, it should save all of those data in the root of <span style="background-color: #e0e0e0;">C:\</span> directory.</p>
<h3>4.  Enable QuickEdit to Easily Copy/Paste</h3>
<p>This is not a, but it will help you copy/paste text to command line or from command line quickly.</p>
<ol>
<li>Open your cmd</li>
<li>Right-click on the window bar</li>
<li>Go to Properties.</li>
<li>Check to Quick Edit Mode</li>
</ol>
<p><figure id="attachment_11192" aria-describedby="caption-attachment-11192" style="width: 420px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/Capture.png"><img loading="lazy" decoding="async" class="size-full wp-image-11192" src="http://3.90.216.52/wp-content/uploads/2017/09/Capture.png" alt="Command prompt properties for quick edit" width="420" height="491" srcset="https://www.technig.com/wp-content/uploads/2017/09/Capture.png 420w, https://www.technig.com/wp-content/uploads/2017/09/Capture-257x300.png 257w" sizes="(max-width: 420px) 100vw, 420px" /></a><figcaption id="caption-attachment-11192" class="wp-caption-text">Command prompt properties for quick edit</figcaption></figure></p>
<p>Once you check, click save and you are done.</p>
<h3>5. See the Command History</h3>
<p>To check which command you have used in the last session of using the command line, use the following command.</p>
<pre class="lang:default decode:true">doskey /history</pre>
<p>I should show just the command you have run so far.</p>
<pre class="lang:default decode:true">C:\Users\Technig&gt;doskey /history
systeminfo
systeminfo &gt; c:\mydata.text
doskey /history</pre>
<h3>6. Directory Operations</h3>
<p>For creating, deleting and changing directory, using the following commands.</p>
<p>Create directory:</p>
<pre class="lang:default decode:true">mkdir dirName</pre>
<p>Delete directory:</p>
<pre class="lang:default decode:true">rmdir dirName</pre>
<p>Change directory:</p>
<pre class="lang:default decode:true">C:\Users\Technig&gt;cd Desktop\dirName</pre>
<p>Note: The rmdir command assumes you don&#8217;t have any subdirectories if you have, use the /s flag to remove everything.</p>
<pre class="lang:default decode:true">rmdir DrivePath /s

// for example 

rmdir photo /s</pre>
<h3>7. View Drive&#8217;s Entire Directory Structure</h3>
<p>Use the following command to see a drives entire directory structure. Don&#8217;t run it a drive actually; it will take a while to list all directories structure. So, it&#8217;s useful for folders.</p>
<pre class="lang:default decode:true">tree</pre>
<p>Just run the command in the current directory.</p>
<p><figure id="attachment_11199" aria-describedby="caption-attachment-11199" style="width: 605px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/tree-command-in-command-line.png"><img loading="lazy" decoding="async" class="wp-image-11199" src="http://3.90.216.52/wp-content/uploads/2017/09/tree-command-in-command-line.png" alt="tree command in command line" width="605" height="383" srcset="https://www.technig.com/wp-content/uploads/2017/09/tree-command-in-command-line.png 717w, https://www.technig.com/wp-content/uploads/2017/09/tree-command-in-command-line-300x190.png 300w" sizes="(max-width: 605px) 100vw, 605px" /></a><figcaption id="caption-attachment-11199" class="wp-caption-text">Tree &#8211; useful command line commands for directory listing.</figcaption></figure></p>
<p>It will show the structure of that folder and subfolders as a tree.</p>
<h3>8. Change Command Prompt Title Bar Text.</h3>
<p>This one is fantastic and easy. You see the title bar by default is just the directory name. So, there is how you can change it.</p>
<pre class="lang:default decode:true">title I am Command line User</pre>
<p><figure id="attachment_11200" aria-describedby="caption-attachment-11200" style="width: 616px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/change-command-line-title-bar.png"><img loading="lazy" decoding="async" class="wp-image-11200" src="http://3.90.216.52/wp-content/uploads/2017/09/change-command-line-title-bar.png" alt="change command line title bar" width="616" height="248" srcset="https://www.technig.com/wp-content/uploads/2017/09/change-command-line-title-bar.png 651w, https://www.technig.com/wp-content/uploads/2017/09/change-command-line-title-bar-300x121.png 300w" sizes="(max-width: 616px) 100vw, 616px" /></a><figcaption id="caption-attachment-11200" class="wp-caption-text">Change command line title bar</figcaption></figure></p>
<p>Looks good right.</p>
<h3>9. Open Command Line form Any Directory.</h3>
<p>It&#8217;s a bit hard and time killer to navigate from on the directory to another directory. For instance, you want to go from C drive to D, it would take a few commands to go, but there is a short way.</p>
<p>In any directory you are, just press Shift+right-click, you will see the open command line here.</p>
<p><figure id="attachment_11203" aria-describedby="caption-attachment-11203" style="width: 190px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2017/09/Open-cmd-on-right-click.png"><img loading="lazy" decoding="async" class="wp-image-11203" src="http://3.90.216.52/wp-content/uploads/2017/09/Open-cmd-on-right-click.png" alt="Open cmd on right click" width="190" height="310" srcset="https://www.technig.com/wp-content/uploads/2017/09/Open-cmd-on-right-click.png 276w, https://www.technig.com/wp-content/uploads/2017/09/Open-cmd-on-right-click-184x300.png 184w" sizes="(max-width: 190px) 100vw, 190px" /></a><figcaption id="caption-attachment-11203" class="wp-caption-text">Open cmd on right click</figcaption></figure></p>
<p>If you don&#8217;t see anything or just see the PowerShell, So read how to replace Powershell with Command Line <a href="https://www.technig.com/">here</a>.</p>
<h3>10. See All Your Computer Drivers.</h3>
<p>You need this command to check which drivers you have and which one you don&#8217;t. So run the following command to list all drivers.</p>
<pre class="lang:default decode:true">driverquery</pre>
<p>It should show all drivers with the model name, display name, driver type and link date.</p>
<h2>Conclusion</h2>
<p>All in all, we have lots of other commands to learn. I think for this article, it&#8217;s enough. Also, we will bring you more useful command line commands in the future articles. Besides, if you have any good command to share with us, feel free to command below.</p>
<p>The post <a href="https://www.technig.com/10-useful-command-line-commands/">10 Useful Command line Commands You Should Know</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/10-useful-command-line-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">11176</post-id>	</item>
	</channel>
</rss>
