I’m attempting to upload a file via Windows Admin Center and encountered the following error: Error: This operation was blocked by role based access control settings or other network issue.
Cursory search points to an issue with role-based access, so within Windows Admin Center dashboard, I hit the settings (bottom left) and choose Role Based Access Control.
In here, I attempt to apply Role Based Access Control (RBAC) and get the following error.
Couldn’t apply role-based access control to the computer. Error: The network path was not found.
Another cursory search leads me to think, via Windows Admin Center known issues, that it could be the Windows Defender Application Control (WDAC). So for kludge purposes, I just decide to remove Windows Defender itself; I’ll be utilizing a different security suite anyway whenever this makes it to production.
To remove Windows Defender completely from Server 2019 using powershell, I use the following command: Uninstall-WindowsFeature -Name Windows-Defender
Note: This will require a reboot of your server.
After my server came back up, I again tried to apply Role Based Access Control and it failed with the same error. Now I will dig in a little deeper and update this post soon with new information and hopefully a solution I’ve found.
The firewall was the culprit — disabling it, Set-NetFirewallProfile -Profile domain,public,private -Enabled false, resolved the upload error. I have not attempted to apply RBAC yet.
Tip: Ensure PSRemoting is enabled on the target server as well as firewall rules are added. From an elevated PowerShell prompt:
Set-NetFirewallRule -Name WINRM-HTTP-In-TCP-PUBLIC -RemoteAddress Any
I also needed to allow port 445 as those two didn’t solve my issue:
New-NetFirewallRule -DisplayName “WAC File Upload” -Direction Inbound -Action Allow -Protocol TCP -Port 445 -RemoteAddress 192.168.1.100 -Profile Public,Domain,Private
The next error I get, and I’m not sure why yet, is the following AFTER uploading a file. The file does upload and the file content is good, but I get the following notification error.
Failed to upload to C:\PHP\TEST. Error: QueryCache: Unable to refresh data; call createObservable() and fetch() first.
Cursory search shows not much info out there. A couple GitHub repos with JSON file this string belongs in and some stuff for Excel / SQL linking.
When in doubt,
Well, that didn’t work. But uploads work, and I guess that’s good enough for Government work.
Ah wait. I had a look at that error message again and it seemed “webbrowserish” (like jQuery or something) so I restarted my browser and I no longer get that error.