hi everyone,
My very first post here and am still learning my way around PowerShell. I couldn't find anything that would relate to what I'd like to accomplish on my first ps1 script.
So here it goes.
I'd like to create a script that would prompt me which ost file to delete on a client ws. That would entail asking me for the computername and then mapping a drive letter for the computer's root. then open c:\users\%username%\app data\local\microsoft\outlook path.
Once in that folder, I'd like to scan for all ost files and prompt me which ost to delete.
Any suggestions is greatly appreciated. At the same time, I've written a test script already that deletes the ost file but I want to be extra cautious because people can have their gmail/yahoo mail ost file in there too.
Hence, I'd like to run the script on my system to dictate which ost to delete.
Thank you in advance,
Gnarly