# Help with removing double quotes

**URL:** <https://forums.powershell.org/t/help-with-removing-double-quotes/15388>\
**Category:** PowerShell Help\
**Created:** [December 14, 2020, 7:41am UTC](https://forums.powershell.org/t/help-with-removing-double-quotes/15388 "2020-12-14T07:41:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharpharp](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@sharpharp](https://forums.powershell.org/u/sharpharp)\
**Post date:** [December 14, 2020, 7:41am UTC](https://forums.powershell.org/t/help-with-removing-double-quotes/15388/1 "2020-12-14T07:41:41Z")

</div>

Hi,

No matter what i do in SSIS to import this powershell produced csv and put the contents in a table it adds double quotes:

> ```
> $MailUser |
> Select-Object -Property SAMAccountName, GivenName, EmailAddress,
> @{n="Password-Expires"; e={[System.Math]::Round((New-TimeSpan -Start $CurrentPWChangeDateLimit -End ($MailUser.PasswordLastSet)).TotalDays)}} |
> Export-Csv $outputFile -Append -NoTypeInformation -Encoding UTF8
> ```

Tried doing derived columns like: REPLACE(["SAMAccountName"],"\"","") but still not working

Is there anyway of outputting the above, just with commas and not the double quotes?

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![rob-simmers](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/rob-simmers/32/1010_2.png) [@rob-simmers](https://forums.powershell.org/u/rob-simmers)\
**Post date:** [December 14, 2020, 8:00am UTC](https://forums.powershell.org/t/help-with-removing-double-quotes/15388/2 "2020-12-14T08:00:33Z")

</div>

This is more of SSIS question. Typically, a double qoute would be specified as the Text Qualifier:

[http://www.msbiguide.com/text-qualifier-property-in-ssis/](http://www.msbiguide.com/text-qualifier-property-in-ssis/)

If you have SQL Management Studio installed, there is SQL modules available to take $MailUser and inject it into SQL with Write-SQLTable or Invoke-SQLCmd:

> **[SqlServer Module](https://docs.microsoft.com/en-us/powershell/module/sqlserver/?view=sqlserver-ps)**
>
> This section contains the help topics for the SQL Server PowerShell cmdlets.

or using many other various methods if you do not want a pre-requisite of SQL Mgmt:

[https://www.sqlshack.com/6-methods-write-powershell-output-sql-server-table/](https://www.sqlshack.com/6-methods-write-powershell-output-sql-server-table/)

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:28pm UTC](https://forums.powershell.org/t/help-with-removing-double-quotes/15388/3 "2024-05-16T20:28:11Z")

</div>

Closed on May 16, 2024, 8:28pm UTC


