Powershell NoTypeInformation: Applications and Examples



Powershell NoTypeInformation: Why So Much Interest?

I chose to write on ‘Powershell -NoTypeInformation’ because so many people ask questions about it. In preparing to write on this topic, I was wondering why there is such a huge interest in ‘Powershell -NoTypeInformation’? 

The only answer I could come up with is because of its application in PowerShell reporting. A lot of people may have had the same concern I had some time ago when I ran a PowerShell report with the Export-Csv cmdlet. When you run the Export-Csv PowerShell command it leaves some funny info on top of the csv file as shown below:

Sponsored Content

What is ‘Powershell -NoTypeInformation’?

Good question! ‘Powershell -NoTypeInformation’ -actually the ‘NoTypeInformation’ bit is a PowerShell parameter found in some PowerShell commands. If you are new to PowerShell and want to know more about PowerShell command parameters, see the article PowerShell Commands

Most people searching for ‘Powershell -NoTypeInformation’ probably ran into trouble when they ran Export-Csv and want to know how to get rid of the annoying ‘TypeInformation’ left on top of the csv report. 

Apart from Export-Csv cmdlet, there are some other PowerShell commands (cmdlets) that have the ‘NoTypeInformation’ parameter. To find all PowerShell commands that have the ‘NoTypeInformation’ parameter, execute the command below:

Get-Command -ParameterName 'NoTypeInformation'  

The above command will produce the result shown below. As you see from the figure, three PowerShell cmdlets have the ‘PowerShell NoTypeInformation’ parameter: ConvertTo-Csv, ConvertTo-Xml and Export-Csv. Depending on the cmdlets on your computer, you may have more.

Get-Command -ParameterName ‘NoTypeInformation’

NoTypeInformation Applications

For the remaining part of this article, I will focus on Export-Csv cmdlet.
To get information about any PowerShell command, you require the Get-Command cmdlet. To get more information about the Export-Csv cmdlet, execute the command below:

 Get-Help Export-Csv 

The result of the command is shown below:

Get-Help Export-Csv

The result of the previous command will outline the basic help information about the Export-Csv cmdlet.

To get more information about the cmdlet; including information about the ‘NoTypeInformation’ parameter, execute the command:

 Get-Help Export-Csv -Full 

If you wish to return examples (how to use Export-Csv cmdlet), execute the command:

 Get-Help Export-Csv -Examples 

Sponsored Content

NoTypeInformation Examples

Lets look at some practical examples ‘PowerShell -NoTypeInformation’. Say you want to get the list of all processes running on your computer, you could run the command below:

Get-Process | Select-Object ID, ProcessName | Export-Csv E:\Powershell-NoTypeInformation.csv 
Replace the path E:\Powershell-NoTypeInformation.csv with a valid path

The previous command will create a csv file containing our process report. Portion of my report is shown in below:


Notice that the csv header has some information you did not request for? – “#TYPE Selected.System.Diagnostics.Process” This is the Process TypeInfirmation. It is dropped there by the Get-Process command by default. Want proof? Enter the command below:

Get-Process | Get-Member 

The result of the command is shown below:

Get-Process | Get-Member

Notice the “TypeName: System.Diagnostics.Process” right on top? This is where the TypeInformation on your csv report came from!

Getting rid of that unwanted information is where the ‘Powershell -NoTypeInformation’ comes in. Let’s repeat the previous command but now including the -NoTypeInformation parameter:

Get-Process | Select-Object ID, ProcessName | Export-Csv E:\Powershell-NoTypeInformation-1.csv -NoTypeInformation 

Notice that the TypeInformation is gone? See Figure below for details.


This is the power of ‘PowerShell -NoTypeInformation’!

I hope this has been helpful. Kindly leave comments below with your feedback.

Sponsored Content

Other Helpful Guides

Additional Resources and References


Please enter your comment!
Please enter your name here


network discovery keeps turning off server 2016

How to Fix Network Discovery If it Keeps Turning Off in Server 2016

Does network discovery keep turning off in your Windows server 2016? It is likely that one of its dependent services is not...
how to install windows 10 1903 update manually

How to Install Windows 10 1903 Update Manually

Windows 10 1903 Update was released in May, 2019. But some users are not yet offered the update via automatic update. The...
spotify web player not working

Spotify Web Player Not Working [Fixed]

Introduction Spotify Web Player may stop working for you with the following error messages: "Spotify Web Player an Error...
DISM.exe /Online /Cleanup-Image /Restorehealth

DISM.exe /Online /Cleanup-Image /Restorehealth Explained

What is DISM.EXE /Online /Cleanup-image /RestoreHealth? "DISM.exe /Online /Cleanup-Image /Restorehealth" is a DISM command that repairs issue with the...
DHCP Relay agent

DHCP Relay Agent: Configuration in Windows Server 2016

What is a DHCP Relay Agent? A DHCP Relay Agent allows DHCP clients in a different network subnet to...


Remote Desktop Connection

Remote Desktop Connection an Internal Error Has Occurred [Fixed]

Introduction I recently received the error message "Remote Desktop Connection an Internal Error Has Occurred". It was strange because...

Find My Samsung: Register and Use Samsung Find my Mobile

Introduction Ever wondered how you could find your Samsung phone if you lost it? Find my Samsung or Samsung...
What is the Difference Between PowerShell and CMD?

Windows Powershell vs CMD: Differences and Similarities

Introduction This short guide compares Windows PowerShell vs CMD (Windows command prompt). I will cover the history and nature...
Spotify No Longer Supports this Version of Microsoft Edge

Spotify No Longer Supports this Version of Microsoft Edge [Fixed]

Introduction When you open Spotify web player on Microsoft Edge, you may receive the error message "Spotify No Longer...
Windows 10 Won't Boot

Windows 10 Won’t Boot With Black Screen? 3 Ways to Fix It

Why Won't Windows 10 Boot Up? If your Windows 10 stops with a black screen, the first question in...


PowerShell commands

PowerShell Get-Command: Syntax, Applications, Examples

The PowerShell Get-Command cmdlet ('command let') in my opinion is the first PowerShell command you should know - that is if you...
Remote Desktop Connection

Remote Desktop Connection an Internal Error Has Occurred [Fixed]

Introduction I recently received the error message "Remote Desktop Connection an Internal Error Has Occurred". It was strange because...
powershell help

Get-Help Command: Syntax, Parameters, Examples

Introduction Don't know how to use a PowerShell cmdlet? PowerShell Get-Help cmdlet will give you information about any powerShell...
Excel Count

Excel Count: How to Count in Excel With Examples

Introduction Excel COUNT Function is used for counting items in a worksheet. Excel COUNT also has the conditional function,...
concatenate excel

Concatenate in Excel: How to Concatenate Columns and Strings

What is Concatenate in Excel? Concatenate in Excel is joining two strings into one continuous string. You can join...


disable cortana windows 10 featured

How to Disable Cortana in Windows 10 (2 Methods)

Introduction Some Windows 10 users may not like Cortana. Solution? Disable Cortana. You are probably reading this because you...
bootrec /fixboot access is denied

How to Fix BootRec /FixBoot Access is Denied Error in Windows 10

Introduction BootRec /FixBoot Access is Denied Error in Windows 10? This error is likely caused by corrupt EFI directory.
Reset Windows 10

How to Reset Windows 10 (2 Methods)

Introduction If your Windows 10 is broken, one available way to fix it is to use Windows 10 reset....
system restore windows 10

How to Enable and Use System Restore in Windows 10

Introduction System restore in windows 10 is a very important tool that is probably ignored by most users. But...
windows has stopped this device code 43

How to Fix Windows Has Stopped this Device Code 43 Error

Introduction Sometimes you may receive "Windows has stopped this device code 43" error. This error is likely to come...
Windows could not automatically detect this network's proxy settings

How to Fix “Windows Could not Automatically Detect this Network’s Proxy Settings”

Introduction You suddenly lose the ability to connect to the internet. Then you run network troubleshooter and it returns...
printer offline

5 Ways to Restore Your Printer Online If Status is Offline

Introduction Is your printer offline? Setting it online is very simple but sometimes it is more than just setting...

How to Fix “BootMgr is Missing” Error in Windows 10

Introduction If you receive Fix "BootMgr is missing" Error in Windows 10, the default response is panic! But you...
windows 10 search featured

How to Fix Windows 10 Search If it Stops Working

Introduction Are you having troubles with Windows 10 search? Apparently, it is a fairly common problem with a number...
oooops, something went wrong. reload

How to Fix “Oooops something went wrong. reload” Spotify Error

Introduction If you receive "Oooops something went wrong. reload" Spotify error, do not panic. The fix is simpler than...


avast vpn

Avast VPN: How to Install, Setup and Stay Safe Online

What is Avast Secureline VPN? Avast VPN is a VPN (Virtual Private Network) software that allows you to...

Portal Office 365: Your Ultimate Guide to Office 365 Admin Portal

What is PortalOffice365? PortalOffice365 (portal.office.com) is a Microsoft cloud-based portal that allows administrators to create and manage users and...
How to Make a Line Graph in Excel and Google Sheets

How to Make a Line Graph in Excel

Introduction A line graph is a visual representation of a set of data. This guide shows you how to...
How to Cancel Spotify Premium

How to Cancel Spotify Premium

Introduction You can cancel Spotify Premium within the 30-day trial. If you cancel Spotify Premium within the trial period,...
internet explorer has stopped working

Internet Explorer Has Stopped Working [Fixed]

Introduction If you receive "Internet Explorer Has Stopped Working" error, it may result in some of these symptoms:

By using this website you agree to accept our Privacy Policy and Terms & Conditions