• Create userlist from template

    Hi, Is there a way to create a userlist from another one? Let's say i have a userlist name prov_serv, i want to create an other who is identical to prov_serv but with a different name in powershell. Is it possible?
  • 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…
  • 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…
  • Need to get list of folder paths of Folders with the word Voided in its name to a spreadsheet so I can later rename

    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…
  • 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 ?
  • Performance monitor - Merge SQLite databases if running from separate regions - Just Sharing

    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…
  • 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 version Sequence

    Is there a way to update the sequence of versions when they are scrambled? The large set of data I have has this problem so a batch fix through PowerShell I would think would be a better solution versus deleting and reimporting the documents in the correct…
  • Set-PWDocumentVersion

    Hello, I'm trying to change the Version of documents building off the following script, but receiving errors that the parameters don't exist. New-pwlogin -usegui $InputDocuments = Import-Csv "ENTER FILE PATH.csv" ForEach($A in $InputDocuments…
  • Which cmdlet can get the Last Login Computer Name ?

    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.
  • 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
  • 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

  • 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…
  • New-PWRenditionRequest add the possibility to choose the Profile-Settings like File-Presentation and so on

    Atm its not possible to create an rendition with this request whit an pre defined File-Presentation which is already part of this profile. Only the default one can be used.
  • 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…
  • Get-PWUserByLastLogin

    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…
  • HowTo: FUNCTION Show-OpenFileDialog

    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/
  • 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…
  • Remove-PWFolder not putting folder to recycle bin

    I am trying to delete a set of folders weekly. But I also want those folders deleted should list in "Deleted Items" section in ProjectWise. But unfortunately it is not working for me. Please help. Script: Remove-PWFolder -FolderID '486359' -RemoveDocuments…
  • What is the correct usage of New-PWLogin with the -Token argument?

    with: $loginSplat = @{ DatasourceName = 'server:dsn' BentleyIMS = $true UserName = 'first.last@domain.com' Token = $AccessToken NonAdminLogin = $true } New-PWLogin @loginSplat I am getting error 58064 The access token was obtained…
  • How to get the list of parent folders in a data source

    I want to get the list of parent folders in ProjectWise data source using powershell Is there a way to extract them using powershell?
  • 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…