![]() [ValidateScript( While ($TimeElapsed -lt $DurationInSeconds) The code for this powershell script is: Function Get-ScreenShot Than the screenshot is generated perfectly and fits for the whole 2)Īttempt 3 If the script is ran manually from the PowerShell ISE editor Hidden because of additional argument) (no. Time, there comes a pop-up powershell window (because of -windowStyle The Width, Height, Left and Top positions for fit-screen) (number 3)Īttempt 2 If the script is being started by task scheduler at defined The Screen definition is coded for parameter "Area" and it has defined Privileges) creates just a small resolution of active window (even if If the script is started manually with powershell (admin This script should do this automatically by task scheduler.Īttempt 1 Here´s a demonstration where the script was started When I tried the script with task scheduler on my PC because I needed to set up 2 different times for the day to generate a screenshot without any manual manipulation (like logging into remote pc then hitting the prtscrn button and save it to a file). The script is creating a screenshot of the whole background. What I have already tried is downloading a PowerShell script which fits every of the customer´s needs. On remote pc where the visualisation is running the script with task scheduler is doing just a " black window" image. There´s is one bug or maybe admin privileges but on my personal PC I can do fine screenshots with task scheduler. At least the screenshots should be saved to a network drive. I´m setting up an automated method of creating screenshots at defined times because the display is hard to manage manually only remotely. In production hall there´s a display where´s running a visualisation about productivity and it refreshes every 30 secs. ![]() ![]() The main goal of this case is to automatically create screenshots of the visualisation in the production hall in defined times. ![]()
0 Comments
Leave a Reply. |