Advertisement
Guest User

Modifying Service ACLs

a guest
Dec 16th, 2015
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ServiceRights     : QueryConfig, QueryStatus, EnumerateDependents, Start, Stop, PauseContinue, Interrogate,
  2.                     UserDefinedControl, ReadControl
  3. AccessControlType : AccessAllowed
  4. IdentityReference : NT AUTHORITY\SYSTEM
  5. IsInherited       : False
  6. InheritanceFlags  : None
  7. PropagationFlags  : None
  8.  
  9. ServiceRights     : QueryConfig, ChangeConfig, QueryStatus, EnumerateDependents, Start, Stop, PauseContinue,
  10.                     Interrogate, UserDefinedControl, Delete, ReadControl, WriteDac, WriteOwner
  11. AccessControlType : AccessAllowed
  12. IdentityReference : BUILTIN\Administrators
  13. IsInherited       : False
  14. InheritanceFlags  : None
  15. PropagationFlags  : None
  16.  
  17. ServiceRights     : QueryConfig, QueryStatus, EnumerateDependents, Interrogate, UserDefinedControl, ReadControl
  18. AccessControlType : AccessAllowed
  19. IdentityReference : NT AUTHORITY\INTERACTIVE
  20. IsInherited       : False
  21. InheritanceFlags  : None
  22. PropagationFlags  : None
  23.  
  24. ServiceRights     : QueryConfig, QueryStatus, EnumerateDependents, Interrogate, UserDefinedControl, ReadControl
  25. AccessControlType : AccessAllowed
  26. IdentityReference : NT AUTHORITY\SERVICE
  27. IsInherited       : False
  28. InheritanceFlags  : None
  29. PropagationFlags  : None
  30.  
  31. Exception calling "Translate" with "1" argument(s): "Some or all identity references could not be translated."
  32. At line:101 char:29
  33. +                             $Principal.Translate([System.Security.Principal.Secu ...
  34. +                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35.     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
  36.     + FullyQualifiedErrorId : IdentityNotMappedException
  37.  
  38. New-Object : Cannot find an overload for "CommonAce" and the argument count: "5".
  39. At line:113 char:5
  40. +     New-Object -TypeName $AccessControlObject -ArgumentList $Arguments
  41. +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42.     + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodException
  43.     + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
  44.  
  45. Unable to cast object of type 'System.Management.Automation.PSObject' to type
  46. 'System.Security.AccessControl.CommonAce'.
  47. At D:\_Setup\StandaloneSQL\Grant-acl.ps1:11 char:1
  48. + $ServiceAcl.AddAccessRule((New-AccessControlEntry -ServiceRights "Start,Stop" -P ...
  49. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  50.     + CategoryInfo          : OperationStopped: (:) [], InvalidCastException
  51.     + FullyQualifiedErrorId : System.InvalidCastException
  52.  
  53. ServiceRights     : QueryConfig, QueryStatus, EnumerateDependents, Start, Stop, PauseContinue, Interrogate,
  54.                     UserDefinedControl, ReadControl
  55. AccessControlType : AccessAllowed
  56. IdentityReference : NT AUTHORITY\SYSTEM
  57. IsInherited       : False
  58. InheritanceFlags  : None
  59. PropagationFlags  : None
  60.  
  61. ServiceRights     : QueryConfig, ChangeConfig, QueryStatus, EnumerateDependents, Start, Stop, PauseContinue,
  62.                     Interrogate, UserDefinedControl, Delete, ReadControl, WriteDac, WriteOwner
  63. AccessControlType : AccessAllowed
  64. IdentityReference : BUILTIN\Administrators
  65. IsInherited       : False
  66. InheritanceFlags  : None
  67. PropagationFlags  : None
  68.  
  69. ServiceRights     : QueryConfig, QueryStatus, EnumerateDependents, Interrogate, UserDefinedControl, ReadControl
  70. AccessControlType : AccessAllowed
  71. IdentityReference : NT AUTHORITY\INTERACTIVE
  72. IsInherited       : False
  73. InheritanceFlags  : None
  74. PropagationFlags  : None
  75.  
  76. ServiceRights     : QueryConfig, QueryStatus, EnumerateDependents, Interrogate, UserDefinedControl, ReadControl
  77. AccessControlType : AccessAllowed
  78. IdentityReference : NT AUTHORITY\SERVICE
  79. IsInherited       : False
  80. InheritanceFlags  : None
  81. PropagationFlags  : None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement