Exporting csv question

i have a need to export discrete sets of data (basically rows of contacts) as a single csv file so that i can /import/ this file into other software in a way that will allow me to put a "category" to the incoming data.
right now i am saving the original document multiple times (no fun in 10.7.4 without SaveAs functionality AFAIK) and then i am going to go back in and DELETE all the data in /each/ numbers file that is NOT in that category and export this file with just this discrete info as csv file.
i /tried/ selecting just the data that i wanted as a csv file and doing a File Export as csv but this exported the whole file as a csv which of course i don't want.
in writing this down i now see that i could export the WHOLE document as a csv and then i suppose i could copy and paste each discrete set of data from the csv into a new document but even this seems a bit involved.
the final data is being imported into Cardscan for contact information.
anyone have any tips on this procedure by any chance?
TIA

xianwinwin wrote:
Question: is it possible to add colors, bold text or stretch the length of a column in the produced CSV file?Of course if you assumed that you'd be looking at the file with a fixed-width font, you could insert a bunch of tabs or spaces to get columns to match up, but I strongly advise you not do that. I think of CSV as a poor-man's excel data file or perhaps a flat database file, but most importantly it holds data in a standard format that can be read and manipulated by many different programs, including ones you write yourself. It is not meant to be for pretty visualization. Try to pretty it up and you possibly ruin it's main reason for existing. For nice visualization I'd create a small app that read the CSV, formatted it nicely and either displayed the data or stored it in some pretty format as a non-CSV file.

Similar Messages

  • Get-Mailbox –Server "abc" | Get-MailboxPermission | Export-csv C:\permissions.csv

    I am new to exchange command shell, I need to get a list of all security permissions per mailbox, we have executed the following command:
    get-mailbox -server "removed" | get-mailboxpermission | export-csv c:\permissions.csv
    The command ran ok, and has exported 9 fields, pscomputername, runspaceid, accessrights, deny, inhertiance, user, identity, isinherited, isvalid.
    My question is, which field in the above lists which mailbox the permissions are for? is it the "identity" field?

    Hi,
    Sorry for delayed reply. Did you mean the access rights do not appear correctly in the output CSV file, with the microsoft.exchange.management.recipienttasks.mailboxrights[], instead of the actual mailbox rights?
    If so, I recommend you check the article DareDevil57 provided.
    How to List all Users Who Have Access to Other Exchange Mailboxes
    http://exchangeserverpro.com/list-users-access-exchange-mailboxes/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Hope this helps.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Create export-csv with dynamic (unknown amount) columns

    Hi,
    This is my first post, hopefully I include everything you need.  My code block is at the bottom of my post.....
    I have written a PS script that gives me the info I need, but I would like to format it differently.  Currently I import a CSV with 2 columns - username and print queue name.  The script then takes each username and looks it up in SCCM
    to find the workstations the username has logged into.  I then export to csv - this is where I would like to format it differently.  The export csv has 4 columns username, print queue name, workstation name, and details. 
    username1,printqueue,workstation1,details
    username1,printqueue,workstation2,details
    username2,printqueue,workstation1,details
    username2,printqueue,workstation2,details
    My problem is that if the user logs into 5 workstations I have 5 rows with duplicated username and print queue name.  If my next username logs into 8 workstations I have 8 rows, etc.  I would like to format the export dynamically using as many
    columns (not rows) as need.  For example
    username1, printqueue,workstation1,workstaion2, workstation3
    username2,printqueue,workstation1,workstation2, workstation3,workstation4
    I expect where I have my pscustomobject would be where I could change this - I have tried setting up a count variable and using that in my loop to be able to assign dynamic column name, I have tried using an array but still new to setting that up, maybe
    I just wasn't doing it correctly.  If anyone has any ideas that would be great.
    Thanks, Kevin
    Here is my code:
    #Declare variables
    $now = Get-date
    $date = get-date -uformat "%Y_%m_%d_%I%M%p"
    $Queues = Import-Csv "c:\Users.csv"
    $SiteName="XXX"
    $SCCMServer="your.sccm.server.com"
    $SCCMNameSpace="root\sms\site_$SiteName"
    $CSVPath1 = "c:\PrinterUsersByComputer_$date.CSV"
    #Notify user that script is starting
    Write-Host -ForegroundColor Green "Starting script"
    #Loop through each account and find any workstations from SCCM that the user has logged into
    foreach ($Queue in $Queues){
    $Queue.Username
    $WSs = Get-WmiObject -namespace $SCCMNameSpace -computer $SCCMServer -query "select Name from sms_r_system where LastLogonUserName = '$($queue.username)'" | Select-Object -ExpandProperty Name
    #Check if the workstation variable has data
    if ($WSs){
    foreach ($WS in $WSs) {
    #Check if workstation is ALIVE and if we have access to it to get OS version
    $rtn = (Test-Connection -Cn $WS -BufferSize 16 -Count 1 -Quiet)
    IF ($rtn -match 'True') {
    $OS = Get-WmiObject Win32_OperatingSystem -ComputerName $WS | Select-Object -ExpandProperty Caption -ErrorAction Stop
    #Write to screen device to show progress
    Write-Host -ForegroundColor Green "Computer information found: $WS"
    #Write to log file the username, workstation(s) logged into, and OS version
    [PSCustomObject] [Ordered] @{
    'UserName' = $Queue.Username
    'Print Queue' = $Queue.PrintQueue
    'ComputerName' = $WS
    'Operating System' = $OS
    } | Export-Csv $CSVpath1 -Append -NoTypeInformation

    Ok, just a sec, I'm not sure we are on the same page.  I don't think that isn't what I'm look for. Unless I'm missing something, your code above assume 4 workstation columns for every row.  What if there is 5 or 8.  My current output
    from the full script is this (based on checking if PC is pingable, whether I'm denied the WMI query, etc)
    UserName
    Print Queue
    ComputerName
    Operating System
    User1
    PQ1
    Computer1
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer2
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer3
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer4
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer5
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer6
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer7
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer8
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer9
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer10
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer11
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer12
    Microsoft Windows 7 Enterprise 
    User1
    PQ1
    Computer13
    No device name to query
    User1
    PQ1
    Computer14
    Microsoft Windows 7 Enterprise 
    User2
    PQ2
    Computer15
    Microsoft Windows 7 Enterprise 
    User3
    PQ3
    Computer1
    Microsoft Windows 7 Enterprise 
    User4
    PQ4
    Computer2
    Access denied connecting to device.    No access to it: Computer2
    What I would really like is this, getting rid of the OS name for now:
    User1
    PQ1
    Computer1
    Computer2
    Computer3
    Computer4
    Computer5
    User2
    PQ3
    Computer1
    User3
    PQ13
    Computer1
    Computer2
    I would just like to condense the workstations to columns instead of 1 workstation per row and be able to expand the # of columns required based on the amount of workstations in $WSs -

  • Export-csv output maximum row size

    Hi all. May I know the maximum row size that can output to .csv using 'export-csv'??

    There's no limit on writing to a CSV file.
    You can try:
    # max rows to export to CSV:
    $i=0
    While ($true) { #Forever
    $i++
    $i
    "Some text" | Export-Csv -Path .\test12.csv -Append -NoTypeInformation
    until you run out of disk space, which may take a while. A million lines using the above script makes a 5 BM file..
    Now reading it back is an entirely different story. Try
    Delimit..
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)

  • How to add SaveFileDialog to PowerShell Get-ADUser Export-CSV

    Hi,
    I am having a bit of difficulties with getting the SaveFileDialog to work when I use the Get-ADUser export-CSV.
    Current code:
    $handler_Output_Click=
    $User = Get-Aduser $textBox1.Text -Properties DisplayName,sAMAccountName,EmailAddress,Mobile,Company,Title,Enabled,LockedOut,Description,Created,Modified,LastLogonDate,AccountExpirationDate,AccountLockoutTime,BadLogonCount,CannotChangePassword,LastBadPasswordAttempt,PasswordLastSet,PasswordExpired,LogonWorkstations,CanonicalName | Select DisplayName,sAMAccountName,EmailAddress,Mobile,Company,Title,Enabled,LockedOut,Description,Created,Modified,LastLogonDate,AccountExpirationDate,AccountLockoutTime,BadLogonCount,CannotChangePassword,LastBadPasswordAttempt,PasswordLastSet,PasswordExpired,LogonWorkstations,CanonicalName | Export-CSV C:\temp\test.csv -NoTypeInformation ';' -encoding utf8
    $richTextBox1.Text = "A file 'test.csv' has been created to C:\temp\ based on the user: $($textBox1.Text)"
    Here a specific filename is already defined and I have to edit the code each time I want a different filename.
    It would be perfect if I could implement the SaveFileDialog box so I have the ability to name the file before saving and possibly even have the option to select the file type (among .CSV and All files).
    This it the export/output button itself:
    $System_Drawing_Point = New-Object System.Drawing.Point
    $System_Drawing_Point.X = 502
    $System_Drawing_Point.Y = 38
    $Output.Location = $System_Drawing_Point
    $Output.Name = "Output"
    $System_Drawing_Size = New-Object System.Drawing.Size
    $System_Drawing_Size.Height = 23
    $System_Drawing_Size.Width = 85
    $Output.Size = $System_Drawing_Size
    $Output.TabIndex = 2
    $Output.Text = "Export as file"
    $Output.UseVisualStyleBackColor = $True
    $Output.add_Click($handler_Output_Click)
    # $form1.AcceptButton = $Output
    $Output.DataBindings.DefaultDataSourceUpdateMode = 0
    $form1.Controls.Add($Output)
    And in the beginning of my script I also have defined the following:
    [System.Windows.Forms.Application]::EnableVisualStyles();
    [reflection.assembly]::loadwithpartialname("System.Windows.Forms") | Out-Null
    [reflection.assembly]::loadwithpartialname("System.Drawing") | Out-Null
    [reflection.assembly]::loadwithpartialname("System.Windows.Forms.SaveFileDialog") | Out-Null
    And also:
    $Output = New-Object System.Windows.Forms.Button
    Any ideas how can I implement the SaveFileDialog so when I press the "Export as file" button the PowerShell command "Get-Aduser $textBox1.Text -Properties DisplayName,sAMAc..." is ran and I can choose the file name from a pop-up
    dialog box where to save the file and also put a filename? Currently I have to edit the code in order to assign a new file name (or go rename the file from that location).
    Thank you in advance,
    Henri
    EDIT:
    I know that the below is the answer to the SaveFileDialog, however I cannot imagine how I could implement it to my script into the "Get-Aduser $textBox1.Text -Properties a,b,c,d | select a,b,c,d | Export-CSV C:\temp\test.csv" cmdlet.
    Function Get-SaveFile($initialDirectory)
    [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
    Out-Null
    $SaveFileDialog = New-Object System.Windows.Forms.SaveFileDialog
    $SaveFileDialog.initialDirectory = $initialDirectory
    $SaveFileDialog.filter = "All files (*.*)| *.*"
    $SaveFileDialog.ShowDialog() | Out-Null
    $SaveFileDialog.filename

    Just run the dialog before exporting the file.  Why is that a problem?
    \_(ツ)_/
    It works now! I made some modifications and it works. Thank you very much for the advice.
    $handler_Output_Click={
    Add-Type -AssemblyName System.Windows.Forms
    $SaveAs1 = New-Object System.Windows.Forms.SaveFileDialog
    $SaveAs1.Filter = "CSV Files (*.csv)|*.csv|Text Files (*.txt)|*.txt|Excel Worksheet (*.xls)|*.xls|All Files (*.*)|*.*"
    $SaveAs1.SupportMultiDottedExtensions = $true;
    $SaveAs1.InitialDirectory = "C:\temp\"
    if($SaveAs1.ShowDialog() -eq 'Ok'){
    $User = Get-Aduser $textBox1.Text -Properties DisplayName,sAMAccountName,EmailAddress,Mobile,Company,Title,Enabled,LockedOut,Description,Created,Modified,LastLogonDate,AccountExpirationDate,AccountLockoutTime,BadLogonCount,CannotChangePassword,LastBadPasswordAttempt,PasswordLastSet,PasswordExpired,LogonWorkstations,CanonicalName | Select DisplayName,sAMAccountName,EmailAddress,Mobile,Company,Title,Enabled,LockedOut,Description,Created,Modified,LastLogonDate,AccountExpirationDate,AccountLockoutTime,BadLogonCount,CannotChangePassword,LastBadPasswordAttempt,PasswordLastSet,PasswordExpired,LogonWorkstations,CanonicalName | Export-CSV $($SaveAs1.filename) -NoTypeInformation ';' -Encoding UTF8
    $richTextBox1.Text = "A file $($SaveAs1.filename) has been created based on the user: $($textBox1.Text)"

  • How to export csv without doublequote

    I ran the following comand
    ls |export-csv "d:\a.csv"
    The result is like the following, every field is double quoted, is there any way to not export double quote. Currently the silly approach I used is to first export-csv, and then read the file in and replace all the double quote with empty string.
    #TYPE System.IO.DirectoryInfo
    "PSPath","PSParentPath","PSChildName","PSDrive","PSProvider","PSIsContainer","BaseName","Mode","Name","Parent","Exists","Root","FullName","Extension","CreationTime","CreationTimeUtc","LastAccessTime","LastAccessTimeUtc","LastWriteTime","LastWriteTimeUtc","Attributes"
    "Microsoft.PowerShell.Core\FileSystem::C:\Users\Daniel.Wu\.fcm","Microsoft.PowerShell.Core\FileSystem::C:\Users\Daniel.Wu",".fcm","C","Microsoft.PowerShell.Core\FileSystem","True",".fcm","d----",".fcm","Daniel.Wu","True","C:\","C:\Users\Daniel.Wu\.fcm",".fcm","10/6/2010
    10:33:39 AM","10/6/2010 2:33:39 AM","10/15/2010 3:28:57 PM","10/15/2010 7:28:57 AM","10/15/2010 3:28:57 PM","10/15/2010 7:28:57 AM","Directory"

    This really is a typical "Microsofty" reply. Yes, it's good practice to quote strings that may contain special characters or even commas within the fields. But if you know your data and you also know that there will be no such issues, then it's
    completely unnecessary.
    There is no formalised standard for CSV yet. RFC 4180 is a proposed standard, and even it says that strings
    may be quoted. The exception is for strings that actually contain commas.
    What gets up my nose is when MS fail to present a reasonable option (e.g. a "-noquote" switch), and then attempt to justify it by saying it
    should be the standard.
    CSV is a flexible format, and I should be able to output as TSV (which I can, thanks, Microsoft) and refrain from quoting my data as I see fit. Yes, I can roll my own using Add-Content, but when you have something like Export-CSV that implies it'll support
    the usual options (no quotes unless specified), it's frustrating.
    If you feel that strongly, add a suggestion on Connect. That stands a much better chance of being seen by someone who might be able to implement your suggestion than randomly complaining in an old, answered thread.
    https://connect.microsoft.com/
    EDIT: I just re-read my post and I want to clarify that I'm not trying to be argumentative with this suggestion.
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • Import-csv and export-csv

     Hi everyone,
    How do I modify the script so that I see all the entries in the computers_result.csv file.  As it stands only the last entry in the computers.csv shoes up in the computers_result.csv file.  Thanks so much.
    Import-Csv C:\computers.csv | ForEach-Object {
    $computername = $_.computer
    $result = get-adcomputer $computername -Properties description  | select Name,Description
    $result | export-csv C:\computers_result.csv

    Try this and let me know
    $result = @()
    Import-Csv C:\computers.csv | ForEach-Object {
    $computername = $_.computer
    $result += get-adcomputer $computername -Properties description | select Name,Description
    $result | export-csv C:\computers_result.csv
    Regards Chen V [MCTS SharePoint 2010]

  • Help with Export-CSV commandlet

    Hello, I have a basic powershell command that I want to execute and export the data to a CSV file.  If I execute the command and have the output go to a .txt file (using Out-File c:\output.txt) the command works perfectly. But when I use the Export-CSV
    c:\output.csv all I get is the following:
    #TYPE Microsoft.PowerShell.Commands.Internal.Format.FormatStartData
    "ClassId2e4f51ef21dd47e99d3c952918aff9cd","pageHeaderEntry","pageFooterEntry","autosizeInfo","shapeInfo","groupingEntry"
    "033ecb2bc07a4d43b5ef94ed5a35d280",,,,"Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo",
    "9e210fe47d09416682b841769c78b8a3",,,,,
    "27c87ef9bbda4f709f6b4002fa4af63c",,,,,
    "27c87ef9bbda4f709f6b4002fa4af63c",,,,,
    "27c87ef9bbda4f709f6b4002fa4af63c",,,,,
    "27c87ef9bbda4f709f6b4002fa4af63c",,,,,
    "27c87ef9bbda4f709f6b4002fa4af63c",,,,,
    "4ec4f0187cb04f4cb6973460dfe252df",,,,,
    "cf522b78d86c486691226b40aa69e95c",,,,,
    The command I am attempting to use is:
    Get-ADUser –Filter * -SearchBase “OU=OU3,OU=OU2,OU=Departments,OU=OU1,DC=gf,DC=local” | FT Name,SamAccountName | Export-CSV c:\DETfac.csv
    The command also works if I don't specify the fields that I need exported.  As soon as I add the name and samAccountname, I get the output above.  Any assistance would be greatly appreciated

    Hi,
    Replace FT with Select and you should be fine. You may want to add in -NoTypeInformation to Export-Csv as well.
    EDIT: Hah, slow again. =]  See above.
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • Help with export-csv append

    I know this has probably been covered a lot but I'm new to powershell and can't get this to work. Here is my simple VMM script.
    #Get list of all Virtual Machines.
    $file = "C:\dev\vmlist.csv"
    $VMHosts = Get-VMHost
    foreach ($VMHost in $VMHosts) {
    Get-VM -VMHost $VMHost | Select-Object Name,Status,Description,HostName | Export-Csv $file -NoTypeInformation
    I'm getting stuck with the export-csv part. I can't figure out how to get it to append to the csv. Can anyone help?
    Thanks.

    I agreee in the answer from big teddy :)
    In PowerShell 3.0 an -Append parameter have been added to export-csv, but it is non existing in 1.0 and 2.0
    Best Regards
    Jakob Gottlieb Svendsen
    Trainer/Consultant - Coretech A/S -
    Blog
    MCT - MCTS - VB.NET - C#.NET - Powershell - VBScript Mastering System Center Orchestrator 2012 - 3 day workshop - worldwide training click
    here

  • Exporting csv file to desktop

    Can anyone point me in the right direction
    - allow user to export a table/recordset in a csv format
    (Word label
    Merge for labels)
    - asp vbscript hosting
    - js enabled

    Tom Muck has an export csv routine that works in ASP. You
    might want to
    check out the exchange for it.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Philo" <[email protected]> wrote in message
    news:etsac2$eml$[email protected]..
    > Can anyone point me in the right direction
    >
    > - allow user to export a table/recordset in a csv format
    (Word label
    > Merge for labels)
    > - asp vbscript hosting
    > - js enabled
    >
    > --
    >

  • Get-Mailbox PS command import/export csv - need help

    Greetings,
    I know this should be simple but I'm having trouble.  I have about 500 users that have left the company and I want to verify their Exchange 2010 mailbox have been disabled.  If I just run the basic command "Get-Mailbox -identity alias"
    I see all I need to see.  The Name, Alias, and ServerName (that their mailbox is on).  If I check someone whose mailbox has been disabled I get "object could not be found."  Perfect, then I know their mailbox no longer exists. 
    In trying to import a csv file of the 500 users - and export it I'm having trouble. There are a few posts on these forums for similar issues but none are working or the conditions are different.  I'm not too good and PS scripting so I am hoping someone
    can assist.  I pieced this together.
    import-csv C:\temp\DisabledMBs.csv | get-mailbox >c:\temp\DisabledMBsOutput.csv
    The csv output file is blank.  The PS screen outputs this error for each user.
    The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
        + CategoryInfo          : InvalidArgument: (@{Name=Heaton; ...er Logon Name=}:PSObject) [Get-Mailbox], ParameterBindingException
        + FullyQualifiedErrorId : InputObjectNotBound,Get-Mailbox
    I guess I'm missing something here but stuck.  Any help is greatly appreciated!
    thank you!

    If you use a CSV for input, you need to tell the Get-Mailbox command what field is the identifier.  So if you have an alias field in your CSV, you would run your command as follows:
    import-csv C:\temp\DisabledMBs.csv | % { get-mailbox $_.Alias } | Export-Csv c:\temp\DisabledMBsOutput.csv -NoTypeInformation
    BTW, you'll notice that I've also piped your output to the Export-Csv command.  If you just pipe the output of Get-Mailbox to a file with a CSV suffix, you don't get a CSV - you get a text file with only one field named "Name                     
    Alias                ServerName       ProhibitSendQuota" (note, not "Name", "Alias", "ServerName", and "ProhibitSendQuota"
    separately).

  • Export CSV Cmdlet goes to infinite loop

    I'm trying to aggregate data from various CSV's into one using the following line of code
    “ ls -n *.csv | %{ ipcsv $_} | epcsv allinone.csv -NoTypeInformation “ 
    It worked fine until I changed the exported csv name to OneWorldFile.csv. It looks like PS lands into an infinite loop and appends the data into the CSV. I’ll have to eventually halt the process.
    “ ls -n *.csv | %{ ipcsv $_} | epcsv OneWorldFile.csv -NoTypeInformation “
    Here is the screenshot for your verification : http://note.io/1pNoee3. Is there any reason for this behaviour? Did I miss something?
    Thank you in advance for your reply.
    Vimal.

    Thank you, Noah.  I've understood what causes this behaviour -> Parallel Processing.
    I did get an interesting reply from powershell.org forum (http://bit.ly/Tzoy3R) and the problem sorts out if pipeline is not used. Thanks to Mike F Robbins.
    Import-Csv-Path(Get-ChildItem-Name*.csv)|Export-Csv-Path .\OneWorldFile.csv-NoTypeInformation
     

  • Get-aduser - Export-CSV -- POWERSHELL

    I need help in getting this command to export the data into a CSV.
    Get-ADUser -Filter * -Properties
    whenCreated | Where-Object {$_.whenCreated -ge ((Get-Date).AddDays(-30)).Date} | FL SamAccountName, Name, DistinguishedName, whenCreated
    | Export-Csv
    c:\scripts\ADCreatedUsers.csv
    When doing this the command does not give me anything close to what I expect.

    Duplicate thread.
    Active thread is here:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/15c5347a-4c18-404c-a9f9-0ba48b932384/getaduser-exportcsv-powershell?forum=ITCG
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Trying to EXPORT-CSV without headers - Tried suggestions in forum - still stuck

    I am tryling to get the contents of my array out to a CSV with no neader records.  I looked for examples here and on other sites but I still cannot get it working.   
    Below is the latest attempt and the 1st row of te output.  I end up with a CSV with the corect records and no headers, but with a single column of data.  Note below that the first element in the row is un-quoted, but each element after is enclosed
    in quotes.
    I feel like I am close, but need help to get there.
    Thanks
    -- CODE --
    $NormalBatch | 
    Select "Rec_Type","PO","Customer","Invoice","Ship","Date","B1","Name","Addr1","Addr2","City","State","Zip","Country","Line","Qty","Unit","Site","Carton"

    ConvertTo-Csv |
    Select -Skip 2 |
    Out-File "c:\users\user\desktop\todo\normalbatch.csv"
    -- RESULT --
    INVOICE,"123456789","VENDOR.COM","4013596","UPSG-Ground","12/1/2014","","NORM AVERAGE","123 MAIN ST.","","YOUR TOWN","HI","1235","","","","","",""

    Hi Tom,
    If you want to remove header from csv file, please refer to the script below which will export processes without header:
    $i="d:\output.csv"
    $o="d:\test.csv"
    get-process|select name, id|Export-Csv $i
    Import-Csv $i |select name,id | Export-Csv -path $o -NoTypeInformation
    (Get-Content $o | Select-Object -Skip 1) | Set-Content $o
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Exporting Each question to LMS

    Hello,
    Is there a way that we can export each question within a
    captivate presentation to a LMS system. I do know that we can
    export the results pass/fail etc.. Our issue is that we can't view
    the errors in the questions or be able to review the problems with
    our learners. Any help would be great
    Thank you
    Sergio

    You can set Captivate to report Interactions and Score instead of just Score.
    But whether you can dig down in the LMS reporting to find out how many users chose a particular answer depends entirely on the capabilities of your LMS.  So allow it, most don't.  You might need to get a special report created for your LMS that queries the database and digs out such info.

Maybe you are looking for

  • Variable scope with loaded external SWF's?

    I've got an SWF, call it calcLite, that will be deployed both independently (ie: attached to an HTML doc) and also imported at run time (linked as an external asset via the loader class) to another SWF, let's call it calcPro. That part is working fin

  • Elements_10 crash

    My wife started a backup this morning to the external hard drive (she is the expert on this, not me - I only work with Elements 10). I came into the office and was not aware of what was going on and that it was still plugged in to the external drive.

  • Search for Special Character in  Oracle Text CONTAINS Query

    Hi, We have to write few query which will search for email id in the Oracle Text. The Search text will be like <[email protected]> . So email id should be searched correctly with the @ symbol. Similarly we want the following special character to be s

  • HT204053 My daughters phone number is listed with my FaceTime and messages. How do I change to my phone number?

    I have a new IPad mini and it is linked to my daughters phone number. How do I change to my phone number?

  • Agent 4.1.8 and remote control failure

    Is anyone aware of a problem whereby installing the latest ZFD mgmt. agent (4.1.8) causes remote control to stop working with the following error message? "Either you do not have the rights to Remote Control or the target workstation is not configure