STtools
1.2.3
Tools for school system admins. Currently setting groups based on arbitrary CSV files is implemented.
Examples:
# Year level groups for students
# Students are assigned to groups according to their year level based n their SCHOOL_YEAR in CASES
# eg. Year7, Year8, ...
Get-STGroupsFromCSV -csvfile "\\path\to$\STUDENT.csv" -prefix "Year" -username_header "STKEY
Examples:
# Year level groups for students
# Students are assigned to groups according to their year level based n their SCHOOL_YEAR in CASES
# eg. Year7, Year8, ...
Get-STGroupsFromCSV -csvfile "\\path\to$\STUDENT.csv" -prefix "Year" -username_header "STKEY
Tools for school system admins. Currently setting groups based on arbitrary CSV files is implemented.
Examples:
# Year level groups for students
# Students are assigned to groups according to their year level based n their SCHOOL_YEAR in CASES
# eg. Year7, Year8, ...
Get-STGroupsFromCSV -csvfile "\\path\to$\STUDENT.csv" -prefix "Year" -username_header "STKEY" -group_header "SCHOOL_YEAR" -stripzeros -filter {$_.STATUS -eq "ACTV"} |ForEach-Object {
Remove-ADGroupMember -Identity $_.Identity -Members $_.NonMembers -Confirm:$false -PassThru
Add-ADGroupMember -Identity $_.Identity -Members $_.Members -Confirm:$false -PassThru
}
# Year level groups for staff
# Staff are assigned to groups according to the year levels of classes in their timetabler
# eg. 7teachers, 8teachers ...
Get-STGroupsFromCSV -csvfile "\\path\to\classes\taught.csv" -username_header "Teacher Code" -group_header "Roll Class Code" -postfix teachers -onlynumbers |ForEach-Object {
Remove-ADGroupMember -Identity $_.Identity -Members $_.NonMembers -Confirm:$false -PassThru
Add-ADGroupMember -Identity $_.Identity -Members $_.Members -Confirm:$false -PassThru
}
# Staff group
# Staff are assigned to the Staff group according to them being active in CASES
Get-STGroupsFromCSV -csvfile "\\path\to\file\with\staff.csv" -username_header "SFKEY" -group_name "Staff" -filter {$_.STAFF_STATUS -eq "ACTV"} |ForEach-Object {
Remove-ADGroupMember -Identity $_.Identity -Members $_.NonMembers -Confirm:$false -PassThru
Add-ADGroupMember -Identity $_.Identity -Members $_.Members -Confirm:$false -PassThru
}
# Class groups for students
# Students are assigned to groups according to classes they have in timetabler
# eg. 07ENG1, 08ENG3, ...
Get-STGroupsFromCSV -csvfile "\\path\to\file\with\classes.csv" -username_header "Student Code" -group_header "Class Code" |ForEach-Object {
Remove-ADGroupMember -Identity $_.Identity -Members $_.NonMembers -Confirm:$false -PassThru
Add-ADGroupMember -Identity $_.Identity -Members $_.Members -Confirm:$false -PassThru
}
Show more
Examples:
# Year level groups for students
# Students are assigned to groups according to their year level based n their SCHOOL_YEAR in CASES
# eg. Year7, Year8, ...
Get-STGroupsFromCSV -csvfile "\\path\to$\STUDENT.csv" -prefix "Year" -username_header "STKEY" -group_header "SCHOOL_YEAR" -stripzeros -filter {$_.STATUS -eq "ACTV"} |ForEach-Object {
Remove-ADGroupMember -Identity $_.Identity -Members $_.NonMembers -Confirm:$false -PassThru
Add-ADGroupMember -Identity $_.Identity -Members $_.Members -Confirm:$false -PassThru
}
# Year level groups for staff
# Staff are assigned to groups according to the year levels of classes in their timetabler
# eg. 7teachers, 8teachers ...
Get-STGroupsFromCSV -csvfile "\\path\to\classes\taught.csv" -username_header "Teacher Code" -group_header "Roll Class Code" -postfix teachers -onlynumbers |ForEach-Object {
Remove-ADGroupMember -Identity $_.Identity -Members $_.NonMembers -Confirm:$false -PassThru
Add-ADGroupMember -Identity $_.Identity -Members $_.Members -Confirm:$false -PassThru
}
# Staff group
# Staff are assigned to the Staff group according to them being active in CASES
Get-STGroupsFromCSV -csvfile "\\path\to\file\with\staff.csv" -username_header "SFKEY" -group_name "Staff" -filter {$_.STAFF_STATUS -eq "ACTV"} |ForEach-Object {
Remove-ADGroupMember -Identity $_.Identity -Members $_.NonMembers -Confirm:$false -PassThru
Add-ADGroupMember -Identity $_.Identity -Members $_.Members -Confirm:$false -PassThru
}
# Class groups for students
# Students are assigned to groups according to classes they have in timetabler
# eg. 07ENG1, 08ENG3, ...
Get-STGroupsFromCSV -csvfile "\\path\to\file\with\classes.csv" -username_header "Student Code" -group_header "Class Code" |ForEach-Object {
Remove-ADGroupMember -Identity $_.Identity -Members $_.NonMembers -Confirm:$false -PassThru
Add-ADGroupMember -Identity $_.Identity -Members $_.Members -Confirm:$false -PassThru
}
Installation Options
Owners
Copyright
(c) 2018 Eric van de Paverd. All rights reserved.
Package Details
Author(s)
- Eric van de Paverd
Functions
Get-STGroupsFromCSV Set-STOrganizationalUnit New-STUser Set-STUser ConvertFrom-STEduHubST ConvertFrom-STEduHubSF
Dependencies
This module has no dependencies.
FileList
- STtools.nuspec
- STtools.format.ps1xml
- STtools.psd1
- STtools.psm1
Version History
Version | Downloads | Last updated |
---|---|---|
1.3.2 | 327 | 11/21/2019 |
1.3.1 | 76 | 5/6/2019 |
1.3.0 | 43 | 2/11/2019 |
1.2.14 | 24 | 2/4/2019 |
1.2.13 | 18 | 2/4/2019 |
1.2.12 | 18 | 1/30/2019 |
1.2.11 | 53 | 10/1/2018 |
1.2.10 | 29 | 9/10/2018 |
1.2.9 | 21 | 9/10/2018 |
1.2.8 | 26 | 8/31/2018 |
1.2.7 | 28 | 8/17/2018 |
1.2.6 | 21 | 8/13/2018 |
1.2.5 | 22 | 7/30/2018 |
1.2.4 | 19 | 7/30/2018 |
1.2.3 (current version) | 24 | 7/19/2018 |
1.2.2 | 18 | 7/16/2018 |
1.2.1 | 39 | 3/26/2018 |
1.2 | 19 | 3/19/2018 |
1.1 | 17 | 3/19/2018 |
1.0 | 32 | 2/19/2018 |