Browse By Tags

  • Building Folder FullPaths

    Does anyone have a quick way of building folder fullpath values for many folders? I have created a sql query that will do it very fast, however, using Select-PWSQL will not return the fullpath.
  • Multi-threading or Using Jobs

    Hello All, I have a script which loops through multiple datasources to gather data for each, populate a datatable and export to an Excel file. Simple enough. My question is, has anyone tried to using either some type of multi-threading or jobs, to…
  • 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…
  • 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…
  • 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
  • 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…
  • 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…
  • Get-PWUserByLastLogin returning last login date 1-1-1979

    Get-PWUserByLastLogin returning last login date 1-1-1979 $users = Get-PWUserByLastLogin -Verbose
  • Issue with Update-PWFolderSecurity: Min Max error.

    Security Protocol now set to TLS 1.2 PWPS_DAB Version is 2.1.18.0 This is a 64-bit process. All, I am experiencing an issue with the Update-PWFolderSecurity command. I am inconsistently getting an error about Min and Max: Update-PWFolderSecurity…
  • How to get immediate child folders in a folder

    How to get only immediate child folders in a folder in powershell.
  • How to avoid empty folders while querying Get-PWFolders

    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 …
  • New-PWRichProject how to mention Environment

    New-PWRichProject how to mention the Environment
  • Comparing CustomAttributes sub-proprerties from Get-PWDocumentsBySearchExtended

    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…
  • Mention attributes when creating a document

    Is there any option to send attributes values while creating file using " New-PWDocument "? New-PWDocument -FolderPath '\testing\' -FilePath $f.FullName -Verbose
  • Get a list of connected users

    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…