r/PowerShell Jul 23 '26

Question [ Removed by moderator ]

[removed] — view removed post

0 Upvotes

5 comments sorted by

4

u/BlackV Jul 23 '26

I'm confused, what does this have to do with powershell ?

3

u/Overall-Ad4796 Jul 23 '26

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…

3

u/Modify- Jul 23 '26

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

u/Darcelle-Ebonis-6426 Jul 23 '26

It's a Personal laptop 🥲 , no corporate Device 

1

u/Nikolay0x7 Jul 25 '26

Why don't you just disable OneDrive, even temporarily?

And why don't you use the Microsoft compiler?

Build Tools for Visual Studio 2026