Educational ICT Virtualisation Specialist

Twitter LinkedIn E-mail
Precedence Technologies Ltd
Technology House, 36a Union Lane
Cambridge, CB4 1QB, United Kingdom
T: +44 (0)1223 359900
E: sales@precedence.co.uk
Linton-StudentsJoining

Jump to CustomersLinton > Linton > StudentsJoining

Students joining

Making the user

  1. Logon to homeareas server as administrator
  2. Run the Add Student shortcut
  3. Enter username
  4. Enter first name
  5. Enter surname
  6. Confirm real name
  7. Enter group (just the intake year, e.g. 2017)
  8. Check home folder permissions match (if not correct, repeat the above steps)
  9. 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
  10. 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)
        }
    }

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.

© Copyright Precedence Technologies 1999-2025
Page last modified on April 07, 2022, at 11:39 AM by mwillcock