diff --git a/appveyor.yml b/appveyor.yml
index 60f7c5408a8edcdf3f64be8a09c584da515f00ea..c9b5df40d0982acaec1c0b119bb51f890a02c1c2 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -80,7 +80,7 @@ after_test:
 - ps: 7z a $env:BUILD .\dist\beempy
 - ps: 7z a $env:BUILD2 .\dist\beempy.exe
 - cmd: makensis.exe /V4 pyinstaller\windows_installer.nsi
-- ps copy /Y pyinstaller/BeempySetup.exe $env:BUILD3
+- ps Copy-Item .\pyinstaller\BeempySetup.exe -Destination $env:BUILD3
 
 - ps: | # generate sha256 hashes
     (get-filehash $env:BUILD -algorithm SHA256).Hash | out-file ("{0}.sha256" -f $env:BUILD) -encoding ascii