List event log Get-WmiObject -Class Win32_NTEventLOgFile | Select-Object FileName, Sources
seen from United Kingdom

seen from Canada
seen from China

seen from Egypt
seen from China

seen from Canada

seen from United Arab Emirates

seen from China
seen from Brazil

seen from United States
seen from United States
seen from China

seen from United States

seen from United States
seen from China

seen from United States
seen from China

seen from United States
seen from China
seen from Honduras
List event log Get-WmiObject -Class Win32_NTEventLOgFile | Select-Object FileName, Sources
Detectar el color de un píxel en PowerShell
Detectar el color de un píxel en PowerShell
$GDI = Add-Type -MemberDefinition @' [DllImport("user32.dll")] static extern IntPtr GetDC(IntPtr hwnd); [DllImport("user32.dll")] static extern Int32 ReleaseDC(IntPtr hwnd, IntPtr hdc); [DllImport("gdi32.dll")] static extern uint GetPixel(IntPtr hdc,int nXPos,int nYPos); static public int GetPixelColor(int x, int y) { IntPtr hdc = GetDC(IntPtr.Zero); uint pixel = GetPixel(hdc, x, y);…
View On WordPress
Convert an object to a JSON string and JSON object
Convert an object to a JSON string and JSON object
Get-Date | Select-Object -Property * | ConvertTo-Json
View On WordPress
Comprobar si está abierto un puerto UDP
Comprobar si está abierto un puerto UDP
while(1) { Get-NetUDPEndpoint | Select-Object LocalAddress,LocalPort | Where-Object {$_.LocalPort -eq "5353"} Start-Sleep -Seconds 5 clear }
View On WordPress
Mostrar los títulos de los procesos que se están ejecutando en Windows
Mostrar los títulos de los procesos que se están ejecutando en Windows
Get-Process | Where {$_.MainWindowTitle} | Select-Object ProcessName, MainWindowTitle
View On WordPress
Convertir a JSON el listado de usuarios que hay en el sistema ejecutando un cmdlet con PowerShell
Get-LocalUser | Select-Object -Property * | ConvertTo-Json
View On WordPress
Ver el SID (Security Identifier) de un usuario en Windows con PowerShell 5
Get-LocalUser | Select-Object -Property Name, Sid
View On WordPress
Determinar la hora de inicio de un servicio de Windows con PowerShell
Get-WmiObject -ClassName Win32_Service -PipelineVariable Servicio | %{ Get-Process -Id $_.ProcessId | Select-Object -Property @{label='NameService';expression={$Servicio.Name}},StartTime,@{label='NameProcess';expression={$_.Name}} | Format-Custom }
View On WordPress