From d511b0d2da53ec9a1fb9af3224d55607240da7b6 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Tue, 3 Nov 2020 17:58:18 +0500 Subject: [PATCH] [windows] give full access to Temp folder (#1959) Co-authored-by: Sergey Dolin --- images/win/scripts/Installers/Finalize-VM.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Finalize-VM.ps1 b/images/win/scripts/Installers/Finalize-VM.ps1 index d0bb3d26a..8e29dbe20 100644 --- a/images/win/scripts/Installers/Finalize-VM.ps1 +++ b/images/win/scripts/Installers/Finalize-VM.ps1 @@ -33,4 +33,8 @@ Remove-Item $profile.AllUsersAllHosts -Force # Clean yarn and npm cache yarn cache clean -npm cache clean --force \ No newline at end of file +npm cache clean --force + +# allow msi to write to temp folder +# see https://github.com/actions/virtual-environments/issues/1704 +icacls "C:\Windows\Temp" /q /c /t /grant Users:F /T