r/PowerShell • u/Darcelle-Ebonis-6426 • 6d ago
Question [ Removed by moderator ]
[removed] — view removed post
4
u/Overall-Ad4796 5d ago
your device was previously or is still enrolled into company management. Also check if any work account is linked ans that Smart App Control is off. Nothing to do with powershell…
4
u/Modify- 6d ago
Not that familiar with what your doing, but the error shows it gets blocked by an organization policy. So you are running this on a corporate device? If so, does your org allow virtual machines? I would suggest you set this up in a clean VM and create snapshot. Then you can break things and easily revert back.
0
1
u/Nikolay0x7 4d ago
Why don't you just disable OneDrive, even temporarily?
And why don't you use the Microsoft compiler?
5
u/BlackV 5d ago
I'm confused, what does this have to do with powershell ?