Forum Discussion
lpyang
Feb 03, 2024Copper Contributor
With Smart App Control on, the OS blocks temporary dll files generated by RS.EXE.
Question1:With Smart app control open, the command line is executed and RS.EXE appears with an exception notification. What is the reason for this and is there a way to avoid the problem?
Environment:
OS | Win11Professional |
Internet | on |
SQL Server | Sql2022Express |
Report Server | Microsoft SQL Server 2022 Reporting Services |
Command Line:
"C:\Program Files\Microsoft SQL Server Reporting Services\Shared Tools\RS.EXE" -i C:\test\xx.rss -s localhost/ReportServer_FXAW -l 60 -v BACKUPLOCATION=C:\test
Environment:
①Smart app control = off
Command execution succeeds when SAC is off.
②Smart app control = on
Command execution failed when SAC is on.
Execute Results: Could not load file or assembly 'file:///C:\Users\Administrator\AppData\Local\Temp\zchwlff4\zchwlff4.exe' or one of its dependencies. System Integrity policy has been violated. Malicious binary reputation. (Exception from HRESULT: 0x800711CC)
file code:
Public Sub Main()
Dim isRoot As Boolean = False
Dim inheritParent As Boolean
Dim policies() As Policy
Dim newPolicies() As Policy
Dim policy As New Policy()
Dim roles(0) As Role
roles(0) = New Role()
roles(0).Name = "xxxx"
policy.Roles = roles
Try
policy.GroupUserName = "DESKTOP-B5C0TAL\Administrator"
Console.WriteLine("Policy successfully set.")
Catch e As SoapException
If e.Detail.Item("ErrorCode").InnerText = "xxxx" Then
Console.WriteLine("permission exist already exists and cannot be overwritten")
Else
Console.WriteLine("Error : " + e.Detail.Item("ErrorCode").InnerText + " (" + e.Detail.Item("Message").InnerText + ")")
End If
End Try
End Sub 'Main
No RepliesBe the first to reply