November 2018
Intermediate to advanced
566 pages
17h 15m
English
Navigate to the location where you created files for lab usage:
PS> $FilesWithAge = Get-ChildItem . | Select-Object Name, Length, LastWriteTime
PS> $FilesWithAge | Add-Member -MemberType ScriptProperty -Name Age -Value { [math]::Round(((Get-Date) - $this.LastWriteTime).TotalDays) }
PS> $ComputerName = hostnamePS> $FilesWithAge | Add-Member -MemberType NoteProperty -Name ComputerName -Value $ComputerName
PS> $FilesWithAge | Add-Member ...
Read now
Unlock full access