This restore will return the error "Your user name and password are not defined.". The only difference is the addition of a switch to tell gbak to run through the services manager instead of directly through native code.
Note that this version (a backup) also works, so even though it runs through the services api!
I bring this example up because I have been working on getting existing (and working) services api code to work with new trusted authenticated mechanism. It appears only services that use the security inherit in the attach_database mechanism will work. Most service api calls will fail with bad user name and password.