02/25/2019 273 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:


There are no answers at this time

Don't be a Stranger!

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

Sign up! or login