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

seen from Malaysia
seen from United States

seen from Pakistan
seen from China

seen from Türkiye

seen from United States

seen from United States

seen from United States

seen from Canada

seen from United States

seen from United States
seen from Pakistan
seen from United Arab Emirates
seen from China
seen from T1
seen from China
seen from United Kingdom

seen from T1
seen from Azerbaijan
seen from China
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

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Utilizar Runspaces en PowerShell
#Crear Runspace #Runspace crear un hilo en el proceso existente $Runspace = [runspacefactory]::CreateRunspace() #Es necesario crear una instancia de PowerShell para ejecutar Runspace $PowerShell = [powershell]::Create() $PowerShell.runspace = $Runspace $Runspace.Open() [void]$PowerShell.AddScript({ Get-Date Start-Sleep -Seconds 10 }) $AsyncObject = $PowerShell.BeginInvoke() #Ver si se ha…
View On WordPress
Find day of the week by using PowerShell
Find day of the week by using PowerShell
(Get-Date 1/10/1981).DayOfWeek
View On WordPress
Listar el nombre los días de la semana en PowerShell
Listar el nombre los días de la semana en PowerShell
#Opción 1 (New-Object System.Globalization.DateTimeFormatInfo).DayNames #Opción 2 1..7 | % {(Get-Date).AddDays($_).ToString("dddd")}
View On WordPress
Ver los usuarios que no ha iniciado sesión en el Directorio Activo durante 100 días
Ver los usuarios que no ha iniciado sesión en el Directorio Activo durante 100 días
Get-ADUser -Filter * -Properties LastLogonDate | ? {$_.lastlogondate -ne $null -and $_.lastlogondate -le ((get-date).adddays(-100))} | Format-List Name,LastLogonDate
View On WordPress

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Quicktip: Create an object that refers to its own properties
Quicktip: Create an object that refers to its own properties
Recently I received the question the /r/PowerShell community if it was possible to create an object that refers to its own properties when it is created. The user specified that they would prefer to create this as a one-liner. Using the Add-Member cmdlet in combination with the -Passthru parameter this is quite simple to do, for example: $Object = New-Object PSObject -property @{ Property1 =…
View On WordPress