Questions tagged [csv]

Comma Separated Values is a tabular to store data

Filter by
Sorted by
Tagged with
0 votes
1 answer
38 views

Have List of user but I want to find out if they are added to specific ADGroupMember

I have been trying to understand how to import my csv file and export of specific adgroup they are added or even they are not added Import-CSV " C:\Users\user.csv" | ForEach-Object { Get-...
K0n2113's user avatar
  • 11
0 votes
1 answer
37 views

RegEx passed by CSV file not working in PowerShell

Hi I have a script trying to pull out the price value from a html file. the Regex works when I assign it in the script but when I put the regex in CSV, it refuses to give me the result. Could someone ...
Cliff's user avatar
  • 3
0 votes
1 answer
25 views

Recomendations for Data Transfer between heterogeneous sources/destinations

I apologize if this is not the right forum for this kind of question. We need to transfer data between DB Servers (MySQL, MSSQL), CSV files, API Sources (Web Services), etc. and we are looking into a ...
Daniel's user avatar
  • 101
0 votes
3 answers
3k views

Is there a way to export all AWS Security Groups to CSV? moreover, is there a recommended way of keeping track of SR changes?

We have a relatively small dev environment in AWS with about 50 Security groups with multiple permission entries. is there a recommended way of keeping track of SR changes, Access, etc? My manager ...
Moshe Harel's user avatar
0 votes
1 answer
50 views

How to extract the Table Definitions of a MYSQL Table into CSV?

The output of mysqldump -not csv does not contain the columns, just values: select * from AUDIT_RESULT INTO OUTFILE '/va/tmp/audit_nresult.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES ...
MethodistMX's user avatar
1 vote
1 answer
509 views

Issues with converting JSON to CSV with nested values

So far I have had no problems converting standard JSON to CSV with jq in the past. But now my data becomes complicated. Major base tags are account and subaccount. All other values are variables. The ...
safect's user avatar
  • 13
0 votes
0 answers
100 views

Issues with Bash Script to SSH and Copy String Variables from a CSV to a remote file

Here is my script #!/bin/bash clear PSQLSTART="INSERT INTO TABLE (Name, Description, Field3, Field4, Field5, Field6, Field7, Field8, Field9, Field10, Field11, Field12, Field13, Field14, Field15,...
mc587's user avatar
  • 1
0 votes
0 answers
437 views

Upload 300MB or more CSV file to GCP storage bucket

I am trying to upload a 3GB CSV file to Google Cloud Storage Bucket but every time I try it only processing 295.5MB and uploads 295.5MB. Why is this? I have set my bucket size limit to 15GB.
jarvis crypter's user avatar
0 votes
1 answer
2k views

Unable to read CSV file from browser instead it's downloading from S3?

I am storing some CSV files on S3 and I make them public to access it over browser but whenever I try to access S3 URL for the CSV it's getting downloaded. I already setup headers with Content-Type to ...
satya's user avatar
  • 21
0 votes
1 answer
9k views

Assign group permissions on folders using Powershell via CSV

we are working on a new Permission Concept. We created different Security Groups,depending on the Department. For example: Finance_List, Finance_Read, Finance_ReadWrite Controlling_List, ...
Phil9431's user avatar
-1 votes
1 answer
948 views

linux mysql convert .sql.tar.gz to csv

I have a .sql.tar.gz file tht ws generated by mysql export is there any command in linux to convert this sql.tar.gz file to csv? Thanks
Born vs. Me's user avatar
2 votes
3 answers
6k views

reading a csv file in powershell , header line having duplicates

I have a script I am trying to read a csv file with and assign column names to the data. however the files has multiple columns named the same see below Grade QA/QC and Symbol ID,Date,Water Level / ...
R.Merritt's user avatar
  • 127
0 votes
1 answer
674 views

CSVDE group import where users are added from sAMAccountname

I am looking to do a CSVDE import onto my server 2008 r2 DC. I have set up the csv correctly and can import users and have users added to the group from the import, all as expected. I then found that ...
Gareth Palmer's user avatar
1 vote
2 answers
2k views

Task Scheduler -- how to expand /export the "Show Active tasks" window -- Windows server Enterprise Edition 2007:

For the Task Scheduler -- how to expand the "Show Active tasks" window -- This is for Windows server Enterprise Edition (release date: 2007). Is there a way to export the data to a .csv file or ...
JosephDoggie's user avatar
0 votes
1 answer
870 views

Powershell script Import Users from CSV, add to group, with Success/Fail logs

I am attempting to create a powershell script to maintain users. Current environment. Office365 with ADFS, AD and on premise exchange server 2010. All integrated together. For the current problem, I ...
Clay Thompson's user avatar
0 votes
0 answers
88 views

How can I reset password and email it using a CSV?

In a nutshell, I have a CSV file with First name, Last name, and personal Email. I would like to use this file to rest the users passwords and then send them an email with their login information. I ...
T. Leaf's user avatar
0 votes
0 answers
24 views

How to capture tables with different structure from web

I have thousands of web pages(need login with username and passwords) like https://XXX.incometax.XXX/Preview/ViewDetail?TIN_INFO_NO=11935# where only last four digits(11935 for this example) changes ...
SIslam's user avatar
  • 101
0 votes
1 answer
1k views

Extract data from multiple XMLs and generate CSV report - Powershell

I have few connectionstrings which are xml files. I need to generate a CSV report using all these connectionstrings with the following output: Below is my PS script which works fine for 1 file and ...
user3421341's user avatar
0 votes
1 answer
640 views

Use for [$i] variable to create csv columns - Powershell

I am trying to grab information from the connectionstrings.config file and populate it to a CSV. I have the following script so far: $Filename = "C:\new.config" [xml]$config = Get-Content $fileName $...
user3421341's user avatar
0 votes
1 answer
127 views

Export object location from CSV

I need to export the object location of servers from a list. I have tried using the following script, but it only checks the mentioned OU, how can I search the entire domain and export the canonical ...
JJJJNR's user avatar
  • 870
3 votes
1 answer
890 views

PowerShell Exporting to CSV / Workflow?

When the server is ping'd the resulting address is compared to an inventory for purposes of keeping the inventory up to date. I'm trying to tack on the result as "good" or "bad" in the next ...
evenyougreg's user avatar
1 vote
0 answers
3k views

How to import data from CSV file to LDAP directory and keeping them up to date

lets say I have CSV file in format userID;login;firstName;lastName;validUntil Is here any easy way how to import data from this CSV to LDAP directory and how keeping LDAP up to date based on CSV (...
user1928543's user avatar
2 votes
2 answers
39k views

Powershell read from CSV set variables

I have a csv file with two columns "Path" and "Owner". I've created the below script and it can read from the CSV file, but when I attempt to assign the variables from the csv it ...
Norrin Rad's user avatar
3 votes
1 answer
2k views

import list of pcs using import-Csv and change attribute using powershell script

Im trying to write a powershell script to change attribute called "comment" in a list of pcs using csv and import-Csv. Here is my script $computers=Import-Csv -Path "C:\sds.csv" foreach ($...
user879's user avatar
  • 267
-3 votes
2 answers
268 views

User Group membership script not working [closed]

Any idea why below code is not working ? Trying to export username then the groups on to a csv. I just need the group names only. Please help - many thanks $users = (Get-Content users.txt) ...
kbriaz's user avatar
  • 1
1 vote
3 answers
31k views

Get-ADUser in foreach loop returns nothing if using object

$users = Get-Content "C:\PowerShellScript\CSV\swyxusers.csv" $test = Foreach ($user in $users){ Get-ADUser -Filter {Name -like "*$user*" } | Select-Object SamAccountName, Enabled } $test| export-...
Jakodns's user avatar
  • 236
1 vote
1 answer
1k views

regexes in sed: matching a character that is not preceded or followed by a specific other character

Assume a wrongly formatted csv snippet using semicolons as field terminator: abc;d" "e"f;"ijk" According to RFC4180 a dquote inside a field should be represented by two dquotes: abc;d"" ""e""f;"ijk"...
Stefan Armbruster's user avatar
2 votes
1 answer
4k views

MaxMind GeoIP CSV to .dat

I need to put local IP addresses into MaxMind GeoIP DB. I've downloaded the CSV and adding new IP addresses and locations is easy. I've found two tools that do csv to dat for MaxMind GeoIP but I can't ...
yax's user avatar
  • 31
1 vote
1 answer
58 views

Strange e-mail behavior in powershell

I'm adding a new powershell piece into my user creation, which is to e-mail their supervisor with an alert that they have been created. However, for some reason, it sends the credentials to the next ...
Sarah Sanderson's user avatar
2 votes
2 answers
911 views

Powershell Scripts works for 10 months, suddenly stops working

When I create my new users every week, I execute this powershell scripts I put together. It has been working like a charm for 10 months, but as of last week started throwing this strange error: ...
Sarah Sanderson's user avatar
2 votes
2 answers
2k views

Powershell script to Inventory File Types

I have been writing a script to inventory drives by specific file types. (AVI, MPG, MP3, etc....) I can get the base script to work using only a set drive and extension, but I would really like to ...
Keith's user avatar
  • 23
0 votes
1 answer
3k views

rsyslog convert json to text on the fly

I have application logging events in JSON format for later structured queries, etc. Now I have a task to log the same messages in plain text (CSV probably) and I really don't want to log each event ...
stimur's user avatar
  • 894
1 vote
2 answers
4k views

csv import mysql null

I have to import some csv-formatted data into a mysql (mariadb) database. There is no csv header and the lines look like this: 00323acd-7909-41a4-a849-073ca3391dcf,2014-05,\N 00323acd-7909-41a4-...
NaN's user avatar
  • 335
0 votes
2 answers
4k views

Bulk Update AD Attribues with Employee ID as matched key

I have a CSV file that I need to bulk update AD with. The file has an employeeID, which would match the employeeID field in AD. So far, I've been able to update a user successfully with a CSV file if ...
Jim's user avatar
  • 17
0 votes
1 answer
1k views

NXLog unable to read complete .csv file

I try to work out why NXLog can't read the complete .csf file witch has the same name but gets edited every 12 hours by windows for a export. conf file of NXLog: #define ROOT C:\Program Files\nxlog ...
Alex's user avatar
  • 1
0 votes
1 answer
5k views

System.Object[] instead of the actual path

The script below does not produce the path to the files in question, in my CSV file. Instead it is giving me System.Object[]. Please advise as to what I am doing wrong here. My goal is to clean up ...
NobleMan's user avatar
  • 225
0 votes
1 answer
8k views

sftp: get file by mtime

Objective: Connect to sftp server with very simple script using -b option, cd to directory and get file with the latest modified time or created time. I can connect and download *.csv but that may ...
Registered User's user avatar
2 votes
2 answers
3k views

Importing users to AD with CSV, cannot get some fields to work

Been trying to build a CSV file to import users into Active Directory. I can get everything to populate, except for E-mail, Password, and Enabling the user. Just using this cmdlet in Powershell. ...
Matt Fogleman's user avatar
2 votes
1 answer
1k views

Handler mapping on IIS / OWIN /Nancy for a CSV file

I've an issue with IIS and OWIN/Nancy, here is the setup of our server : Windows Server 2012 R2 IIS 8.5 OWIN with Nancy (middleware) ASP.NET 4.5 Application developed in F#. I want to download a ....
Denis's user avatar
  • 23
2 votes
3 answers
16k views

Batch script to export info from Active Directory (name, phone numbers, location, etc) into a csv file

The secretary at my work uses a spreadsheet that lists names, phone numbers, and locations of employees to look up info if someone asks. All this info is located in AD, but the problem is that we are ...
James F's user avatar
  • 21
0 votes
1 answer
3k views

Repeat the csv header twice without "Append" (PowerShell 1.0)

I have prepared a PowerShell script to export a list of system users in CSV format. The script can output the users list with Export-csv with single header row (the header row at top). However my ...
Mark's user avatar
  • 217
5 votes
3 answers
3k views

How to Split a Huge CSV File in Linux?

I have 60TB of data that resides in 12 csv files. The data will be loaded into a clustered database where the loading processes is single threaded. In order to improve my load performance I need to ...
Up_One's user avatar
  • 150
1 vote
1 answer
4k views

Comparing 2 CSV files in powershell exporting difference to another file

I've write this script out, and could have swore I had it giving me a Failed early this morning but now I'm getting nothing and not sure why. Basically I need to compare $SourceAddress with $...
Douglas Francis's user avatar
1 vote
1 answer
7k views

How to script nagios csv export

nagios 3 can export availability data as csv (clicking through the web gui). Now I would like to do that automated and on a regular basis, so I am looking for a way to set all the parameters (e.g. ...
Isaac's user avatar
  • 1,205
1 vote
1 answer
401 views

Optimal setup for bulk CSV import

We're currently running a Wordpress site but need to import 10,000 - 20,000 posts per day from CSV files. Our current setup is an all-in-one LAMP server with 8GB RAM and 8 Virtual Cores. The import ...
user2028856's user avatar
4 votes
1 answer
268 views

Powershell script to import CSV to AD

In attempts to automate a few things, I've come across a stumbling block with an import script for AD. A part of the script contains: New-ADUser -Name $Name –GivenName $Person.givenName –Surname $...
Cold T's user avatar
  • 2,401
0 votes
3 answers
1k views

Syslog-ng.conf csv parser lost first columns

I try to split information that come from IIS server with syslog-ng configuration. I create and fill the syslog-ng.conf but my csv parser lost the first column. let see: source s_network { ...
tejerka's user avatar
  • 21
2 votes
2 answers
532 views

Server 2012: how to plan for storage failover?

The Stuff I have the following components to work with: two rooms two beefy Dell R510s, one in each room two EMC VNXe storage devices, one in each room. The goal Ensure that if one server room ...
SeanKilleen's user avatar
  • 1,083
2 votes
3 answers
17k views

How to export munin raw data to CSV?

I'm monitoring my Debian GNU/Linux server with Munin monitoring software. I was wondering whether I could export the raw data used to generate Munin charts? I want to do some in-depth statistical ...
q9f's user avatar
  • 640
6 votes
1 answer
17k views

mongoexport csv output array values

I'm using mongoexport to export some collections into CSV files, however when I try to target fields which are members of an array I cannot get it to export correctly. command I'm using: ...
9point6's user avatar
  • 175