Differences between revisions 1 and 2
Revision 1 as of 2018-09-26 21:11:43
Size: 373
Editor: scot
Comment:
Revision 2 as of 2018-10-16 19:07:23
Size: 557
Editor: scot
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:

== List Memory Installed ==

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

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

WindowsAdministration/PowerShellScripts (last edited 2024-08-30 00:21:07 by scot)