Ive readup on WMI and trid tweaking examples online to no avail. Im using WMI as it has remoting capablities.
I need to query the date a folder was created i tried a zillion different combinations but cant get it to work. My last attempt that demonstrates my thinking is below is below
I need to get the folder date of the user folder and then intend to round of the date then compare this with the dates of other users folders and select the oldest.
I tried get-item etc. but I’m not aware of any PowerShell cmdlet that will let me get this info remotely.
I’m using powershell 4
I dont want to tamper with the remote machines settings regarding winrm windows remoting so wont be using invoke-command on this occasion
That particular error has occurred with many other attempts. Does it have to do with the creation date being an array. iw ould imagine the creationdate property is one object ?
Hmm, that’s odd. There should be single quotes around ‘c:\users\$user’. I’m not sure if I forgot to type them, or if our forum software is being “helpful” again.