Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • Import-CSV to custom object or Delete first line of .csv file

    Hi peops, I've come across a wee problem that I can't get my head around and I was hoping that someone here might be able to help. I'm a complete newbie to powershell (and scripting generally), but am very excited about the possiblities it appears to be able to offer. I've managed to...
    Posted to General (Forum) by cmcknz77 on 04-01-2009
    Filed under: PowerShell, CSV, Import-CSV, Export-CSV, Type Operators
  • Re: how to write a hash in the way it can easily be readed again?

    well, a hash is just string data so you could pipe it to Out-File. Or, in order to save more than one hash in a file, consider adding them to an object and writing objects to a CSV. Here is an example: $object = 1 | Select-Object "Filename", "Hash" $object.FileName = "bla"...
    Posted to General (Forum) by Tobias on 09-08-2009
    Filed under: Import-CSV, Export-CSV, Select-Object
  • export-csv appending issue

    I have a script to try to go through a list of servers we have, ping them return if they are alive or not. $FilePath = "c:\Scripts\SPing.csv" $colComputers = get-content “C:\Scripts\AllSvr1.txt” foreach ($strComputer in $colComputers) { $ping = New-Object System.Net.NetworkInformation...
    Posted to Using Scripts (Forum) by adrian on 10-23-2009
    Filed under: PowerShell, export-csv
  • Re: export-csv appending issue

    $Ping = New-Object System.Net.NetworkInformation.Ping -ErrorAction SilentlyContinue # initialize an array that will be output $Responses = @() Get-Content 'C:\Scripts\AllSvr1.txt' | % { Write-Host "Checking server: $_" $PingReply = $Ping.Send($_, 5000) # create an object that will be...
    Posted to Using Scripts (Forum) by Aleksandar on 10-24-2009
    Filed under: PowerShell, export-csv
  • Import-CSV / Export-CSV with special characters / Bug?

    Is there a way to make import/export-csv work with special characters? Try this: cd $home md öttö dir | select-object Name | export-csv test.csv import-csv test.csv All special characters appear as "?". -Tobias
    Posted to General (Forum) by Tobias Weltner on 12-10-2008
    Filed under: bug, CSV, Import-CSV, Export-CSV
Page 1 of 1 (5 items)
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.