Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Apply rights to target directory
    • Sign In

    • State Verified Answer
    • Replies 1 reply
    • Subscribers 65 subscribers
    • Views 411 views
    • Users 0 members are here
    • powershell
    • access rights
    • pwps_dab
    • Permission

    Apply rights to target directory

    Damian Demiraj
    Offline Damian Demiraj over 2 years ago

    Hello together

    I'm looking for the equivalent in PowerShell for the "Apply rights to target directory" function of ProjectWise.
    First I tried to make a script with the Import/Export Functions, the problem there is, that it doesn't overwrite users and groups that are in the target directory but not in the template directory.

    Thank you in advance

    • Sign in to reply
    • Cancel

    Top Replies

    • Robert McMillan
      Offline Robert McMillan Fri, Jun 11 2021 4:38 AM +1 verified
      Try using Reset-PWFolderSecurity on your target folder before Importing permissions. The Import-PWAccessControlFromExcel cmdlet merges with rather than replaces the existing permissions but if you use…
    • Robert McMillan
      +1 Offline Robert McMillan Fri, Jun 11 2021 4:38 AM

      Try using Reset-PWFolderSecurity on your target folder before Importing permissions. The Import-PWAccessControlFromExcel cmdlet merges with rather than replaces the existing permissions but if you use the reset to clear them first the result is a replace. 

      Answer Verified By: Damian Demiraj 

      • Cancel
      • Vote Up +1 Vote Down
      • Sign in to reply
      • Reject 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