Bentley Communities
Site
Search
User
Site
Search
User
Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum
Sign In
All tags
ProjectWise
powershell
Database
Deliverables Management
document
Environments
Export-PWDocuments
file type associations
Get-PWFolders
Get-PWFolderSecurity
Import-PWDocuments
Module
Performance
powershell_dab
powershellscripting
powerwisescripting.blog
Programming
projectwise admin
ProjectWise PowerShell Modules
ProjectWise Programming
PWPowerShell
PWPS
pwps_dab
Select-PWSQLDataTable
SIG
training
update-pwfoldersecurity
Set-PWWorkAreaConnectionUserSync
Matthew Saxon
Hi all. I've been off PW for 6 months now coming back I find there seems to be a problem with Set-PWWorkAreaConnectionUserSync Now in running the commandlet I get the following error: PS C:\windows\system32> Set-PWWorkAreaConnectionUserSync -OIDCToken…
20 days ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Need to get list of folder paths of Folders with the word Voided in its name to a spreadsheet so I can later rename
DaveSime
Need to get list of folder paths of Folders with the word Voided in its name to a spreadsheet so I can later rename. $SPSdrawVoidedFolders = get-pwfolders -folderpath "SUBTRAN\SUB\Drawings" -PopulatePaths | where-object -Property "Name" -Like -Value…
27 days ago
ProjectWise
ProjectWise PowerShell Extensions Forum
CmdLet for getting the WSG URL
Ananthakumar Mani
Is there a cmdlet or a specific way to get the WSG URL based on the datasource that we are running ?
2 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Performance monitor - Merge SQLite databases if running from separate regions - Just Sharing
Chris Spencer
Maybe someone has a PowerShell script to do the same thing or a neater way? (Merging multiple sqlite databases to one - Machines were from different regions with no access to a central db) For this I required sqlite3.exe from the sqlite tools bundle and…
2 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Connection Client Could not be Accessed - unnown error accured
Ananthakumar Mani
Below error are getting when we trying to login PW via powershell, So, for a test i tried to put a command "New-PWLogin" simply, then the below error is getting. Usually we receive the above error while accessing via ProjectWise Explorer. But…
2 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Which cmdlet can get the Last Login Computer Name ?
Ananthakumar Mani
I am looking in to the data which computer the user used to login the last time. Would be great If some one reffer a commandlet or a PW db table where i can get this data.
3 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
I am trying to update the folder security for security type Folder rather than Workflow. I've experimented with the following: New-PWLogin -DatasourceName *Project* -BentleyIMS $FolderPaths = Get-PWFolders -FolderPath "path" -Slow Updat
Thomas Johnson
3 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Update all Folders to Read Only with current UAC Membership
Robert Golding
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…
Answered
4 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Update User IdentityProvider in PowerShell
Ajomon George
How can I update user's Identify provider column using PowerShell?
4 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Report Saved Search to excel, with custom attributes
Simon Biddle
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…
4 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Get-PWUserByLastLogin
Adrian Abshere
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…
5 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
HowTo: FUNCTION Show-OpenFileDialog
Brian Flaherty
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/
5 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
How to filter Get-PWFolderSecurity based on type 'User'
Ajomon George
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…
6 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Folder not found during Set-PWEnvironmentByFolderPath
Bhanu Chauhan
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…
Answered
8 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
ThreadOption Cannot be found
Ananthakumar Mani
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…
8 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
FUNCTION to get PW Administrator(s)
Brian Flaherty
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…
9 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Get-PWUserByLastLogin returning last login date 1-1-1979
Ajomon George
Get-PWUserByLastLogin returning last login date 1-1-1979 $users = Get-PWUserByLastLogin -Verbose
9 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
How to get immediate child folders in a folder
Ajomon George
How to get only immediate child folders in a folder in powershell.
10 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Customize document version created on the first state
Tomasz Rychlewski
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…
10 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
How to avoid empty folders while querying Get-PWFolders
Ajomon George
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 …
10 months ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Comparing CustomAttributes sub-proprerties from Get-PWDocumentsBySearchExtended
Mike Dillner
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…
Answered
over 1 year ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Get a list of connected users
Brian Flaherty
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…
over 1 year ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Export-PWProjectAccessControl not outputting permissions correctly.
dkleinot
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…
over 1 year ago
ProjectWise
ProjectWise PowerShell Extensions Forum
switching refrences to there active versios
Niels Wehr
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…
Answered
over 1 year ago
ProjectWise
ProjectWise PowerShell Extensions Forum
Anyone know what the problem is with calling recursive common table expressions from the PowerShell Select-PWSQL Cmdlet?
Adrian Abshere
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…
Answered
over 1 year ago
ProjectWise
ProjectWise PowerShell Extensions Forum
View related content throughout ProjectWise
More
Cancel
>