Closed Twenty94470 closed 1 week ago
Have you made sure that PSU service account have permission to the file? Also made sure to unblock it if it's blocked?
Unblock-File -Path "path to excel file"
I'm pretty sure it's unblock-file, im on my phone now. But it's a PowerShell function so just google it if it won't work.
Hello thanks for your reply,
PSU is installed with system account, so yes, on the security tab, the system account as full access, The file was created on local, so there is not "Unsecure" like if I copy paste the file from network share,
I try your command with verbose, but I still have the error on the excel file :
I check on google but all solution didn't works.
I don't know if on another environnement, you have the same result ?
Regards
Hello thanks for your reply,
PSU is installed with system account, so yes, on the security tab, the system account as full access,
The file was created on local, so there is not "Unsecure" like if I copy paste the file from network share,
I try your command with verbose, but I still have the error on the excel file :
I check on google but all solution didn't works.
I don't know if on another environnement, you have the same result ?
Regards
I have not tried it, the things I did write above was how I did solve it with word files. Unblock-file did solve it for me.
Or wait, I needed to call on a script from the endpoint. So I did never figure this out. But did a work a round.
Create a script file with your code then execute ps with that file from psu.
Hello,
I got the same error, but I fix my error by using the import-excel module. https://github.com/dfinke/ImportExcel I let the issue opened if the COM object can be fixed.
Regards
COM is going to be very problematic in a service like this. I would highly recommend just using the ImportExcel module to avoid it.
Version
5.0.8
Severity
Quality-of-life
Environment
msi
Steps to Reproduce
Hello,
I've created a simple excel file, A1 = Test When I run the script into the ise program I can see the cell content "Test" when I run the same script into Powershell Universal, I got an error : **"Microsoft Excel cannot access the file ' C:\Sources\Classeur1.xlsx'
There is no excel process in background, I've checked the excel file is not already opened.
Expected behavior
Actual behavior
Additional Environment data
Office 2021 LTSC
Screenshots/Animations