Hey guys, I'm back again. Been working on this automated AD User creation script for weeks now. I got it all working but there's one more piece i want to integrate into the script
i have a folder c:\new_users that a linux server copies files to per a cron job. and a powershell script runs against this folder and processes users to import into AD.
What im trying to do is a small pre-cursor script that will check if a .csv file(s) exists in the directory. If one or several do, then execute the script otherwise i want it to die out.
Trying to eliminate any unnecessary processes from running if not needed.
I can't seem to find the powershell equivalent of "if exist"
any help is appreciated on this one.
Thanks
Rich