When trying to determine what Properties can be selected for a script, pipe the cmdlet to Get-Member and the -join option to produce a list. For example:
(Get-Date | Get-Member -MemberType Property).Name -join ', '
Output:
Date, Day, DayOfWeek, DayOfYear, Hour, Kind, Microsecond, Millisecond, Minute, Month, Nanosecond, Second, Ticks, TimeOfDay, Year
@{N="PasswordLastSet";E={if ($_.pwdLastSet -gt 0){[DateTime]::FromFileTime($_.pwdLastSet)}else{$_.pwdLastSet}}}
Export-Csv -Confirm -Delimiter `t -Encoding Unicode -NoClobber -NoTypeInformation -Path $FullPath
PsExec Sample
$Credential = Get-Credential -Message "Enter username" -UserName "domain\name"
$ComputerName = "computer-vm1"
$ipAddress = "x.x.x.x"
Start-Process -FilePath "C:\windows\PsExec.exe" `
-ArgumentList "-s \\$ipAddress","cmd.exe /k prompt %computername% `$p & echo Time: %date% %time% User: %username% Computer: %computername% & whoami.exe & hostname & ipconfig | findstr IPv4 & echo Profiles & dir /B /AD C:\Users" `
-Credential $Credential
powershell.exe -NoProfile -Command "Get-CimInstance Win32_PnPEntity | Where-Object { $_.DeviceID -like 'ROOT\SMARTCARDREADER\*' } | Select-Object Name, DeviceID, PNPClass, Status"