UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit e78b4bea authored by Joshua Parsons's avatar Joshua Parsons
Browse files

gensite

parent ff09f994
No related merge requests found
Pipeline #117934 passed with stages
in 11 seconds
......@@ -822,8 +822,8 @@ PS C:\> Enter-PSSession -ComputerName 10.50.22.95 -Credential $Creds
Network Account Domain: -
Logon GUID: {1ec03e8e-456a-d587-54ad-132247c51a40}
# Querying Windows PowerShell operational logs on a remote computer
[10.50.22.95]: PS C:\Users\Administrator\Documents> get-winEvent -Logname Microsoft-Windows-PowerShell/Operational -MaxEvents 5 | Select-Object -Property TimeCreated,LevelDisplayName,Message
# Querying Windows PowerShell operational logs on a remote computer (PowerShell 5.1)
[10.50.22.95]: PS C:\Users\Administrator\Documents> Get-WinEvent -Logname Microsoft-Windows-PowerShell/Operational -MaxEvents 5 | Select-Object -Property TimeCreated,LevelDisplayName,Message
TimeCreated LevelDisplayName Message
----------- ---------------- -------
......@@ -832,6 +832,88 @@ PS C:\> Enter-PSSession -ComputerName 10.50.22.95 -Credential $Creds
1/24/2024 3:46:47 PM Warning Creating Scriptblock text (1 of 1):...
1/24/2024 3:46:47 PM Warning Creating Scriptblock text (3 of 3):...
# Querying Windows PowerShell operational logs on a remote computer (PowerShell 7)
[10.50.22.95]: PS C:\Users\Administrator\Documents> Get-WinEvent -Logname PowerShellCore/Operational -MaxEvents 5 | Select-Object -Property TimeCreated,LevelDisplayName,Message
TimeCreated LevelDisplayName Message
----------- ---------------- -------
11/27/2024 7:10:49 AM Warning Creating Scriptblock text (6 of 6):...
11/27/2024 7:10:49 AM Warning Creating Scriptblock text (5 of 6):...
11/27/2024 7:10:49 AM Warning Creating Scriptblock text (4 of 6):...
11/27/2024 7:10:49 AM Warning Creating Scriptblock text (3 of 6):...
11/27/2024 7:10:49 AM Warning Creating Scriptblock text (2 of 6):...
# Querying Windows event logs on a remote computer, filtering for a specific event ID, a specific string, and formatting as a text wrapped table.
[10.50.22.95]: PS C:\Users\Administrator\Documents> get-winevent -logname Security | Where-Object {$_.ID -eq '4624' -and $_.message -match "success"} | Select-Object -First 1 | ft -wrap
ProviderName: Microsoft-Windows-Security-Auditing
TimeCreated Id LevelDisplayName Message
----------- -- ---------------- -------
12/3/2024 3:50:47 PM 4624 Information An account was successfully logged on.
Subject:
Security ID: S-1-0-0
Account Name: -
Account Domain: -
Logon ID: 0x0
Logon Information:
Logon Type: 3
Restricted Admin Mode: -
Virtual Account: No
Elevated Token: Yes
Impersonation Level: Impersonation
New Logon:
Security ID: S-1-5-18
Account Name: POWERSHELL-PEDC$
Account Domain: PSPE.MIL
Logon ID: 0xB5BECE4
Linked Logon ID: 0x0
Network Account Name: -
Network Account Domain: -
Logon GUID: {765d4bd6-603d-2c63-5649-bed5ea0587d6}
Process Information:
Process ID: 0x0
Process Name: -
Network Information:
Workstation Name: -
Source Network Address: ::1
Source Port: 60715
Detailed Authentication Information:
Logon Process: Kerberos
Authentication Package: Kerberos
Transited Services: -
Package Name (NTLM only): -
Key Length: 0
This event is generated when a logon session is created. It is generated on the computer that was accessed.
The subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process
such as Winlogon.exe or Services.exe.
The logon type field indicates the kind of logon that occurred. The most common types are 2 (interactive) and 3 (network).
The New Logon fields indicate the account for whom the new logon was created, i.e. the account that was logged on.
The network fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.
The impersonation level field indicates the extent to which a process in the logon session can impersonate.
The authentication information fields provide detailed information about this specific logon request.
- Logon GUID is a unique identifier that can be used to correlate this event with a KDC event.
- Transited services indicate which intermediate services have participated in this logon request.
- Package name indicates which sub-protocol was used among the NTLM protocols.
- Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
# Querying Kerberos information in a remote PowerShell session
PS C:\Users\student\Desktop> Enter-PSSession -ComputerName 10.50.22.95 -Credential $Creds
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment