Differences between revisions 2 and 3
Revision 2 as of 2018-10-16 19:07:23
Size: 557
Editor: scot
Comment:
Revision 3 as of 2018-10-16 19:17:59
Size: 773
Editor: scot
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:


== List object from Registry - namely version of .NET installed ==

{{{
gci 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' | sort pschildname -des | foreach-object {$_.name; $_.GetValue("Version");}
}}}

Here is a list of Power Shell Scripts that are too cool to ignore

List of AD accounts and the last time they logged in

Get-ADUser -Filter * -SearchBase "dc=home,dc=scotnpatti,dc=com" -ResultPageSize 0 -Prop CN,samaccountname,lastLogonTimestamp | select CN, samaccountname,@{n="lastLogonDate";e={[datetime]::FromFileTime($_.LastLogonTimestamp)}} 

List Memory Installed

Get-WmiObject win32_physicalmemory | Format-Table Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,Capacity,Serialnumber -autosize

List object from Registry - namely version of .NET installed

gci 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' | sort pschildname -des | foreach-object {$_.name; $_.GetValue("Version");}

WindowsAdministration/PowerShellScripts (last edited 2024-02-06 23:03:14 by scot)