I’m very new to powershell and wondered if somebody might be able to help with an issue please.
I’m trying to return the size of a home drive for a specific user. The code I have come up with is:
get-aduser -identity 'userADname' -properties homedirectory | get-childitem homedirectory -recurse | measure-object -property length -sum
I’m obviously replacing ‘userADname’ with a relevant AD username.
The error I’m getting is:
get-childitem : The input object cannot be bound to any parameters for the command either because the
command does not take pipeline input or the input and its properties do not match any of the parameters that
take pipeline input.
Thank you for any help.