Powershell Exception Message

126 views
Skip to first unread message

Robert Caretta

unread,
Jun 9, 2016, 3:01:19 PM6/9/16
to Google Apps Manager
Has anyone else run into this? If so, how did you resolve it?  

When I run the this GAM command inside of powershell it appears to download the CSV file data fine, but I get this exception message.
&"C:\GAM\gam.exe" print users > C:\GAM\reports\users.csv


gam.exe : Getting all users in Google Apps account (may take some time on a large account)...
At line:17 char:1
+ &"C:\GAM\gam.exe" print users > C:\GAM\reports\users.csv
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Getting all use...rge account)...:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

Robert Caretta

unread,
Jun 9, 2016, 3:37:42 PM6/9/16
to Google Apps Manager
I tried both of these and neither worked either. Same error.

$aliasCmd = 'C:\GAM\gam.exe print aliases > C:\GAM\reports\aliases.csv'

Invoke-Expression -Command $aliasCmd > $null

Invoke-Expression -Command $aliasCmd | Out-Null

Les LaCroix

unread,
Jun 11, 2016, 3:33:36 PM6/11/16
to Google Apps Manager
We've only been using GAM less than a year, but that seems to be just the way it works.


On Thursday, June 9, 2016 at 2:01:19 PM UTC-5, Robert Caretta wrote:
Reply all
Reply to author
Forward
0 new messages