• 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?
  • 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…
  • Customize document version created on the first state

    Hello, is it possible to customize by PowerShell Script, the document version, once it is added to the ProjectWise Datasource? Basically, it is possible to customize the Document versions, by using WRE. But when we are adding a new Document to ProjectWise…
  • Login issue with version 2.1.16.0

    Security Protocol now set to TLS 1.2 PWPS_DAB Version is 2.1.16.0 This is a 64-bit process. I have downloaded the latest version and it appears to be forcing the GUI each time: New-PWLogin -DatasourceName $sDataSource -BentleyIMS I confirmed I…
  • How To: Get a List of UserList and Groups a User is a Member Of (V2.0)

    Below is a link to a new blog post. Hope you find it useful. powerwisescripting.blog/.../
  • How to avoid empty folders while querying Get-PWFolders

    I was trying to get the list of folders in a folder. But I can see a large number of empty folders in the result. Is there any way to exclude empty folders while querying folder list using Get-PWFolders? $UndergroundStorageFolders= Get-PWFolders …
  • Export-PWProjectAccessControl not exporting ProjectName and FullPath in some instances.

    Security Protocol now set to TLS 1.2 PWPS_DAB Version is 2.1.15.0 This is a 64-bit process. All, I have run into an issue with Export-PWProjectAccessControl where the ProjectName and FullPath fields are blank in some instances. I first noticed this…
  • Export document attributes to an excel file

    I want to export a set of documents and its attributes to an excel file. I tried it using " Get-PWDocumentsBySearch " function and was not able to find the attributes value $documents=Get-PWDocumentsBySearch -FolderPath '\Software' -GetAttributes…