Collections:
Other Resources:
Get File Properties in Windows PowerShell
How to get file properties in Windows PowerShell? I want to know when the file was originally created.
✍: FYIcenter.com
If you want to get all properties of a file in Windows PowerShell,
you can use the "Get-Item ... | Select-Object -Property *" pipeline.
Here is good example of getting file properties in Windows PowerShell:
PS C:\fyicenter> Get-Item C:\Windows\System32\shell.dll | select-object -Property *
PSPath : Microsoft.PowerShell.Core\FileSystem::C:\Windows\System32\shell.dll
PSParentPath : Microsoft.PowerShell.Core\FileSystem::C:\Windows\System32
PSChildName : shell.dll
PSDrive : C
PSProvider : Microsoft.PowerShell.Core\FileSystem
PSIsContainer : False
VersionInfo : File: C:\Windows\System32\shell.dll
InternalName: SHELL
OriginalFilename: SHELL.DLL
FileVersion: 3.10
FileDescription: Windows Shell library
Product: Microsoft® Windows(TM) Operating System
ProductVersion: 3.10
Debug: False
Patched: False
PreRelease: True
PrivateBuild: True
SpecialBuild: False
Language: English (United States)
BaseName : shell
Mode : -a---
Name : shell.dll
Length : 5120
DirectoryName : C:\Windows\System32
Directory : C:\Windows\System32
IsReadOnly : False
Exists : True
FullName : C:\Windows\System32\shell.dll
Extension : .dll
CreationTime : 7/13/2009 5:41:22 PM
CreationTimeUtc : 7/13/2009 9:41:22 PM
LastAccessTime : 7/13/2009 5:41:22 PM
LastAccessTimeUtc : 7/13/2009 9:41:22 PM
LastWriteTime : 7/13/2009 5:41:22 PM
LastWriteTimeUtc : 7/13/2009 9:41:22 PM
Attributes : Archive
As you can see, the original creation time is "CreationTimeUtc: 7/13/2009 9:41:22 PM".
⇒ Get Directory Properties in Windows PowerShell
⇐ Delete Directory or File in Windows PowerShell
2016-10-22, ≈27🔥, 0💬
Popular Posts:
Can I disable Windows service "DCOM Server Process Launcher" to speedup my computer? Windows service...
What is "Net.Pipe Listener Adapter" in my Windows 7 service list? And how is "Net.Pipe Listener Adap...
What is "SynTPEnh Caller Service" in my Windows 7 service list? And how is "SynTPEnh Caller Service"...
Can I remove startup application "ifrmewrk.exe - Intel Wireless Framework" to speedup my computer an...
What is "Wired AutoConfig" in my Windows XP service list? And how is "Wired AutoConfig" service rela...