5. Gestión del software en PowerShell
Software Listar software Buscar software Instalar software Desinstalar software Actualizaciones Listar actualizaciones Antivirus El software es la parte que no se puede tocar del ordenador...
View Article7. Gestión de procesos en PowerShell
Procesos Tabla de procesos Estados de un proceso Crear procesos Matar procesos Procesador Hilos Servicios Uno de los conceptos más importantes en los sistemas operativos es el proceso que se define...
View Article9. Gestión de la red en PowerShell
Capa física Adaptadores de red Información sobre los adaptadores de red Cambiar el nombre de los adaptadores de red Información transmitida Capa de Internet ARP IP Ver protocolos IP soportados...
View ArticleGenerar direcciones MAC con PowerShell
(0..5 | ForEach-Object { '{0:x}{1:x}' -f (Get-Random -Minimum 0 -Maximum 15),(Get-Random -Minimum 0 -Maximum 15)}) -join ':' The post Generar direcciones MAC con PowerShell appeared first on Scripting...
View ArticleEjecutar un cmdlet de PowerShell desde C#
using System; using System.Management.Automation; // Windows PowerShell namespace. namespace HostPS1 { class HostPS1 { static void Main(string[] args) { // Call the PowerShell.Create() method to create...
View ArticleEjecutar el cmdlet de PowerShell que recupera el contenido de la caché de...
using System; using System.Management.Automation; // Windows PowerShell namespace. namespace HostPS1 { class HostPS1 { static void Main(string[] args) { // Call the PowerShell.Create() method to create...
View ArticleEjecutar el cmdlet de PowerShell para obtener información de la memoria RAM...
using System; using System.Management.Automation; // Windows PowerShell namespace. namespace HostPS1 { class HostPS1 { static void Main(string[] args) { // Call the PowerShell.Create() method to create...
View ArticleEjecutar un código de C# desde PowerShell que ejecuta un cmdlet de PowerShell
$CodigoC = @” using System; using System.Management.Automation; // Windows PowerShell namespace. namespace HostPS1 { public class HostPS1 { public static void Main() { // Call the PowerShell.Create()...
View ArticleMostrar un mensaje si se ha ejecutado correctamente un script de PowerShell...
using System; using System.Collections.ObjectModel; using System.Management.Automation; // Windows PowerShell namespace. namespace PowerSh { class PowerSh { static void Main(string[] args) { using...
View ArticleRecorrer el segundo nivel de un sitio web y obtener información de todos los...
$url="http://www.jesusninoc.com" foreach($links in (Invoke-WebRequest $url).Links.href){foreach($links2 in (Invoke-WebRequest $links).Links.href){$links2,(Invoke-WebRequest...
View ArticleRecorrer el primer nivel de un sitio web y obtener información de todos los...
$url="http://www.jesusninoc.com" foreach($links in (Invoke-WebRequest $url).Links.href){($links,(Invoke-WebRequest $links).RawContentLength,1)} The post Recorrer el primer nivel de un sitio web y...
View ArticleRecorrer el segundo nivel de un sitio web y obtener todos los enlaces del sitio
$url="http://www.jesusninoc.com" foreach($links in (Invoke-WebRequest $url).Links.href){foreach($links2 in (Invoke-WebRequest $links).Links.href){$links2}} The post Recorrer el segundo nivel de un...
View ArticleAutomatizar el recorrido de niveles de un sitio web, obteniendo información...
#Clase Enlace con información sobre el enlace: URL, tamaño y nivel de recorrido class Enlace { $URL $Long $Level Enlace($URL,$Long,$Level) { $this.URL=$URL $this.Long=$Long $this.Level=$Level } }...
View ArticleRealizar una comunicación enviando preguntas y respondiendo de forma...
Introducción####################################################################################################...
View ArticleOfuscación en PowerShell
#################################################################### #Convertir una cadena de caracteres a binario (Char - Int - Binario) $resultado = "" $codificar = 'GC' foreach($letra in...
View ArticleRealizar una comunicación enviando preguntas y respondiendo de forma...
Introducción####################################################################################################...
View ArticleRecorrer el segundo nivel de un sitio web, obtener información de todos los...
#Clase Enlace con información sobre el enlace: URL, tamaño y nivel de recorrido class Enlace { $URL $Long $Level Enlace($URL,$Long,$Level) { $this.URL=$URL $this.Long=$Long $this.Level=$Level } }...
View ArticleEjercicios de PowerShell: analizar la frecuencia de letras en un fichero
Versión 1#Abrir el fichero texto.txt y añadir cada una de las letras que contiene el fichero en una ArrayList #Inicializa una nueva instancia de la clase ArrayList que está vacía y tiene la capacidad...
View ArticleConvert una imagen JPG a caracteres en la consola de PowerShell (obtener el...
$Cave = [System.Drawing.Bitmap]::FromFile( '.\juan2.jpg' ) $cave $i=0 $a=0 $array = @() for ($y = 0;$y -lt $Cave.Height;$y+=1) { for ($x = 0;$x -lt $Cave.Width;$x+=1) { $col=$Cave.GetPixel($x,$y).Name...
View ArticleConvert bitmap to characters in Write-Host (blue and white)
$Cave = [System.Drawing.Bitmap]::FromFile( '.\juan2.jpg' ) $cave $i=0 $a=0 $array = @() for ($y = 0;$y -lt $Cave.Height;$y+=1) { for ($x = 0;$x -lt $Cave.Width;$x+=1) { $col=$Cave.GetPixel($x,$y).Name...
View Article