Tuesday, February 3, 2015

Retrive folder created date in powershell

Why do you want to use SMO here, it don't make sense. Why an additional variable for the result, just pipe it to out-file =>



$dir = "C:\temp"
Get-Item "$dir" | Select CreationTime | Out-File 'C:\temp\creationtime.txt'





Olaf Helper


[ Blog] [ Xing] [ MVP]

No comments:

Post a Comment