Hi All, and thanks in advacne for your help large or small.
A bit of a newbie to the powershell world and I'm trying to count the contents of a folder on a remote server.
I know that:
Get-ChildItem \\ServerName\c$\foldername -recurse | Measure-Object -property length -sum
works a treat.
However I'm trying to make the server name a variable, by user input, but I can't get the path to accept any variable.
Any help would be very appreciated.