Using csv files and automatic activation
We have setup our hybrid with Office 365, how can I use the csv file to migrate and activate the users at the same time ? I can migrate the users but they are not activate otomatically. Actually we plan to ONLY activate exchange not the other products
like Lync, Sharepoint..at the moment.
Hi,
Do you migrate mailboxes to Exchange Online with a staged migration?
When you migrate mailboxes to Exchange Online with a staged migration, you can create a CSV file to create a migration batch.
After a migration batch has finished running, you need to convert the on-premises mailboxes in the migration batch to mail-enabled users by downloading related scripts and run it.
I'm afraid there is no way to migrate and activate the users at the same time using a single CSv file.
Here is a related article for your reference.
http://technet.microsoft.com/en-GB/library/jj874018(v=exchg.150).aspx
Best regards,
Belinda Ma
TechNet Community Support
Similar Messages
-
Using .csv file and adding data into database
hi,
i'm working on a project which shows all the share prices on a webpage from the FTSE100..
my problem is..i connect to yahoo.co.uk to get my share price information which is updated every 15mins..they return a .csv file to me...at the moment, i am just printing the information onto my website, but is there any way that i could store this information into a database if i needed the data to be used elsewhere...thanx for the help in advancebelow is my code which i used to get my info onto the web...i'd just like to know how i would use this to store the data into a database..
import java.net.*;
import java.io.*;
import java.lang.*;
import java.util.*;
public class SharePrice
private String line;
private int maxShares = 101;//maximun shares a user can have
private int details = 5;//five details, name,date,time,price,change.
public String [][] shareData = new String[maxShares][details];
public SharePrice(String [] shares) throws Exception
getShare(shares);
//returns a double array containing share data of each share as a seperate row in the array
public String [][] getShare(String [] sh) throws Exception
for(int i=0; i<sh.length; i++)
//if the entry is null we have reached the end of the array
if(sh!=null)
String share = sh[i];
//part of url of the resource
String address ="http://uk.finance.yahoo.com/d/quotes.csv?s=";
//adds the share tothe url so that particular shares data is retieved
address = address+share;
System.out.println(address);
try
//connection is created to the resource and input stream opened to read data
URL url = new URL(address);
BufferedReader in = new BufferedReader(
new InputStreamReader(
url.openStream()));
line = in.readLine();
in.close();
}catch(Exception e){System.err.println("Exception: " + e.getMessage());
e.printStackTrace();}
//the line of data retrieved is spli and placed in a single row of the array
//beause the each piece of data is seperated by commas it is easily seperated.
StringTokenizer t = new StringTokenizer(line, ",");
int count = t.countTokens();
System.out.println(" count= "+count);
while(t.hasMoreTokens())
for(int j=0; j<count; j++)
String s = t.nextToken();
shareData[i][j] = s;
return shareData; -
How to Compare 2 CSV file and store the result to 3rd csv file using PowerShell script?
I want to do the below task using powershell script only.
I have 2 csv files and I want to compare those two files and I want to store the comparision result to 3rd csv file. Please look at the follwingsnap:
This image is csv file only.
Could you please any one help me.
Thanks in advance.
By
A Path finder
JoSwa
If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful"
Best Online JournalNot certain this is what you're after, but this :
#import the contents of both csv files
$dbexcel=import-csv c:\dbexcel.csv
$liveexcel=import-csv C:\liveexcel.csv
#prepare the output csv and create the headers
$outputexcel="c:\outputexcel.csv"
$outputline="Name,Connection Status,Version,DbExcel,LiveExcel"
$outputline | out-file $outputexcel
#Loop through each record based on the number of records (assuming equal number in both files)
for ($i=0; $i -le $dbexcel.Length-1;$i++)
# Assign the yes / null values to equal the word equivalent
if ($dbexcel.isavail[$i] -eq "yes") {$dbavail="Available"} else {$dbavail="Unavailable"}
if ($liveexcel.isavail[$i] -eq "yes") {$liveavail="Available"} else {$liveavail="Unavailable"}
#create the live of csv content from the two input csv files
$outputline=$dbexcel.name[$i] + "," + $liveexcel.'connection status'[$i] + "," + $dbexcel.version[$i] + "," + $dbavail + "," + $liveavail
#output that line to the csv file
$outputline | out-file $outputexcel -Append
should do what you're looking for, or give you enough to edit it to your exact need.
I've assumed that the dbexcel.csv and liveexcel.csv files live in the root of c:\ for this, that they include the header information, and that the outputexcel.csv file will be saved to the same place (including headers). -
Is there a way to select a certain box of elements from a csv file and read that into LabVIEW?
Hello all, I was wondering if there was a way to select only a certain "box" of elements from a .csv file in LabVIEW? I have LabVIEW 2011 and my main goal is to take two arrays and graph them against each other. I can import the .csv file just fine and separate each row and each column to be its own, but say I have an 8X8 but want to graph the middle 4X5 or something like that. Is there any way to extract an array without starting at the beginning and without ending at the end? Thank you in advance.
Solved!
Go to Solution.Hi Szklanam,
as a CSV file is just a TXT file with a different suffix you can read a certain number of lines of that file. So you can limit the number of rows in your resultung array. To limit the number of columns you still have to use ArraySubset, so maybe it's a lot easier to read the full CSV file and pick the interesting spots with ArraySubset...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
How to configure sync rules involving a CSV file and portal self service
Hello,
I need to configure some FIM sync rules for the following scenario:
User account details are entered from a HR CSV file and exported to AD Users have the ability to modify their own AD attributes in the
FIM portal (there is not a requirement for them to view their HR CSV data in the portal). The FIM portal modifications will be exported to AD as expected.
My setup is as follows:
CSV file - name, last name, employee ID, address.
CSV MA - has direct attribute flows configured in the MA between the data source and MV Portal self service attributes –
users can edit mobile, display name and photo
I've also set the CSV MA as precedent for the attributes
FIM MA – attribute flows defined for MV to Data Source as usual (i.e. firstname to firstname, accountname to accountname, etc).
AD MA – no attribute flows defined as inbound and outbound sync rules have been configured in the portal using the Set\MPR\Triple.
I’m thinking of using the following run profiles:
CSV MA – full import and delta sync (imports HR data)
FIM MA – export and delta import (imports portal changes)
FIM MA – delta sync (syncs any portal changes)
AD MA – export and delta import
If my understanding is correct this should sync HR data from CSV to AD, as well as user attribute self service updates from the portal to AD.
If I wanted to just do a HR CSV sync could I get away with just steps 1 & 4 ? (presumably not as my rules are in the FIM portal?)
If I wanted to do just a portal sync, could I get away steps 2-4?
Any advice on how to improve my setup is much appreciated - cheers
IT Support/EverythingThe truth is that your design should be done in the way that it doesn't matter which profiles in which order you will execute. At the end, if you will run all import, synch and export profiles on each data source you should get same result. This is beauty
of synch engine here.
Your steps from 1-4 will synch data to your data sources and at the end will give you expected result. But not because of the order you are executing them but because of correct attribute flows. If flows from CSV file and from FIM portal might be done for
the same attributes you need to think also about attribute precedence.
Tomek Onyszko, memberOf Predica FIM Team (http://www.predica.pl), IdAM knowledge provider @ http://blog.predica.pl -
Loop through a csv file and return the number of rows in it?
What would be simplest way to loop through a csv file and
return the number of rows in it?
<cffile action="read" file="#filename#" output="#csvstr#"
>
<LOOP THROUGH AND COUNT ROWS>ListLen(). Use chr(13) as your delimiter
-
Loading a CSV file and accessing the variables
Hi guys,
I'm new to AS3 and dealt with AS2 before (just getting the grasp when the change it).
Is it possible in AS3 to load an excel .csv file into Flash using the URLLoader (or ???) and the data as variables?
I can get the .csv to load and trace the values (cell1,cell2,cell3....) but I'm not sure how to collect the data and place it into variables.
Can I just create an array and access it like so.... myArray[0], myArray[1]? If so, I'm not sure why it's not working.
I must be on the completely wrong path. Here's what I have so far....
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, dataLoaded);
var request:URLRequest = new URLRequest("population.csv");
loader.load(request);
function dataLoaded(evt:Event):void {
var myData:Array = new Array(loader.data);
trace(myData[i]);
Thanks for any help,
Skyjust load your csv file and use the flash string methods to allocate those values to an array:
var myDate:Array = loader.data.split(","); -
VBScript to read the content of a .csv file and delete old files mentioned in the .csv
I have a Windows 2003 file server.
I have generated a report in .csv format, about the files which are older than 1 year.
I need a VBScript to read the .csv file and delete the files which are enlisted there.
Can someone please help me with this?Look into the "Learn" link above. There are resources and instructions on how to write VBScript code. Look into how to use the FileSystemObject.
¯\_(ツ)_/¯ -
Read from csv file and plot particular columns
Hello,
I`m a new user of Labview and here it comes...my first major problem.
Maybe this has been discussed before. I’ve made a search to solve my problem first but I couldn`t find anything helpful so I `ve decided to post a new message.
So here is my problem:
I`m working in a small semiconductor lab where different types of nitrides are grown using proprietary reactor. The goal is to read the collected csv files from each growth in Labview and plot the acquired data in appropriate graphs.
I have a bunch of csv files and I have to make a Labview program to read them.
The first part of my project I`ve decided to be displaying the csv file (growth log file) under labview (which I think works fine).
The second one is to be able to plot particular columns from the recipe in graphs in Labview (that one actually gives me a lot of trouble):
1. Timestamp vs Temperature /columns B and D/
2. Timestamp vs Gas flow /columns L to S/
3. Timestamp vs Pressure /columns E,K,T,U,V/
I`ve got one more problem. How can I convert the Timestamp shown in csv file to human readable date in labview? This actually is a big problem, because the timestamp is my x axis and I want to know at what time a particular process took place and I also want to be able to see the converted timestamp when displaying csv file at first. I`ve read a lot about time stamping in excel and timestamp in labview but I`m still confused how to convert it in my case.
I don`t have problems displaying csv file under Labview. My problems are with the timestamp and the graphs.
Sorry for my awful English. I hope you can understand my problems since English is not my mother language.
Please find the attached files.
If you have any ideas or suggestions I`ll be more than happy to discuss them.
Thank you in advance.
Have a nice day!
Attachments:
growth log.csv 298 KB
Read from growth log.vi 33 KBHello again,
I`m having problems with converting the first column in the attached above file Growth Log.csv.
I have a code converting xl timestamp to time and using Index Array traying to grab a particular column out of it but the attached file is written in strings so I guess I have to redo it in array but I don`t know how.Would you help me with this one?
Attachments:
Xl Timestamp to Time.vi 21 KB -
need to run through a list of old to new data (.csv) file and change them in a sharepoint list - can not make it work
here is my base attempt.
$web = Get-SPWeb site url
$list = $web.lists["List Name"]
$item = $list.items.getitembyid(select from the items.csv old)
$modifiedBy = $item["Editor"]
#Editor is the internal name of the Modified By column
$item["old"] = "new from the .csv file parsed by power sehll
$ite.Syste,Update($false);
$web.Dispose()Hi,
According to your description, my understanding is that you want to update SharePoint field value from a CSV file recursively.
We can import CSV file using the Import-CSV –path command, then update the field value in the foreach loop.
Here is a code snippet for your reference:
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$csvVariable= Import-CSV -path "http://sp2010.contoso.com/finance/"
# Destination site collection
$WebURL = "http://sp2010.contoso.com/sites/Utility/"
# Destination list name
$listName = "Inventory"
#Get the SPWeb object and save it to a variable
$web = Get-SPWeb -identity $WebURL
#Get the SPList object to retrieve the list
$list = $web.Lists[$listName]
#Get all items in this list and save them to a variable
$items = $list.items
#loop through csv file
foreach($row in $csvVariable)
#loop through SharePoint list
foreach($item in $items)
$item["ID #"]=$row."ID #"
$item.Update()
$web.Dispose()
Here are some detailed articles for your reference:
http://blogs.technet.com/b/stuffstevesays/archive/2013/06/07/populating-a-sharepoint-list-using-powershell.aspx
http://social.technet.microsoft.com/wiki/contents/articles/25125.sharepoint-2013-powershell-to-copy-or-update-list-items-across-sharepoint-sites-and-farms.aspx
Thanks
Best Regards
Jerry Guo
TechNet Community Support -
Read a csv file and read the fiscal yr in the 4th pos?
Hello ABAP Experts,
how to write a code for read a csv file and read the fiscal year in the 4th position.
any suggestions or code highly appreciated.
Thanks,
BWerHi Bwer,
Declare table itab with the required fields...
Use GUI UPLOAD to get the contents of the file (say abc.csv) in case if the file is on the presentation server...
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'c:\abc.csv'
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
tables
data_tab = itab
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Use OPEN DATASET in case if the file is on the application server..
After that USE SPLIT command at comma to get the contents of the 4th field...
Regards,
Tanveer.
<b>Please mark helpful answers</b> -
Use .CSV files to UPDATE
Hi,
I have a requirement to process .CSV files and use the info to UPDATE an existing table. One line from the file matches a row in the existing table by an unique key. There is no need to keep the data from the .CSV files after.
I was planning to use a temporary table with an INSERT trigger that will perform the UPDATE, with ON COMMIT DELETE ROWS, and have sqlldr load the data in this temporary table.
But I found out that sqlldr cannot load into temporary tables (SQL*Loader-280).
What would be other options? The .CSV files are retrieved periodically (every 15 min), have all the same structure, their number can vary, and their filename is unique.
Thank you in advance.SQL*Loader-280 "table %s is a temporary table"
*Cause: The sqlldr utility does not load temporary tables. Note that if sqlldr did allow loading of temporary tables, the data would
disappear after the load completed.
*Action: Load the data into a non-temporary table. Can't you load data into non-temporary table and drop after update? -
// Code Help need .. in Reading CSV file and display the Output.
Hi All,
I am a new Bee in code and started learning code, I have stared with Console application and need your advice and suggestion.
I want to write a code which read the input from the CSV file and display the output in console application combination of first name and lastname append with the name of the collage in village
The example of CSV file is
Firstname,LastName
Happy,Coding
Learn,C#
I want to display the output as
HappyCodingXYZCollage
LearnC#XYXCollage
The below is the code I have tried so far.
// .Reading a CSV
var reader = new StreamReader(File.OpenRead(@"D:\Users\RajaVill\Desktop\C#\input.csv"));
List<string> listA = new List<string>();
while (!reader.EndOfStream)
var line = reader.ReadLine();
string[] values = line.Split(',');
listA.Add(values[0]);
listA.Add(values[1]);
listA.Add(values[2]);
// listB.Add(values[1]);
foreach (string str in listA)
//StreamWriter writer = new StreamWriter(File.OpenWrite(@"D:\\suman.txt"));
Console.WriteLine("the value is {0}", str);
Console.ReadLine();
Kindly advice and let me know, How to read the column header of the CSV file. so I can apply my logic the display combination of firstname,lastname and name of the collage
Best Regards,
Raja Village Sync
Beginer CoderVery simple example:
var column1 = new List<string>();
var column2 = new List<string>();
using (var rd = new StreamReader("filename.csv"))
while (!rd.EndOfStream)
var splits = rd.ReadLine().Split(';');
column1.Add(splits[0]);
column2.Add(splits[1]);
// print column1
Console.WriteLine("Column 1:");
foreach (var element in column1)
Console.WriteLine(element);
// print column2
Console.WriteLine("Column 2:");
foreach (var element in column2)
Console.WriteLine(element);
Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP] -
Importing CSV file and parsing it
First of all I am very new to writing powershell code. Therefore, my question could be very rudimentary, but I cannot find an answer, so please help.
I'm trying to read a CSV file and parse it. I cannot figure out how to access nth element without hardcoding its name.
$data = Import-Csv $file #import CSV file
# read column headers (manually read the first row of the data file, or import it from other source, or ...)
$file_dump = Get-Content $file #OK, I'm sure there is another way to get just the first line, but that's not relevant
$name_list = $file_dump[0].split(",")
# access element
$temp = $data[$i].Name # works - but that's HARDCODING the column name into the script - what if someone changes it?
#but what I want to do is
$temp = $data[$i].$name_list[0]
How do I do this in PowerShell?So you're asking how to get the first data point from the first column, no matter what the header is?
Why won't you know what your input file looks like?
You can always drop the first line of the file to remove the existing headers and then use the -Header parameter of Import-Csv to give yourself known headers to reference (this will only work if you know how many columns to expect, etc etc etc).
http://ss64.com/ps/import-csv.html
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
Hello! In our project we discussing about possibility to use CSV-files to transfer information.
Can I use CSV in PI ?Hi,
Yes you can. Use File adapter to read and do a file content conversion on it. By doing it the CSV format will be converted to XML format in PI
Lot of weblgs are available on this
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/sundararamaprasad.subbaraman/blog/2005/12/09/making-csv-file-lookup-possible-in-sap-xi
/people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
/people/swaroopa.vishwanath/blog/2005/06/24/generic-approach-for-validating-incoming-flat-file-in-sap-xi--part-1
Regards
Suraj
Edited by: S.R.Suraj on Sep 30, 2009 9:18 AM
Maybe you are looking for
-
IPhone 5 storage with iOS 8 fluctuating; video does not show in manage storage
Hi, I'm about to go on a long trip and the iPhone's local storage keeps fluctuating, from the 500MB to the 0MB range. I upgraded to iOS 8 yesterday via iTunes and there were 2.7GB left of storage. I checked all apps and when going to the Video App, t
-
Table loading with empty selected row
hi i have below table ,when the page load it has empty row created, i what it to show that message emptyText=No data to Display when the page load,the table was created based on the bean,am in jdeveloper 11.1.1.6.0,i don't what to use #{!adfFacesCont
-
hi everyone, can anyone help me on how to read what the user inputs from the keyboard when running a program in command-line(ms-dos prompt)interface.Does it have something to do with System.in any help would be appreciated. (Example) System.out.print
-
I Know this isn't an optical drive question but HELP plz.
So I was in blender and i hit cmd + fn + one of the F#'s and I turned on this REALLY annoying voice over for everything I do. I searched system prefs but couldnt find anything, what can I do to shut this guy off?
-
Trex search not working for not english documents
Hello, I've got a problem enabling full text search for russian documents For enabling full text search for documents stored in kPro theese steps were performed: - creating rfc connection with TREX instance - enabling Index Release and Classify in tr