Hi, I am new to powershell and I am looking download all user to a csv file so I can upload it to my database. I have figured out how to upload data from csv files to game but not the other way. I must be missing something simple. Any suggestions would be much appreciated and I thank you in advance.
This is the code I used to move accounts to a different ou
$list = Import-Csv "\\rdat.rsssd.internal\F$\Exports\Google\Student Accounts\studentaccounts.csv"
foreach ($entry in $list)
{
C:\Tools\gam-RCssKIDS\gam.exe update org $($entry.neworg) add user $($entry.newuser)
}
Start-Sleep -s 10
I have been using this command to get the data I need gam print users allfields >allgoogle.csv
I thought I would do something like this and I would like the file to reside in the same directory as above files Export-Csv "\\rdat.rsssd.internal\F$\Exports\Google\Student Accounts\studentaccounts.csv"
{
C:\Tools\gam-RCssKIDS\gam.exe print users allfields >allgoogle.csv
}
Start-Sleep -s 10