• Update all Folders to Read Only with current UAC Membership

    Is there a simple way to change all the current Users / Lists / Groups within the UAC of a folder (or set of folders) to Read Only / File Read? We need this for our Archives. I already have a PowerShell script that will move the folders into the Archive…
  • Datasource login error when running script with Task Scheduler

    I am trying to run a Powershell script using Task Scheduler. The script uses a Logical account with an encrypted password file. If run manually, I am prompted to login to the connection client. I can dismiss the client without logging in and the script…
  • Update User IdentityProvider in PowerShell

    How can I update user's Identify provider column using PowerShell?
  • Report Saved Search to excel, with custom attributes

    I would like to write a report to excel based on a saved search. I also need to write a custom attribute 'Revision No' to excel. In the if block the custom attribute is written to the terminal but it doesn't write to Excel. $SavedSearch = 'PW…
  • Get-PWUserByLastLogin

    Get-PWUserByLastLogin is returning a significant number of users (with the command Get-PWUserByLastLogin -DaysAgo 60) where the user LastLogin day is 1/1/1979 (the equivalent of a zero maybe?). Looking at the audit history of some of these turns up…
  • I have a list of PW GUID's I want to create a set or add to a set with all the docs in my list. Looks like the Add-PWDocumentFlatSetMember on accepts Doc name and folder path

    I have a list of PW GUID's I want to create a set or add to a set with all the docs in my list. Looks like the Add-PWDocumentFlatSetMember on accepts Doc name and folder path. Is there a way to add to a set just using the GID in one script? If not is…
  • HowTo: FUNCTION Show-OpenFileDialog

    I have a new blog post containing a simple function to select a local file using the Windows Open File Dialog. Please check it out. Hopefully you find it useful. https://powerwisescripting.blog/2023/03/28/howto-function-show-openfiledialog/
  • Export-PWDocuments script crashes Powershell

    Hi All, I was given the following script from Bentley to allow me to export a fair amount of data from our datasource which will be backed up somewhere (somebody else will be looking after that). For now I just want to copy out the files. The command…
  • How to filter Get-PWFolderSecurity based on type 'User'

    I am trying to get all User type access control list using Get-PWFolderSecurity. But unfortunately it is taking more time to get the results and I did not find a way to filter only ' User' type results. Is there any way to filter out the results so that…
  • Change environment

    Hi, I want to change the environment to folder which is containing the documents. There is cmdlet available however that is changing the environment to empty folders. Is there a way we can fix using the powershell? Thank you! Regards, Amol …
  • "Find and Replace" UserGroup in Access Control?

    Hi Everyone, Im working on a new Project Creation tool for our company, usually to do this we copy a template, rename etc then we export the Access Control to Excel, rename the Group to the new Project and reimport. I'm wondering if there is a way…
  • Copy List to CSV

    Is there a cmdlet to copy list to CSV?
  • Deliverables Management Connector Installation for Powershell Failed

    Hi All, ProjectWise_Explorer_CONNECT_Edition_20230125181625.log After experiencing issues with building PWConnectedProjects using PowerShell we received this error. We have attempted to modify our ProjectWise Explorer installation to include the ProjectWise…
  • Cmdlet for moving a project to an archiving area

    We are looking to archive a few hundred projects and have decided to move them from where they currently live to an "Archive" folder with read-only permissions. I cannot find a cmdlet that will let us do this. The "Move-PWFolder" errors out with an "Invalid…
  • Folder not found during Set-PWEnvironmentByFolderPath

    Hello, I am trying to set the environment of a folder and all its subfolders. It's able to find all folders and their ID with line 7 (of the image below), but when I try to set the environment it returns the warnings "Folder 'XXXX' not found". The environment…
  • ThreadOption Cannot be found

    Intension : We are running a script via Powershell ISE, this script used to call another script and will running continuesly 24/7. The problem is it get struck between some point. and we need to re-start it manually. For that we put the below script to…
  • Recreate ProjectWise Folders Locally

    Based on a previous post ( Exporting complex folder structure from ProjectWise to Windows - ProjectWise PowerShell Extensions Forum - ProjectWise - Bentley Communities ) I've successfully re-created a ProjectWise tree locally using the following:…
  • Add-PWSavedSearch / Free files checked out for 30+days

    Using the Add-PWSavedSearch is it possible to define a search looking for files checked out on a certain date? I'm trying to create a script which Free's files that have been left Checked Out for 30 days or more. (for context, in case there is a better…
  • FUNCTION to get PW Administrator(s)

    I have a new blog post containing a simple function to retrieve the members of the primary administrators group. Please check it out. Hopefully you find it useful. http://powerwisescripting.blog/2022/11/25/howto-function-to-retrieve-adminstrators-in…
  • Get-PWUserByLastLogin returning last login date 1-1-1979

    Get-PWUserByLastLogin returning last login date 1-1-1979 $users = Get-PWUserByLastLogin -Verbose
  • New-PWRichProject from a template project works very slow

    Hello, My template work area has all the folder structure with the required workflows with permissions applied. Also, the template has user-lists with a particular prefix. When I try to create New-PWRichProject from the template project, I go through…
  • Powershell Login - Remove messages

    Hello, When i run the New-PWLogin Command, at the start it gives the following three messages as output: Security Protocol now set to TLS 1.2 PWPS_DAB Version is 2.1.18.0 This is a 64-bit process. Since I want to create an .exe-file with this…
  • ProjectWise365 Project Setup Development

    We are trying to add a PW365 component to our existing ProjectWise project creation PowerShell script using Add-PW365Project , and have run into issues with the OIDCToken. After looking into this post to troubleshoot, it seems like Set-PWConnectedProjectAssociation…
  • How to get immediate child folders in a folder

    How to get only immediate child folders in a folder in powershell.
  • Updating folder description

    Trying to updating the folder properties which i am trying to get the value from one source folder and updating the target folder. The below code is working when there is a value in the source folder but giving a below error if there is no value. Could…