Scripting Question

Can we package Microsofte Fix files ? MicrosoftEasyFix20166.mini.diagcab type of files? How to deploy .diagcab files silently through?

02/25/2019 977 views

It is a Microsoft fix file and tried deploying through AutomatedFixUnattended.ps1 file Script will run successfully but not the fix file.

C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -ExecutionPolicy RemoteSigned -Command "%~dp0AutomatedFixUnattended.ps1" "%~dp0MicrosoftEasyFix20166.mini.diagcab"  didnot work

2 Comments   [ + ] Show comments


  • Powershell wont understand %~dp0, this is a batch command for Current Directory.
    • In PowerShell you can use $PSScriptRoot\Filename.
      $PSScriptRoot is Current Directory.
      • Yes i do understand , but here my question is Can we silently install this MicrosoftEasyFix20166.mini.diagcab type of files?

        I tried to call "AutomatedFixUnattended.ps1" file in Batch script but fix is not applied successfully.
  • I ran into this a couple of years ago, I could not make it work.

    But see this:


Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ