Powershell Assistance

Keith Tan 1 Reputation point

Hi, I would really appreciate any help that I can get here. So this is the scenario. I have currently created a powershell script to capture all suspicious login. So everyday, any new entries will be edited in the original .csv file. What I would like to do is to create a copy of the original and edit the copied version and then capture all suspicious login. Everyday will be the same. Would really really appreciate any help here. Thanks!

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,456 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,681 Reputation points

    Instead, you can copy and rename existing file to Capture_<todaysDate>.csv and run your existing code which will edit new entries in your original Capture.csv file and continue the same process everyday

    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav