#PowerWiseScripting

PowerShell Performance Win: A One-Line Change That Saved 50+ Hours

This is a quick post, but I felt it was worth sharing—especially for fellow ProjectWise users and PowerShell scripters who work with large datasets. Recently, I was working on a script to generate a comprehensive report of all documents within a complex ProjectWise folder hierarchy. The scope? A whopping 29,240 folders and over 420,000 documents.… Continue reading PowerShell Performance Win: A One-Line Change That Saved 50+ Hours

#PowerShell, #PowerWiseScripting, #ProjectWise, PWPS_DAB

HowTo: Copy Documents To Folder

In this post, we will be creating a function to add functionality to the Copy-PWDocumentsToFolder cmdlet provided with the PWPS_DAB module. The cmdlet will delete and replace existing documents if the -CreateVersion parameter is not included. This new function will address this shortcoming in the cmdlet. All of the ProjectWise related cmdlets are available using… Continue reading HowTo: Copy Documents To Folder

#PowerShell, #PowerWiseScripting, #ProjectWise, PWPS_DAB

HowTo: Rename Folders with Special Characters

In this post, we will be renaming folders with special characters based on the spreadsheet created in the last blog post. Data contains following columns respectively: ProjectID Name FullPath URN All of the ProjectWise related cmdlets are available using the PWPS_DAB module. At the time of this post, I am using version 24.0.1. Take a… Continue reading HowTo: Rename Folders with Special Characters

#PowerShell, #PowerWiseScripting, #ProjectWise, PWPS_DAB

HowTo: Get Folders with Special Characters

In this post, we will be generating a report listing all folders which contain special characters. Personally, I do not understand why there are ever special characters in folder names. These characters can cause issues with other applications. Prime examples are the backslash '\' or forward slash '/' which can cause path issues with various… Continue reading HowTo: Get Folders with Special Characters

#PowerShell, #PowerWiseScripting, #ProjectWise, PWPS_DAB

HowTo: Use Snippets

In this post, I will provide a sample code snippet to be used within the PowerShell ISE. Snippets are a great way to simplify and improve your coding within the PowerShell ISE. It ensures consistency of code within your PowerShell scripts. Create New Snippets File A snippet file can be created in the following folder.… Continue reading HowTo: Use Snippets