Created
March 13, 2019 01:25
-
-
Save AdamGrossTX/f9b1de89ad7a981ab5b5844bd9210cd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Add TO A Run Command Line step## | |
##Use this for SCCM 1810 Clients Only | |
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command " & { $TSEnv = New-Object -ComObject Microsoft.SMS.TSEnvironment -ErrorAction Stop; $TSProgressUI = new-object -comobject Microsoft.SMS.TSProgressUI -ErrorAction Stop; $TSProgressUI.ShowErrorDialog($TSEnv.Value(\"_SMSTSOrgName\"),$TSEnv.Value(\"_SMSTSPackageName\"),\"Windows Installation Error.\",\"An error occurred while installing Windows. Please contact the IT Help Desk and provide the following information:`r`nFailed Step Name: $($TSEnv.Value(\"FailedStepName\"))`r`nFailed Step Error Code: $($TSEnv.Value(\"FailedStepReturnCode\"))\",$TSEnv.Value(\"FailedStepReturnCode\"),$Tsenv.Value(\"SMSTSErrorDialogTimeout\"),0); Exit $TSEnv.Value(\"FailedStepReturnCode\")}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment