<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>AndersonPatricio.ca : Tips, Exchange Server 2013</title><link>http://msmvps.com/blogs/andersonpatricio/archive/tags/Tips/Exchange+Server+2013/default.aspx</link><description>Tags: Tips, Exchange Server 2013</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Removing the first line (#TYPE) when using Export-csv cmdlet</title><link>http://msmvps.com/blogs/andersonpatricio/archive/2013/01/14/removing-the-first-line-type-when-using-powershell.aspx</link><pubDate>Mon, 14 Jan 2013 19:37:46 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1822609</guid><dc:creator>Anderson Patricio</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/andersonpatricio/rsscomments.aspx?PostID=1822609</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/andersonpatricio/commentapi.aspx?PostID=1822609</wfw:comment><comments>http://msmvps.com/blogs/andersonpatricio/archive/2013/01/14/removing-the-first-line-type-when-using-powershell.aspx#comments</comments><description>&lt;p&gt;Hello my friends,&lt;/p&gt;  &lt;p&gt;If you export data from Exchange you may have already noticed that after exporting data you will have a first line which by default starts with #TYPE and then specifies the object (full qualified).&lt;/p&gt;  &lt;p&gt;If you are not sure we can show you the issue in a couple of steps. First Let’s get a list of all our mailboxes and then export to the file OUTemp.csv&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/3884.image_5F00_59041640.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/6136.image_5F00_thumb_5F00_6D8965BE.png" width="244" height="82" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;If we open the file, here we have the first line with the information.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/8015.image_5F00_3810A399.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/3731.image_5F00_thumb_5F00_339A22D2.png" width="244" height="163" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;It’s not a big deal but when you open on Excel instead of having your columns ready to rock and roll you have to go there and delete the line.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/6076.image_5F00_3E577A27.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/4403.image_5F00_thumb_5F00_2C0EB365.png" width="244" height="68" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;The solution..&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The solution can be found in the export-csv cmdlet by using the switch –&lt;strong&gt;NoTypeInformation&lt;/strong&gt; as show in the figure below.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/5482.image_5F00_56E71777.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/8228.image_5F00_thumb_5F00_2BA28070.png" width="244" height="36" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now, as result we can open the CSV file generated by the previous cmdlet and voilà we don’t have that line.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/2604.image_5F00_3D7F143D.png"&gt;&lt;img title="image" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="image" src="http://msmvps.com/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/andersonpatricio.metablogapi/0121.image_5F00_thumb_5F00_2B364D7B.png" width="244" height="71" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Cheers,    &lt;br /&gt;&lt;strong&gt;Anderson Patricio&lt;/strong&gt;     &lt;br /&gt;&lt;a href="http://www.andersonpatricio.ca"&gt;http://www.andersonpatricio.ca&lt;/a&gt;     &lt;br /&gt;&lt;a href="http://www.andersonpatricio.org"&gt;http://www.andersonpatricio.org&lt;/a&gt; (Portuguese)     &lt;br /&gt;Twitter: &lt;a href="http://twitter.com/apatricio"&gt;@apatricio&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1822609" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/andersonpatricio/archive/tags/Tips/default.aspx">Tips</category><category domain="http://msmvps.com/blogs/andersonpatricio/archive/tags/Exchange+2010/default.aspx">Exchange 2010</category><category domain="http://msmvps.com/blogs/andersonpatricio/archive/tags/Exchange+Server/default.aspx">Exchange Server</category><category domain="http://msmvps.com/blogs/andersonpatricio/archive/tags/Exchange+Server+2013/default.aspx">Exchange Server 2013</category><category domain="http://msmvps.com/blogs/andersonpatricio/archive/tags/Anderson+Patricio/default.aspx">Anderson Patricio</category></item></channel></rss>