• 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…
  • How to combine 2 ProjectWise document objects list into one in PowerShell

    How to combine 2 ProjectWise document objects list into one in PowerShell
  • How to get the Environment of a document in PowerShell

    How to get the Environment of a document in PowerShell
  • How To Report on Folders with Specific Access Control

    Hey All, I have created a new blog post to demonstrate how to report on folders with specific access control set. Hopefully you find it useful. powerwisescripting.blog/.../
  • Check for Write Access by a UserList within a Project

    I need to scan a project to find the folders a user, or userlist, has read/write access to. I wrote this to get the folders the UserList has read access to, but I need to take it a step further. $folders = Get-PWFolders -FolderPath 'FARM Bridge Program…
  • Comparing CustomAttributes sub-proprerties from Get-PWDocumentsBySearchExtended

    I'm having issues trying to compare the FileUpdateDate to an DateTime environment attribute returned by Get-PWDocumentsBySearchExtended in Where-Object. It doesn't appear to be able to expand the CustomAttributes sub-property for comparison? $PWDocs…
  • How to get all the empty folders in a ProjectWise Data source?

    How to get all the empty folders in a ProjectWise Data source?
  • How To Get a File Size Summation for a Datasource

    I have created a new blog post to return the overall file size summation for a datasource. Check it out. Hopefully it helps. powerwisescripting.blog/.../
  • PowerShell - IMS Accounts

    Is it possible to remove IMS accounts using PowerShell? I would like to do that for when a user is no longer active/left the company.
  • Get projectwise web url using a document id in projectwise

    Is there any way to build the web view url of projectwise using a document id in projectwise. Web URL sample: connect-projectwisewebview.bentley.com/pwlink ProjectWise Web View: connect-projectwisewebview.bentley.com/.../
  • Get a list of connected users

    Hey all. I have created a new blog post to offer a quick way of getting a list of all connected users within a ProjectWise datasource. Check it out. Let me know if you find it helpful. https://powerwisescripting.blog/2022/08/19/howto-get-list-of-connected…
  • Export-PWProjectAccessControl not outputting permissions correctly.

    Security Protocol now set to TLS 1.2 PWPS_DAB Version is 2.1.10.0 This is a 64-bit process. All, I ran into an issue with the Export-PWProjectAccessControl cmdlet where it is reporting different permissions then ProjectWise Explorer is: VERBOSE…
  • New-PWRichProjectFromTemplate not bringing in Worklflows

    As a complete novice PowerShell user (2 days) I have managed to modify a Brian Flaherty script so I can now copy my organisations template and launch a new scheme and then update Project PIN and Project Names etc. Everything seemed great with folders…
  • Unable to Create Project from Template Using PowerShell

    Good Morning, I have been given admin privileges for our Dev Project in ProjectWise. I have tried to create a Project in this test environment within PowerShell using "New-PWRichProjectFromTemplate" and get the attached error message. I have been…
  • Add-pwsavedsearch how to search for workareas/folders

    I want to create a global search to find workareas in my root that have a specific attribute. I don't know if it's possible to do it with add-pwsavedsearch, i didn't find how to. Can i get some help? The script i've wrote is : # Name of saved search…
  • New-PWFolder did not create folder in PW Explorer

    I'm having issues trying to create a new folder through PowerShell. I used this PowerShell command and received no errors when running it. New-PWFolder -FolderPath "Documents\Archives\2000 - 2999\2111" -StorageArea Archives I can see that the entry…
  • Copying a User Account

    Is there a way to copy a User Account into the same datasource through PowerShell? Same functionality as Right-Click - Copy, Paste in ProjectWise Administrator Our current process of setting up a new user usually involves copying an existing account…
  • switching refrences to there active versios

    Hello, is there a way to switch the references of an ProjectWise document to there active versions in the PWPS_DAB? I tryed to build an work arround but there is only an Add-PWDocumentReference which allows me to add aditionally references but i cant…
  • Expected Warnings with Copy-PWFoldersBetweenDatasources

    This is an updated version of a similar question from the ProjectWise programming forum, moved here at the request of Dave B. I'm copying projects between datasources with thousands of docs and seeing these warnings crop up: Warning: Copy in after…
  • Anyone know what the problem is with calling recursive common table expressions from the PowerShell Select-PWSQL Cmdlet?

    simple common table expressions seem to work: e.g. ;with cte as ( Select proj.o_projectno ,proj.o_parentno ,proj.o_projectname From dms_proj proj where proj.o_parentno > 0 and o_instanceID <> 0 ) select * from cte However, adding the…
  • PowerShell Request: Copy Personal Views Between Users

    We are looking for a way to share personal views between users without making them Global. The current PowerShell cmdlets allow to create Personal (only for the logged in user) and Global views but there are no parameters to assign the views to a specific…