Powershell Scheduled Task communications
i have powershell script run standard user starts scheduled task run admin maintenance tasks. scheduled task runs full admin rights on system. allows non-admin user start task on demand without needing admin credentials.
all works right now, except scheduled task able communicate info logged in user regarding status of task. if there no privilege issues involved, use start-job, receive-job, etc. info task. however, because task runs under different credentials, have use start-scheduledtask doesn't allow interprocess communication can find.
in current design, when background job completes schedules 2nd task (running original user) uses vbscript wshshell.popup display message original user giving completion status info of admin task. not elegant, admit, , doesn't allow user see progress messages while task running.
can of powershell gurus think of way can achieve goals??
thanx replies...
thereis no communisation. have write special program ask. easiest thin bre sue text file user has read access , "tail" fie.
get-content logfile.txt -tail 1 -wait
as each line written displayed in users console.
\_(ツ)_/
Windows Server > Windows PowerShell
Comments
Post a Comment