In this post, we will be creating a PowerShell function script file (.psm1) which will return an array of ProjectWise folder data including the fullpath. We will be using the following cmdlets to accomplish this task. Most of this will be done using SQL so you will need to be using a ProjectWise administrator account.… Continue reading HowTo: Get Folder Hierarchy
Author: Brian Flaherty
How To: Build ProjectWise Links
All of the ProjectWise related cmdlets are available using the PWPS_DAB module. At the time of this post, I am using version 23.2.6.0. Take a look at the help for each of the cmdlets to become familiar with their functionality, available parameters, etc. Get-PWCurrentDatasource Show-PWFolderBrowserDialog Get-PWDocumentsBySearch The first thing we need to do is… Continue reading How To: Build ProjectWise Links
HowTo: Remove Empty Folders Including Current Folder
In this post, we will be demonstrating how you can remove all empty folders from a specified folder. And then remove the current or specified folder if it does not contain and sub-folders or documents. All of the ProjectWise related cmdlets are available using the PWPS_DAB module. At the time of this post, I am… Continue reading HowTo: Remove Empty Folders Including Current Folder
HowTo: Determine if You are Still Logged In
I have run into some instances where my script will fail in the middle of processing due to my user account timing out. So, in this post I will show how to determine if you are still connected and how to resolve if you are not. Within my scripts I started adding the following if… Continue reading HowTo: Determine if You are Still Logged In
HowTo: FUNCTION Show-OpenFileDialog
In this post, I'll show a function I created for using the Open File Dialog within PowerShell. This gives you a quick way to select a document on your local system. FUNCTION Definition The following is the function wrapper which will contain the remainder of the code. <# .Synopsis Used to select a local file.… Continue reading HowTo: FUNCTION Show-OpenFileDialog
