Good.
A new tip, since that last stuff was all written.
MCWS (the REST service that
Media Network is built upon) now has commands that let you execute
Command Line and
MCC commands remotely. This means, among other awesome things, that you no longer need to resort to any PowerShell trickery to close the remote copy of MC in order to "take control" of the Library from your client.
So, for example, if you want to close a copy of MC that is running a Library Server, you only need to visit this "page" in a browser:
http://<SERVER_ADDRESS>:<PORT>/MCWS/v1/Control/CommandLine?Arguments=/CloseOr, to use the
MCC_EXIT command to do the same, you'd use:
http://<SERVER_ADDRESS>:<PORT>/MCWS/v1/Control/MCC?Command=20007,1Unfortunately, shutting it down means it will no longer respond to commands via MCWS, so if you do this, you'd still need to use trickery to start it back up again. So, instead, don't shut it down. Make it switch Libraries. First, you'll need an alternate (junk) Library in MC to switch to. If you still have the Default Library in MC (the one it creates by default in its AppData directory), but your main Library is a different one, so you don't use the default one for day-to-day operation, you could just switch to that. If you use the Default Library, just make a new one in the
Library Manager. For example, make a new blank Library called "On Hold".
Import a few files into it, so it doesn't constantly want to do the
First-Use Scan every time you switch to it. Then, when you want to switch to it do:
http://<SERVER_ADDRESS>:<PORT>/MCWS/v1/Control/CommandLine?Arguments=/Library "On Hold"When you're done messing around with the Library on your client machine, and you want to switch back, do:
http://<SERVER_ADDRESS>:<PORT>/MCWS/v1/Control/CommandLine?Arguments=/Library "My Real Library's Name"(Substituting the real Library names, of course.)
Of course, this would make you Authenticate each time you use one of them (or once per session anyway), but it uses standard HTTP Authentication, so you can craft your URL like so:
http://<USERNAME>:<PASSWORD>@<SERVER_ADDRESS>:<PORT>/MCWS/v1/Control/CommandLine?Arguments=<COMMAND>Unfortunately, the latter doesn't work with modern versions of IE and it is tough to make a shortcut that works with it (thanks spoofers). There's a solution though...