Compare commits

..

No commits in common. '3368a8651d2dbd07d8c58f472e6c8bc89da7a1fc' and 'fd0c66c0d51f140afd9a0052d45f1e0ab04ae842' have entirely different histories.

@ -4,10 +4,6 @@ Note: unless otherwise stated, replace any variable such as `$ComputerName` with
<br> <br>
## Computers
<br>
### Remotely Fetch a (Partial) Installed Program List for $ComputerName ### Remotely Fetch a (Partial) Installed Program List for $ComputerName
```powershell ```powershell
@ -24,72 +20,48 @@ Get-WmiObject win32_product -ComputerName $ComputerName | Where-Object {$_.$Colu
<br> <br>
### Remotely Fetch $ComputerName's Boot Time ### Fetch AD Groups with $SearchTerm in them
```powershell
Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName $ComputerName | slect csname, lastbootuptime
```
<br>
### Fetch $ComputerName's Group Membership
```powershell
Get-ADPrincipalGroupMembership (Get-ADComputer $ComputerName) | select-object name
```
<br>
### Remotely Fetch $ComputerName's Make & Model
```powershell ```powershell
Get-CimInstance -ComputerName $ComputerName -ClassName Win32_ComputerSystem | Select-Object -Property Manufacturer, Model Get-ADGroup -Filter 'name -like "*$SearchTerm*"' | Sort-Object | select Name
``` ```
<br> <br>
### Remotely Fetch $ComputerName's Serial Number ### Remotely Fetch $ComputerName's Boot Time
```powershell ```powershell
Get-CimInstance -ComputerName $ComputerName -ClassName Win32_bios | Select-Object -Property SerialNumber Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName $ComputerName | slect csname, lastbootuptime
``` ```
<br> <br>
### Remotely Fetch $ComputerName's Total/Free Storage ### Fetch $ComputerName's Group Membership
```powershell ```powershell
Get-WmiObject Win32_LogicalDisk -ComputerName $ComputerName -Filter DriveType=3 | Select-Object DeviceID, @{'Name'='Size (GB)'; 'Expression'={[math]::truncate($_.size / 1GB)}}, @{'Name'='Freespace (GB)'; 'Expression'={[math]::truncate($_.freespace / 1GB)}} Get-ADPrincipalGroupMembership (Get-ADComputer $ComputerName) | select-object name
``` ```
<br> <br>
### Remotely Fetch $ComputerName's BIOS Version ### Fetch $Username's Group Membership
```powershell ```powershell
Get-WmiObject -Class Win32_BIOS -ComputerName $ComputerName Get-ADPrincipalGroupMembership (Get-ADUser $Username) | select-object name
``` ```
## Users
<br> <br>
### Fetch $Username's Group Membership ### Fetch $ComputerName's Make & Model
```powershell ```powershell
Get-ADPrincipalGroupMembership (Get-ADUser $Username) | select-object name Get-CimInstance -ComputerName $ComputerName -ClassName Win32_ComputerSystem | Select-Object -Property Manufacturer, Model
``` ```
<br> <br>
## Groups ### Fetch $ComputerName's Serial Number
<br>
### Fetch AD Groups with $SearchTerm in them
```powershell ```powershell
Get-ADGroup -Filter 'name -like "*$SearchTerm*"' | Sort-Object | select Name Get-CimInstance -ComputerName $ComputerName -ClassName Win32_bios | Select-Object -Property SerialNumber
``` ```
<br>
Loading…
Cancel
Save