First of all, this is one of those borderline questions between serverfault and superuser. In the end, I decided it belonged here because of the fact that most aspects of it revolve around a domain environment.
As another Caveat, this is a very specific scenario to a very general question. If just the question itself were being asked, the obvious answer would be to use a Startup Script rather than a Logon Script. But, that's not really an option here.
First of all, the ultimate goal of this is, quite simply, to achieve true roaming profile deployment in Windows 10, Without having to resort to a third party app. Coming down to the home stretch in this design, we approached the final hurdle, and it was a real hurdle. How do we roam the start menu?
After many, and I do mean many, different ideas and trials, we figured out what does work.
Copying the %LocalAppData%\TileDataLayer\Database folder
Great, so I can copy this entire folder to a network share and recopy it to any computer to get a truly roaming start menu. Now, I want to automate this process using a logon script to copy from the share and a logoff script to copy to the share. Easy, right? Wrong, in order to copy the folder you must first stop the "Tile Data Model Server" service (which by the way only stops for a fraction of a second then auto starts again).
Now, we come to the crux of the problem. The Net Stop command requires you to be running an elevated prompt, the logon/logoff scripts only run in the local user context and a Startup/Shutdown script isn't going to be able to copy a specific user's start menu. Obviously, I can't split this into two separate scripts and shove one in Startup and one in Logon, because the service only stops for a split second.
Ultimately, my current idea is to either find some way to run net stop elevated in an unelevated prompt, or have the command run without elevation. Is there a way to do either? Or, is there a simpler way to get that folder to roam?
I am intimately aware of the workaround of running the script as a scheduled task, but find this to be a terrible solution.