Browse Source

Minimal version due to specific requirements

David Petrić 8 months ago
parent
commit
67509de14c
2 changed files with 29 additions and 1 deletions
  1. 29
    0
      minimal.ps1
  2. 0
    1
      runme.ps1

+ 29
- 0
minimal.ps1 View File

@@ -0,0 +1,29 @@
1
+$hostname = $env:COMPUTERNAME
2
+Start-Transcript -path $env:userprofile\Documents\enum-$hostname.txt
3
+Write-Host "Gathering services"
4
+Start-Sleep 1
5
+Write-Output "Working"
6
+Get-Service
7
+Write-Host "Getting basic system information"
8
+Start-Sleep 1
9
+Get-ChildItem env: | ft Key,Value
10
+Write-Host "IIS sites pull"
11
+Start-Sleep 1
12
+Get-IISSite
13
+Write-Host "List site objects"
14
+Start-Sleep 1
15
+Get-IISServerManager
16
+Write-Host "Get information from IIS Application Pool"
17
+Start-Sleep 1
18
+Get-IISAppPool
19
+Write-Host "Pulling running processes, including resource usage"
20
+Start-Sleep 1
21
+Get-Process | where {$_.ProcessName -notlike "svchost*"} | ft
22
+Write-Host "List all tasks and their state"
23
+Start-Sleep 1
24
+Get-ScheduledTask | where {$_.TaskPath -notlike "\Microsoft*"} | ft TaskName,TaskPath,State
25
+Write-Host "Pulling app startup list"
26
+Start-Sleep 1
27
+Get-CimInstance Win32_StartupCommand | select Name, command, Location, User | fl
28
+Start-Sleep 1
29
+Stop-Transcript

+ 0
- 1
runme.ps1 View File

@@ -44,4 +44,3 @@ Get-NetIPConfiguration | ft InterfaceAlias, InterfaceDescription, Ipv4Address
44 44
 Write-Host "Copying hosts file"
45 45
 Start-Sleep 1
46 46
 Get-Content $env:windir\System32\drivers\etc\hosts | Out-String
47
-Stop-Transcript