Category: Powershell

  • Export Json to Csv in PowerShell

    In Big-data era, the data are stored in flat files which is supporting wider range of technology and systems. Json is serialized data to feeds into multiple development language and automation scripts in devOps system. Export Json to Csv would common question whoever doing data across platform, here are the simple script to claim your…

  • PowerShell script to delete files from list and output list of deleted file

    Delete files listed in CSV the PowerShell script will read and clean it up from physical location. $Termed_Users = “C:\Data\Termed_Users.csv” $Home_Folders = “X:” $UserList = Import-Csv $Termed_Users $UserList | ForEach-Object { $ID = $_.ID $User_Home = $Home_Folders + “\” + $_.ID Remove-Item -recurse -force $User_Home -erroraction silentlycontinue }