Skip to main content

OAL - Tools and Scripts

The application is a series of tools used by OAL for automating processes through Scheduled Tasks. This is an update to what was is in the C:\Program Files\OAL folder on OAL devices. This package is mainly used for Intune, but a specific version is used in the AUTH Task Sequence.

Unlike the AUTH deployment, this package combines both the deployment of the files and the deployment of the associated Scheduled Tasks. This also contains of all the shortcut icons used for the virtualized apps.

For some reason, Intune is unable to copy directly to the C:\Program Files folder, so all the files are copied to C:\ProgramData.

Important Note

The current AUTH Task Sequence is deploying an older version than what is being deployed through Intune. This is on purpose. That version is only deploying the Files and only creating the OAL - Background Stamp Scheduled Task to be called later in the Task. This is to not interfere with the current Scheduled Task being deployed through GPO.

Table of Contents

Tools

These are the tools used by OAL for automating processes.

NameScheduled TaskDescription
Background StampOAL - Background StampCreates and updates the lockscreen background.
CheckForFlashDriveNAAt logoff, this prompts the user if they have a removable drive left plugged in
ProfileCleanupOAL - Profile CleanupCleans up the user profile
LogitNAOlder version of logit2.
Logit2OAL - Logit at LogoffUpdates Workstation Status on when the users logs off. This tools is also used at log on configured through a policy.
idlelogoffOAL - Idle LogoffLogs off the user when they have been idle for a set time
nircmdNA

Scripts

These are the scripts used by OAL for automating processes.

NameScheduled TaskDescription
Get-IPAddress.ps1OAL - Get IP AddressGet the current IP to be placed in the Network of HKLM:\Software\LSS in the Registry. This value is then collected by Workstation Status
Get-OALEnviromentVariables.ps1NAGets the current enviroment variables of Building, Department, OAL_CN, Role, Room and SRVComment.
Remove-PharosDebugFile.ps1OAL - Remove Pharos Debug FileRemoves the Pharos log file to remediate potential errors
Remove-UnwantedIcons.ps1OAL - Remove Unwanted IconsRemoves any unwanted icons from the desktop.
Set-OALEnviromentVariables.ps1NASets the current environment variables of Building, Department, OAL_CN, Role, Room and SRVComment. Mainly used to change the scope of a device without needing to image. Only recommend it to be used on DEV and TEST devices
Start-UNCShareMapping.ps1OAL - Mapping and redirectionFor Intune use only. Maps the Home and Web network share of they exist of the user and redirects all the common folder (Desktop, Documents, Videos, Photos, etc) to the Home share.
Stop-DriverUAC.ps1OAL - Stop Driver UACStops the UAC driver

Scheduled Tasks

Each Scheduled Task is deployed during the install of the application. If the Task(s) is out of date based on the Version. Each Task is individually changed so it changes are isolated.

NameVersionPrincipalTriggerAction
OAL - Background Stamp1.1SystemEvery 15 MinutesRuns the Start-BackgroundStamp.ps1 script to update or create the lockscreen background.
OAL - Mapping and redirection6.0UserAt Log OnRuns the Start-UNCShareMapping.ps1 script
OAL - Stop Driver UAC1.0SystemAt Log OnRuns the Stop-DriverUAC.ps1
OAL - Idle Logoff3.0UserAt Log OnRuns the idlelogoff.exe
OAL - Logit at Logoff2.0SystemAt Log OffRuns the logit2.exe to update Worksation Status
OAL - Profile Cleanup1.0SystemAt Log OnRuns the ProfileCleanup.exe
OAL - Get IP Address1.0SystemEvery HourRuns the Get-IPAddress.ps1 script
OAL - Remove Pharos Debug File1.0SystemAt Log OnRuns the Remove-PharosDebugFile.ps1 script
OAL - Remove Unwanted Icons1.0SystemAt Log OnRuns the Remove-UnwantedIcons.ps1 script
OAL - Saturday Restarts1.0SystemEvery Saturday at 4amForces a restart of the computer