Browse By Tags

  • Update-PWDocumentFileFromProjectWise not copying file

    I tried this line with the aim of writing the metadata contained in PWDocument into the file line.Seed_File by copying the file and uploading onto ProjectWise. However the resulting file on ProjectWise is empty; the metadata attributes are there but…
  • Get-PWDocumentsByGUIDs | CheckedoutDate is Wrong

    When I trying to get the document which is checked out already, the below command is giving a wrong date formate. The date is constant one, its not updating the real one, Get-PWDocumentsByGUIDs -DocumentGUIDs $Doc.DocumentGUID -Verbose
  • 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…
  • 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…
  • 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
  • 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…
  • Civil File Manager using Powershell

    Can you run Civil File Manager thru Powershell for ProjectWise folders? It works great for paths which are on the local computer, but not ProjectWise. ( $FolderName) (I can manually use CivilFileManager, but want to automate and simplify the process…
  • Help creating "24hr Changes" export script for a Work Area folder

    I'm trying to create a script that will search for any changes to files/folders made to a " Work Area " folder within a 24 hour period and export out a copy to a local folder for those changed items. This script will be executed once a day via Task Scheduler…
  • Validate the Project Creation in Connected Portal

    Dear all, I am working in the Powershell script which is needs to be validate the projects in all places, Means that, 1. ProjectWise Explorer - Workarea and Assosciation {I know i can do that} 2. ProjectWise Web (Connect.bentley.com) {Need a suggesion…
  • Move a document to a new storage area

    I have an existing script to change the folder storage, but some project staff goofed up, and we have documents in the same folder, in multiple storage areas. I need to standardize the location of the documents to the correct storage areas. thanks…
  • Set-PWDocumentState failing

    I am trying to change the state of a file with using the below code, but i am getting an error message like below. If someone could correct me where i am wrong would be very much appreciated Error Message : VERBOSE: Found 1 documents WARNING: Failed…
  • Re-Importing Project Access Control Excel "Error: Column 'ProjectName' does not belong to underlying table 'Directory' "

    I exported a Work Area access control details to Excel using Export-PWAccessControlToExcel command for all levels. Now, when I try to re-import the same after making some changes to access controls, I get the below error. Error: Column 'ProjectName…
  • How to update projectwise shortcuts to point to new datasource ?

    We recently upgraded from projectwise v8i to the latest version, and in the process moved all our folder structure to a new datasource. Many of our users had shortcuts pointing to some files in the old setup, is there a powershell script or some other…
  • How to use the Copy-PWFoldersBetweenDatasources cmdlet.

    Here is a link to a new blog post stepping through the process of copying folders from one datasource to another. https://powerwisescripting.blog/2020/09/27/howto-use-copy-pwfoldersbetweendatasources/ Cheers, Brian
  • Blog Posts - Parameter Validation (Variable Validation Attributes)

    Hey everyone, I have added 2 Blog Posts explaining how to use Parameter Validation (Variable Validation Attributes and how to add ProjectWise specific Variable Validation Attributes. http://powerwisescripting.blog/2020/08/24/howto-use-parameter…
  • Update-PWUser error message

    Hello, I am trying to change users emails and identities from one domain to another but when testing this I get an error message saying the below, which seems to contradict itself. What am I doing wrong? Script: #get all user accounts with BAM email…
  • How to set Datasource security for the root / top folder ?

    Hello, I need to change 250+ datasource parameters for the security of the root folder. Manually, I go to pw administrator, select my project/datasource, right-click Properties, then edit 'folder security' and 'document security' Can i do it with…
  • Automation and Productivity Gains: A PowerShell Use Case - Accel ProjectWise virtual conference

    Please use this thread for all questions relating to the Accel ProjectWise virtual conference's session on Automation and Productivity Gains: A PowerShell Use Case
  • Set-PWInterfaceGUIDefinition

    Hello, I am using this option to take all the settings from one interface to a new one, but it appears to be dumping all the items from the "More Attributes" page onto the Attributes page. My codes below but I cannot see an option for page or am I missing…
  • HowTo: Using PWPS_DAB_Remoting

    Hello All, I have added another post to my blog. I would highly recommend everyone check this one out. It shows how to call PowerShell scripts from a remote server. http://powerwisescripting.blog/2019/12/19/howto-using-pwps_dab_remoting/ Please…
  • Clear-PWWorkflowByFolderPath not functioning as expected

    I'm running ProjectWise 10.00.03.140 and PWPS_DAB 1.12.3.0. When I run the below to attempt to clear the workflow from a nested folder structure it returns "WARNING: Folder 'XXXX' not found" for every folder ID in the path. $folders=Get-PWFolders…
  • Update ProjectWise users onto ProjectWise Deliverables management users

    Hello, Would there be any way to update the users that have been added to PW groups/lists onto the groups that are linked to PWDM? As at the moment we are having to refresh 20+ projects every time a user is added to the ProjectWise group. Ben
  • HowTo: Generate ProjectWise User Licensing Report

    Hello All, I have added a new post to my blog demonstrating how to generate a report for user licensing. https://powerwisescripting.blog/2019/07/29/howto-generate-projectwise-user-licensing-report/ Hopefully, you find it useful. Cheers, Bri…
  • HowTo: Add Document Descriptions to a Reference Report

    Hey All, I have added another post to my blog. Check it out and let me know what you think. Hopefully, you find it useful. https://powerwisescripting.blog/2019/07/06/howto-add-document-descriptions-to-a-reference-report/ Cheers, Brian