This is why I use the Task Scheduler to schedule tasks on remote computers. The server-side script is on a server, which should be considered secure. Thus the maintenance password can be coded in plain-text in the script. If anybody can reach the script, then he already compromized security or is an administrator anyway.

The client-side will only contain the encrypted password. The whole concept is illustarted in my KSMS posts.
_________________________
There are two types of vessels, submarines and targets.