• Get-PWConnectionClientToken failing

    some time yesterday morning, and continuing on into today, calls to Get-PWConnectionClientToken are now returning and empty string and emits three warnings: WARNING: Can't read token WARNING: Value cannot be null. Parameter name: s This is occurring…
  • 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…
  • How do i map environment property to each document?

    As far as i understand, Environment applies to a single folder. However, in that single folder there might be numerous documents and all of them can inherit properties from the Environment (visible in Properties - Attributes tab). Furthermore, each individual…
  • Copy and Edit a CSB?

    Is it possible to copy, then edit the Managed Workspaces? When creating a Project in ProjectWise, we usually copy an existing Role config, rename, edit the CSB to suit then apply to the new Project. I have seen the New-PWManagedWorkSpaceConfigBlock…
  • How to suppress warnings when a recursive run hits the end of the items list?

    I have a functioning script that checks all the given user's Userlist memberships (and those Userlists' memberships in another Userlists, if there are any). Here is how the typical output looks like: The last 2 userlists ("Test User List" and "RBR…
  • The problem with search while using Get-PWUsersByMatch cmdlet

    I noticed a strange issue when trying to find a user in PW by his/her name. For example, I know 100% that a user "_admin_98623" exists in PW Administrator. However, if i provide this username as an input to my script, I get a warning that such user…
  • How check the entire User List inheritance chain (when a User List is a member of another User List and so on)?

    I was reading a tutorial on how to get a User List that a certain User is the member of and now I'm wondering if there is a method/cmdlet to verify whether a User List is actually a member of another User List (and thus inherits the permissions from the…
  • Set-PWWorkAreaConnectionUserSync

    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…
  • How do I list files and subfolders of a specific folder?

    I was trying to follow along various tutorials online, yet still having trouble to perform such a simple task as listing the files/subfolders within a specific directory. For example, in PW Explorer i manually navigate to "raica-pw.bentley.com:raica…
  • Installing PWPS_DAB on Server (WARNING: Error: Unable to load DLL 'dmscli.dll')

    Hello All, We are seeing the following error when running a PowerShell Script on a Windows Server 2016 Standard server: The following conditions are true: ProjectWise Explorer CONNECT Edition, Version 10.00.03.140 installed. ProjectWise…
  • CmdLet for getting the WSG URL

    Is there a cmdlet or a specific way to get the WSG URL based on the datasource that we are running ?
  • Connection Client Could not be Accessed - unnown error accured

    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…
  • Update all Folders to Read Only with current UAC Membership

    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…
  • Update User IdentityProvider in PowerShell

    How can I update user's Identify provider column using PowerShell?
  • Report Saved Search to excel, with custom attributes

    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…
  • 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…
  • 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:…
  • 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…
  • How to get immediate child folders in a folder

    How to get only immediate child folders in a folder in powershell.
  • 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…