Click here to Skip to main content
15,888,301 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

I did a script which will list me all the User and there home drives mentioned below.

Now i want to check whether those are valid path or not.

Manually we can copy-paste and check but how to do it using script.

please help me on this.

What I have tried:

Get-ADUser $computer -properties homedrive, homedirectory | Select Name, HomeDrive ,HomeDirectory | Export-CSV "$env:USERPROFILE\Desktop\HomeDriveDetails.csv" -notype -Append
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900