gam update cros "query:orgunitpath:/Students/2nd graders" ou "/Students/3rd graders"
Ross
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/be011aa8-082b-48a0-bf5d-884a08d9113c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Travis,gam update cros "query:orgunitpath:/Students/2nd graders" ou "/Students/3rd graders"
Ross
On Thu, May 17, 2018 at 11:20 AM Travis Epperson <tra...@cobleschool.com> wrote:
I track Chrome OS devices by class room and would like a single line bulk update to move all Chrome OS devices from one OU to another.--Something like i'm using for students (gam org "/Students/2nd graders" update user org "/Students/3rd graders")I was thinking about something like (gam org "/Students/2nd graders" update cros org "/Students/3rd graders"), but of course that doesn't work since org defaults to users.
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/be011aa8-082b-48a0-bf5d-884a08d9113c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Ross Scroggs
That worked perfectly!!!Thanks!
I'm still struggling on the Syntax for GAM... Is there any reference for the query:orgunitpath our there? Seems like a very useful syntax to understand.
On Thursday, May 17, 2018 at 4:04:09 PM UTC-4, Ross Scroggs wrote:
Travis,gam update cros "query:orgunitpath:/Students/2nd graders" ou "/Students/3rd graders"
Ross
On Thu, May 17, 2018 at 11:20 AM Travis Epperson <tra...@cobleschool.com> wrote:
I track Chrome OS devices by class room and would like a single line bulk update to move all Chrome OS devices from one OU to another.--Something like i'm using for students (gam org "/Students/2nd graders" update user org "/Students/3rd graders")I was thinking about something like (gam org "/Students/2nd graders" update cros org "/Students/3rd graders"), but of course that doesn't work since org defaults to users.
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/be011aa8-082b-48a0-bf5d-884a08d9113c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----Ross Scroggs
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/ec175d38-9180-4baf-986b-4df4c9626448%40googlegroups.com.
Op do 17 mei 2018 om 22:28 schreef Travis Epperson <tra...@cobleschool.com>:
That worked perfectly!!!Thanks!
I'm still struggling on the Syntax for GAM... Is there any reference for the query:orgunitpath our there? Seems like a very useful syntax to understand.
On Thursday, May 17, 2018 at 4:04:09 PM UTC-4, Ross Scroggs wrote:
Travis,gam update cros "query:orgunitpath:/Students/2nd graders" ou "/Students/3rd graders"
Ross
On Thu, May 17, 2018 at 11:20 AM Travis Epperson <tra...@cobleschool.com> wrote:
I track Chrome OS devices by class room and would like a single line bulk update to move all Chrome OS devices from one OU to another.--Something like i'm using for students (gam org "/Students/2nd graders" update user org "/Students/3rd graders")I was thinking about something like (gam org "/Students/2nd graders" update cros org "/Students/3rd graders"), but of course that doesn't work since org defaults to users.
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/be011aa8-082b-48a0-bf5d-884a08d9113c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Ross Scroggs
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/cf33a0c5-4557-4c59-933e-c23f87455586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/0fe7de00-19df-4af4-ab81-66d3ca9e613c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Travis,gam update cros "query:orgunitpath:/Students/2nd graders" ou "/Students/3rd graders"
Ross
On Thu, May 17, 2018 at 11:20 AM Travis Epperson <tra...@cobleschool.com> wrote:
I track Chrome OS devices by class room and would like a single line bulk update to move all Chrome OS devices from one OU to another.--Something like i'm using for students (gam org "/Students/2nd graders" update user org "/Students/3rd graders")I was thinking about something like (gam org "/Students/2nd graders" update cros org "/Students/3rd graders"), but of course that doesn't work since org defaults to users.
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/be011aa8-082b-48a0-bf5d-884a08d9113c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Ross Scroggs
<#> | |
Move all devices from one OU to another using start and end OUs defined in a separate TXT file | |
Example csv txt file | |
StartOU,EndOU | |
"/Testing","/chrome devices/IT Deptmartment/Extras" | |
</#> | |
$CSV = "C:\test\UserCrosDevices\SwapDeviceOU.txt" | |
$Data = Import-Csv $CSV | |
foreach($Line in $Data) { | |
$StartOU = $Line.StartOU | |
$EndOU = $Line.EndOU | |
$Devices = gam print cros limittoou "$StartOU" | Select -Skip 1 | |
foreach($DeviceID in $Devices) { | |
gam update cros $DeviceID ou "$EndOU" | |
} | |
} |
You can replace this:
$Devices = gam print cros limittoou "$StartOU" | Select -Skip 1
foreach($DeviceID in $Devices) {
gam update cros $DeviceID ou "$EndOU"
}
with this:
gam update cros "query:orgunitpath:$StartOU" ou "$EndOU"
Ross
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/b2e24168-b3a8-4d56-a56e-ff9193ed3077%40googlegroups.com.