GAM
GAM – Add-ClassroomTeacherToStudentsClasses
Function to add a teacher as a co-teacher to all classrooms of a given student. Usage AD Objects with the SamAccountName parameter can also be piped to this function
Function to add a teacher as a co-teacher to all classrooms of a given student. Usage AD Objects with the SamAccountName parameter can also be piped to this function
A quick powershell function to use Robocopy to delete a full directory. Deleting folders using Robocopy is a quicker, more robust method of deleting directories. It can also deal with the ‘path too long’ issue encountered by File Explorer’s directory deletion. Usage
Looking at moving away from purchased certificate towards free Let’s Encrypt generated certificates, Lansweeper posed a bit of an issue when using ISS Express Following Lansweeper’s SSL instructions to automate the process, a certificate would need to be generated, installed and then it’s thumbprint added to a config file. The Read more…
When creating an OU in AD, ticking the Protect from Accidental Deletion box seems like a good idea. Until you go to delete the OU. Even more so if you have multiple nested OUs and just want to delete the top level one. Powershell to the rescue! We can use Read more…
Fairly niche one this one. Needed to hide all the users in a specific AD OU from the Google Workspace’s Global Address List Powershell to the rescue. Pulling through all the users in a specific searchbase and iterating through them with the GAM gal off command. The script pulls the accounts Read more…
For out students, we want a single image for their GSuite profile photos. Sadly there isn’t a way of preventing users from changing their photo, so we have to run a script regularly to remove any changes they may have made. #- Address of the group -# $groupAddress = “[email protected]” #- Read more…
Had a need to add all the users from a GSuite group as editors on a Google Calendar. The script reads and outputs the current ACLs, gets the members of the group and then adds them to the calendar giving them the appropriate permissions. At the end, it outputs the Read more…
We occasionally need to make a note of the groups a user is a member of. If they’re going on maternity leave, for example. This script does require the Active Directory Module For Windows PowerShell. $user = “username” Get-ADPrincipalGroupMembership $user | select name