I need to capture Desktop Screenshots from all the workstations of a client, but I don´t want to save these .jpg files on my Kserver, because it will consume a lot of space. Instead, I want this images to be saved at another server, actually, a file server at this specific client.
I started creating a "New Procedure"... First step: Create Desktop Screenshot
Using it, the .jpg files are saved on the User Profiles Directory of the KServer, for example: C:\Kaseya\UserProfiles\368905064566500\Docs.
How can I create these next steps?
Second Step: Copy this .jpg file from KServer and save on another location (client's file server)
Third Step: Remove .jpg file from KSerrver.
If there is any other easier way to do this, for example, capture the screenshots and save them directly on the client's server, I would appreciate the help.
Try this tool:
nircmd.exe loop 10 60000 savescreenshot c:\temp\scr~$currdate.MM_dd_yyyy$-~$currtime.HH_mm_ss$.png
Save the output to the local machine, then do your push to where ever you need. The down side is that they are in png format but there are converts that are able to be run via dos to get to a jpg.
I hope this helps. We are doing the same thing as it is too hard to get to the docs off the KServer.
I used these procedures:
1 - "Agent Procedures -> File transfer -> Distribute File"
Select server file: nircmd.exe
Full path and filename: C:\Windows\System32\nircmd.exe
2 - Create folder to save the captures
3 - Capture the screen
nircmd savescreenshot "C:\temp\Screens\~$sys.computername$-~$sys.username$-~$currdate.ddMMyyyy$-~$currtime.HH$h.png"
4 - Convert from .png to .jpg
nircmd convertimages "C:\temp\Screens\*.png" .jpg
5 - Copy image file .jpg to destination folder on the file server
copy "C:\temp\Screens\*.jpg" "destination folder path"
6 - Delete image files .png e .jpg from source path
nircmd execmd del "C:\temp\Screens\*.png
nircmd execmd del "C:\temp\Screens\*.jpg