Grant access to log files by using PowerShell
- Last UpdatedJan 06, 2025
- 1 minute read
This procedure assumes that the Logs folder is in the C:\Users\rts_service\AppData\Local\SimSci\SimCentral folder and the AVEVA Real-Time System service account is the rts_service user.
Grant access to log files by using PowerShell
-
Open PowerShell (PowerShell.exe).
-
At the command prompt, enter the following commands:
$acl = Get-Acl "C:\Users\rts_service\AppData\Local\SimSci\SimCentral\Logs"
$AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("User1","Read","Allow")
$acl.SetAccessRule($AccessRule)
$acl | Set-Acl "C:\Users\rts_service\AppData\Local\SimSci\SimCentral\Logs"
This adds read permissions for the User1 user to the Logs folder.