#PowerShell, #PowerWiseScripting, #ProjectWise, PWPS_DAB

HowTo:Use New .Methods

Be sure to check out my Scripting4Crypto initiative. It’s a fun way to get into using cryptocurrencies all while getting your PowerShell needs met.

With this latest version of the PWPS_DAB module (version we have incorporated methods into some of the ProjectWise objects; Users, Groups, UserLists, and Workflows. Using methods allows you to get additional information related to the particular object quickly without calling other cmdlets. We will look at each of the various objects.

ProjectWise Users

Lets take a look at the ProjectWise User object first. 

There are three new methods available with the ProjectWise User object. 

# Use Get-Member and only display the available methods.
Get-PWUsersByMatch | Get-Member | Where-Object MemberType -ieq 'method'


Get Project User Object

Lets select a user to test with.

# Get User object
$pwUser = Get-PWUsersByMatch -UserName ‘brian.flaherty


Get Last Login Date / Time

The GetLastLogin will return the last date and time the selected ProjectWise User has logged in.


List Group / UserList Membership

Now lets look at the membership methods.




Hopefully, you find this useful. Please let me know if you have any questions or comments.  If you like this post, please click the Like button at the bottom of the page.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.