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

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file