Hello all users of this forum,
I’m new here and powershell too:)
I write a simple code to list open file on the file server:
get-smbopenfile | Where-object -property path -like "*com*" | ft ClientUsername, path -wrap -autosize
but I need also an actual date and time in additional column, I’m trying as below but it didn’t work
get-smbopenfile | Where-object -property path -like "*com*" | ft ClientUsername, path, get-date -wrap -autosize
Can I ask for any suggestions?
Thx