shaitan667
n00b
- Joined
- Aug 31, 2012
- Messages
- 10
Hi All,
I pretty much have no experience with powershell, but think it is going to be my easiest option to acheive the following. I have a CSV containing folder names (that correlate to AD login names) and this is an outline of what I need to do -
Need to verify that names in the CSV exist within AD
If user doesn't exist, then need to move folder from \\server\home$\ to a staging folder
Output results to CSV
Basically, we have an account deletion script, but it only deletes the contents of the users home folder, instead of the the actual folder, so we now have alot of empty folders![Frown :( :(](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Is anyone able to assist me with this? Or already have something like this in existence that they wouldn't mind sharing?
Thanks
I pretty much have no experience with powershell, but think it is going to be my easiest option to acheive the following. I have a CSV containing folder names (that correlate to AD login names) and this is an outline of what I need to do -
Need to verify that names in the CSV exist within AD
If user doesn't exist, then need to move folder from \\server\home$\ to a staging folder
Output results to CSV
Basically, we have an account deletion script, but it only deletes the contents of the users home folder, instead of the the actual folder, so we now have alot of empty folders
Is anyone able to assist me with this? Or already have something like this in existence that they wouldn't mind sharing?
Thanks