Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum How To: Get and Set "Use Access Control" within PowerShell
    • Sign In

    • State Not Answered
    • Replies 4 replies
    • Subscribers 65 subscribers
    • Views 1304 views
    • Users 0 members are here
    • powershell
    • ProjectWise
    • pwps_dab
    • ProjectWise PowerShell Modules

    How To: Get and Set "Use Access Control" within PowerShell

    Brian Flaherty
    Offline Brian Flaherty over 4 years ago

    I have added a new post to my ProjectWise / PowerShell blog.  Please take a look. Hopefully, you find it useful..

    https://powerwisescripting.blog/2019/01/22/how-to-get-and-set-use-access-control/

    Cheers,

    Brian

    • Sign in to reply
    • Cancel
    • Dean Lyon
      0 Offline Dean Lyon Thu, Jan 24 2019 9:48 AM

      Nice feature. We use admin accounts that have Access control turned off for programmatic admin tasks.  These are logical accounts that are separate from the users accounts. If you do use this on users accounts, be aware that all permissions will be ignored for that user while in this state, not just for the script that is running.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Chris Spencer
      0 Offline Chris Spencer Mon, Jan 28 2019 7:48 AM

      Great thanks. Quick win for me to see who it is turned off for:

      #Show which users have access control turned off
      Get-PWUsersByMatch -UserName * | Get-PWUserHasUseAccessControlOn -Verbose | Select-String -Pattern "set OFF"

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Bill Graefe
      0 Offline Bill Graefe Mon, Feb 4 2019 11:38 AM

      Anyone see a security risk with the set cmdlet? I've not considered or tested it yet but privilege escalation is a potential

      Bill

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Brian Flaherty
      0 Offline Brian Flaherty Mon, Feb 4 2019 12:11 PM in reply to Bill Graefe

      Only ProjectWise administrators will be able to make these changes Get/Set; not the typical user.

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies