< Back

Save-ScreenCapture

Mon Jan 13, 2020 8:29 am

NAME Save-ScreenCapture



SYNOPSIS

Takes the screeshot of all displays to bmp file.





SYNTAX

Save-ScreenCapture [[-OutputFolder] <String>] [[-RepetitionDurationSeconds] <Int32>]

[[-RepetitionWaitMilliseconds] <Int32>] [<CommonParameters>]





DESCRIPTION

Takes the screeshot of all displays to bmp file. You can define duration for which screeshots should be taken and

how long it should wait before each screeshoting cycle.





PARAMETERS

-OutputFolder <String>

Output folder to store final screenshots in BMP format.



Required? false

Position? 1

Default value "$env:Temp"

Accept pipeline input? false

Accept wildcard characters? false



-RepetitionDurationSeconds <Int32>

Duration in seconds for how long screenshots should be taken.



Required? false

Position? 2

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-RepetitionWaitMilliseconds <Int32>

Duration in milliseconds for how long the script should wait before each screenshotting cycle during the

defined RepetitionDurationSeconds.



Required? false

Position? 3

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



C:\\PS>Save-ScreenCapture



Initiates single screenshot for each display and save outputs to the TEMP folder.









-------------------------- EXAMPLE 2 --------------------------



C:\\PS>Save-ScreenCapture -OutputFolder 'C:\\Users\\Foo\\AppData\\Local\\SCRs' -RepetitionDurationSeconds 3600

-RepetitionWaitMilliseconds 300000



Initiates screenshotting to run for 1 hour with 5 minutes waiting interval and saves output files to the folder

C:\\Users\\Foo\\AppData\\Local\\SCRs











RELATED LINKS