We are getting ready to migrate files stored on a storage area to a new NAS. The problem is, we have hundreds of users with thousands of documents either checked out or exported. We want to try and provide an easy way for them to quickly go back and check them out to lock them immediately following our storage migration. I spoke with Bentley Technical support, they suggested I try posing questions here in the PowerShell BC forums.
I'm not sure on this one. I think it's possible but i've not messed with writing anything like it. Brian Flaherty might be able to help you with this when he sees it. I'm not sure the the Add-PWSavedSearch cmdlet supports searches for file status, out to status or storage area. You can build a search like that manually in PW Explorer.
I'm not sure where you saw a reference to Examples.ps1. If you install the PWPS_DAB module (install-module pwps_dab from powershell running as administrator) there are some sample scripts in:
(that may be C:\Program Files (x86)\WindowsPowerShell\Modules\pwps_dab\220.127.116.11\Scripts if you install in 32-bit powershell)
Is this actually necessary? We frequently move entire storage areas between servers and have never bothered to have users check in files, when the user goes to check in the file after the move it automatically goes to the new location. Our procedure is:
Kevin,Thank you for the explanations to each of my items. I greatly appreciate the assistance.
As far as moving storage areas, a scenario to show why I was concerned:
The existing Storage Area 1 is set to <\\server01\d$\storage\bentpw> under which our current files live.
The new Storage Area 2 is set to <\\server02\tulsapw\storage\bentpw> which copies of the files from Storage Area 1 live.
If a file is checked out from Storage Area 1 with a path of \\server01\d$\storage\bentpw\<filename>.dgn then after the migration, wouldn't checking back in the file mean it would try going back to <\server01\d$\storage\bentpw> or does it know where to check it back in since the storage area definition would be changed in the dmskrnl and storage area definition?
If we could get away with not having anybody check anything back in, that would be a HUGE time saver.
files only know which storage area they go to, they don't remember the actual path.
roughly: The client looks up the storage area by storage area ID number, it fetches the current host name, contacts that host, sends the file to the host. The host is responsible for putting it in the correct path.
Changing the name of the storage area, the host and path are all OK with checked out files.
I wouldn't take my word for it, Bentley should confirm that (and you can test by creating a small storage area for testing and putting some files in it, checking them out and moving it around).