Linton-StudentsJoining
Jump to CustomersLinton > Linton > StudentsJoining
Students joining
Making the user
- Logon to homeareas server as administrator
- Run the
Add Student
shortcut - Enter username
- Enter first name
- Enter surname
- Confirm real name
- Enter group (just the intake year, e.g. 2017)
- Check home folder permissions match (if not correct, repeat the above steps)
- Check user
- First name
- Last name
- Display name
- Email address is <USERNAME>@lvc.org
- Profile path is \\homeareas\profiles$\workstation
- RDS profile path is \\homeareas\profiles$\termserv
- Logon script is kix32 logon.kix
- Connect is L: to \\HOMEAREAS\Students$\<GROUP>\<USERNAME>
- Member Of
- <GROUP>
- Domain Users
- Force Office365 sync (should also apply a licence based on group membership). This command can be run on any server.
Invoke-Command -ComputerName AADC -ScriptBlock { Import-Module ADSync; Start-ADSyncSyncCycle -PolicyType Delta }
Set the EmployeeNumber in AD
- This is a confidential AD attribute that is used to match an AD user to the SIMS record
- It is used as part of the user account sync for Oliver (scripts generate a CSV with this as one of the fields)
Find the Admission Number in SIMS

Set the attribute in AD
- Use quotes around the actual number to preserve the leading zeros
Set-ADUser <USERNAME> -EmployeeNumber "00xxxx"
You will need to run this command on a computer that has AD installed or the RSAT tools.
Finding missing values
- Any user which is listed won't have the EmployeeNumber set and so should also be listed as disabled
Get-ADUser -SearchBase "OU=Students,OU=User Accounts,DC=linton,DC=internal" -Filter "EmployeeNumber -NotLike '*' -And (SamAccountName -Like '1*' -Or SamAccountName -Like '2*')" | Select SamAccountname,Name,Enabled
Finding duplicate values
$lookup = @{}
Get-ADUser `
-SearchBase "OU=Students,OU=User Accounts,DC=linton,DC=internal" `
-Filter "SamAccountName -Like '1*' -Or SamAccountName -Like '2*'" `
-Properties EmployeeNumber | % {
if (!$_.EmployeeNumber)
{
Write-Host ("Missing EmployeeNumber for user '{0}'" -f $_.SamAccountName)
}
elseif ($lookup.Contains($_.EmployeeNumber))
{
Write-Host ("Duplicate EmployeeNumber '{0}' (users '{1}' and '{2}')" `
-f $_.EmployeeNumber, $lookup.Item($_.EmployeeNumber), $_.SamAccountName)
}
else
{
$lookup.Add($_.EmployeeNumber, $_.SamAccountName)
}
}
Get-ADUser `
-SearchBase "OU=Students,OU=User Accounts,DC=linton,DC=internal" `
-Filter "SamAccountName -Like '1*' -Or SamAccountName -Like '2*'" `
-Properties EmployeeNumber | % {
if (!$_.EmployeeNumber)
{
Write-Host ("Missing EmployeeNumber for user '{0}'" -f $_.SamAccountName)
}
elseif ($lookup.Contains($_.EmployeeNumber))
{
Write-Host ("Duplicate EmployeeNumber '{0}' (users '{1}' and '{2}')" `
-f $_.EmployeeNumber, $lookup.Item($_.EmployeeNumber), $_.SamAccountName)
}
else
{
$lookup.Add($_.EmployeeNumber, $_.SamAccountName)
}
}
Notify Reception
Once user has been set up, email the full name and email address to 'reception@lvc.org' so they can set them up in Show My Homework.