Skip to main content

Posts

SCCM - Install dell drivers dynamically during OSD

The below script may be used in an SCCM task to download Dell drivers from :
"http://en.community.dell.com/techcenter/enterprise-client/w/wiki/2065.dell-command-deploy-driver-packs-for-enterprise-client-os-deployment" to a PC being imaged.

Create a Dell group in the task sequence
Run the Powershell Script to filter dell systems with the WMI query as shown below.


The next step should run the powershell script shown below


Add another step to install dell drivers as using dism




The powershell script is shown below:
#By Tausif for FICO#download dell drivers directly and install during the SCCM task sequence.#Logging function borrowed from Mikael Nystrom FunctionImport-SMSTSENV{try{$tsenv=New-Object-COMObjectMicrosoft.SMS.TSEnvironmentWrite-Output"$ScriptName - tsenv is $tsenv "$MDTIntegration="YES"#$tsenv.GetVariables() | % { Write-Output "$ScriptName - $_ = $($tsenv.Value($_))" }}catch{Write-Output"$ScriptName - Unable to load Microsoft.SMS.TSE…
Recent posts

Delete DEPROVISIONED okta users using API

Okta tombstones its users and does not delete them automatically when they are deactivated in AD. I use the below script to run on schedule with an okta API token to delete users:
You'll need the okta powershell module install and be a super user on okta :
https://github.com/okta/oktasdk-csharp/tree/master/Okta.Core.Automation/


#Import module oktaImport-Module Okta.Core.Automation#COnnect to okta using token and domainConnect-Okta -Token alphanumerictoken -FullDomain "https://domain.okta.com"###################Logging function$Logfile = "$env:ProgramData\InstallLogs\DeleteOktaUsers_$(get-date -format `"yyyyMMdd_hhmmsstt`").log"Function LogWrite($string, $color){ if ($Color -eq $null) {$color = "white"} write-host $string -foregroundcolor $color $string | out-file -Filepath $Logfile -append}if ((Test-Path -path C:\ProgramData\InstallLogs\) -ne $True){New-Item C:\ProgramData\InstallLogs\ -type directory}##################################…