• PowerShell Create new ProjectWise folder from template and Excell file

    New-PWLogin $outfile = Get-TablesFromXLSXWorkbook -InputFileName 'C:\Users\joseph\Desktop\OutFile.xlsx ' foreach($row in $outfile.rows) { New-PWRichProjectFromTemplate -newFolderPathName $row.FolderPath -NewProjectName $row.FolderName -Template Name…
  • Powershell positional parameter cannot be found

    I was using the below command to create project folders from the template, but recently I am getting the following error. can you please help me fix it? New-PWLogin $outfile = Get-TablesFromXLSXWorkbook -InputFileName “\\JC\OutFile.xlsx” foreach…
  • 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…
  • 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…
  • 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…
  • 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…
  • 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/.../
  • 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/.../
  • Batch Change Environment for Existing folders & Subfolders with documents inside

    Hi all, Bentley Support has turned me towards PowerShell for a potential solution as ProjectWise natively cannot batch change environments. I am largely unfamiliar with PowerShell so here I am as I'm told Bentley Support does not assist with PowerShell…
  • Set-PWConnectedProjectAssociation

    I created a rich/connected project manually. And i want to associate it both. Using the below code is saying error and even I could not get the connected project guid. The connected projectid is showing like "00000000-0000-0000-0000-000000000000" Could…
  • Could not load type 'BTSTypes.IncomingPackage'

    Hi there, I've recently encountered PowerShell errors with commands involving PWDM. All scripts were working perfectly until the last week or two. It generally coincides with installation of the latest ProjectWise Deliverables Management Connector 10…
  • Getting PW Web/Teams Link Cmdlet

    Do we have any "Cmdlet" to getting the link of PW WEB/TEAMS ? or any other methods ?
  • 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…
  • Name of the below Attribute ? to update Work area Name

    I am using the below code to update the connected work area name but i am struck here that, when i put @{PROJECT_Project_Name="NewProjectName"} this will be updating the properties not the name of the project. The rectangle marked one in that image that…