Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

HOw to update excel sheet using powershell

$
0
0

Hi,

We have a small lab of 100 machines. I want to collect a the user name, logon time and logout time on a excel sheet which is PRESENT ON SERVER location (\\server\D$\list.xlsx). I have a script to collect the current user details and log duration time. I have scheduled this script to run when ever user logon to machine using GPO. BUT I AM UNABLE TO USE A CMDLETS WHICH UPDATE THESE DETAILS ON THE EXCEL SHEET, PRESENT ON SERVER LOCATION, IN 3 DIFERENT COLUMNS.

Ex => sheet format

User Name            Machine name                        Login Time                                               Logout Time

Joe                               M-1                                 5:00 am                                                      6:00 am

mark                            M-2                                 9:00 pm                                                     10:00 pm

Joe                               M-3                                 4:00 pm                                                       5:00 pm

Can a single sheet be updated from 100 machines even ever a user log's on to machine? Could you please suggest simple cmdlets to update that sheet.

Thanks for your help


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>