My mistake, I apologize for any confusion (and extra work on your part). I was "debugging" Get-PWUsersByMatch which DOES return those two columns. After I realized that you were asking about Get-PWUserByLastLogin, I walked through…
I am far from a PowerShell expert (Kevin van Haaren is far better at this than I am). However, if you need to sign into a Datasource with an "admin" User, then you do not need to use the -Admin parameter when using the New-PWL…
Thanks a lot Kevin van Haaren for wonderful explanation.
Thanks Kevin van Haaren and Brian Flaherty for suggestions. It after breaking Get-PWUsersByMatch statement and using Try Catch approach the -erroraction stop is working as expected. For others, more info on TRIM method can be found on below link.
I need to add thousands of users into hundreds of PW Groups. The User's E-mail id and respective Group name is available in XLSX form. Attached below.
I'm using 126.96.36.199 version of pwps_dab module.
Now, if there is an error adding specific…
Kevin van Haarenlet me know if the below script works for the above requirement
$FindPath = "Top Folder\Next Folder\Another Folder\They Go On Forever\Many More"
# 1. Fix paths that have slashes instead of backslashes# 2. Trim leading and trailing…
Thanks Brian Flaherty & Kevin van Haaren for your suggestions and time.
Kevin van Haaren,
FWIW, the setting mentioned above is for SEARCHES within ProjectWise Explorer. It doesn't change the behavior of the underlying database.
Yes, the PowerShell modules are using API calls mostly, and occasionally (when necessary),…
Great !! Thanks a lot Kevin van Haaren,
I was looking for a way to find out time remaining to complete the script.
for example: - Approx. time need to complete the script is 5 minutes 45 sec..
Hi Kevin van Haaren,
I used your suggestion in my script and it worked perfectly.
I would like to take one further step. Would it possible to find out time required to complete script and show it somewhere in script?
Any suggestion would be helpful.
Thanks a lot Kevin van Haaren for suggestions.
I'll use it in my script.
Thanks a lot Kevin van Haaren
It helped and the progress bar is now showing the progress as expected.
I can't say if the dmskrnl.cfg conforms to all the "rules" of .ini files, but it was "designed" "back in the day" of DOS and early Windows, so .ini files were pretty common back then. And I have also used some "common…
It would be helpful if you could provide more details. Obviously something has changed, so what has changed that you are aware of?
Has ProjectWise changed on the machine you are running your script from?
How about ProjectWise on the server…
I suspect that you are correct, i.e. hashtable in PS will work just fine with a NULL value. I just haven't dug into the source code behind the Cmdlets yet. I suspect that there is a bug in the way the code behind how the hashtable…