【问题标题】:How run GoogleAppsManager via powershell如何通过 powershell 运行 GoogleAppsManager
【发布时间】:2013-02-24 11:54:02
【问题描述】:

我正在使用 powershell 来加载 .csv 文件并执行 Google Apps Manager 命令。

代码:

$list = Import-Csv usuarios.csv
foreach ($entry in $list)
{
    .\gam.exe create user $($entry.emailaddress) firstname $($entry.FirstName) lastname $($entry.LastName) password $($entry.Password)
}

我遇到了这个问题:

Google Apps Manager 2.55 jay@ditoweb.com (Jay Lee) Python 2.7.3 32 位最终版 Windows-XP-5.1.2600-SP3 x86

用法:gam [选项]...

Google Apps 管理器。检索或设置 Google Apps 域、用户、组和别名设置。可以在以下位置找到完整的命令列表:http://code.google.com/p/google-apps-manager/wiki

示例:gam info domain gam create user jsmith firstname John lastname Smith password secretpass gam update user jsmith paused on gam.exe update group notices add member jsmith ...

我已经搜索过了,没有找到任何参考。

谢谢。

【问题讨论】:

    标签: powershell google-apps


    【解决方案1】:

    我发现了问题

    正确代码:

    $list = Import-Csv usuarios.csv
    foreach ($entry in $list)
    {  
       .\gam.exe create user $entry.username firstname $entry.firstname lastname $entry.lastname password $entry.password
    }
    

    谢谢。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-19
      • 1970-01-01
      • 2022-11-25
      • 2016-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多