MDawg
02/12/2025, 9:52 PMRachel Berry
02/18/2025, 10:34 AMAnthony Vido
02/21/2025, 12:34 AMRobert Magasi
02/27/2025, 9:45 AMMichael Shuster
03/05/2025, 2:03 PMRobert Magasi
03/10/2025, 1:17 PMChris Hildebrandt
03/10/2025, 1:19 PMFrancesco Marciello
03/11/2025, 4:57 PMThijmen
03/27/2025, 2:02 PM# Function to reset a VM
function Reset-VM {
param (
[string]$VmId
)
try {
# Send the POST request to the API endpoint to reset the VM
# Headers with authentication token
$response = Invoke-RestMethod -Uri "$apiEndpoint/inventory/v1/machines/action/recover?enforce=true" -Method Post -Headers $headers -body $body
# Check if the request was successful
if ($response.StatusCode -eq 204) {
Write-Output "Reset request sent for VM: $VmId"
} else {
Write-Output "Failed to reset VM: $VmId. Status code: $($response.StatusCode)"
Write-Output "Error message: $($response.Content)"
}
} catch {
Write-Output "An error occurred: $_"
}
}
# Reset all VMs in the pool
foreach ($vm in $vms) {
$body = @{
machineID = "$vm"
Action = "Recover"
} | ConvertTo-Json
Reset-VM -VmId $vm
}
Any one a idea what it can or do I use the wrong API call and body?John Twilley
04/11/2025, 7:44 PMcs-maxDaysToUpdateLicense
• Path: CN=Common,OU=Global,OU=Properties,DC=vdi,DC=horizon,DC=internal
• Update: Modify the pae-NameValuePair
property to include:
• cs-maxDaysToUpdateLicense=120
By setting this property in LDAP, the customer can extend the provisioning window by an additional 60 days (i.e., from the total 120 days configured, 60 have already elapsed).
Shoutout to Stephen Wagner who brought it to our attention!! This HealthCare Horizon 2412 environment installed 50 days ago thanks you!Farid
04/16/2025, 8:02 PMnsvegman
04/17/2025, 3:12 PMJon Bucud
04/17/2025, 11:08 PMColeman Kelly
04/18/2025, 7:39 PMRobert Magasi
04/24/2025, 1:31 PMRobert Magasi
04/24/2025, 1:33 PMStephen Daniel Wagner
05/05/2025, 12:57 PMJason McFarland
05/07/2025, 4:56 PMRob Ryan
05/07/2025, 5:24 PMCláudio Rodrigues
05/19/2025, 4:40 PMCláudio Rodrigues
05/19/2025, 4:41 PMMarkus Zehnle
05/26/2025, 9:48 AM# Path to JSON file
$tfwPath = "$env:LOCALAPPDATA\Packages\MSTeams_8wekyb3d8bbwe\LocalCache\Microsoft\MSTeams\tfw\vdi_connection_info.json"
# Check if the file exists
if (-Not (Test-Path -Path $tfwPath)) {
Write-Error "The file vdi_connection_info.json cannot be found: $tfwPath"
exit 1
}
# Get and convert JSON
$jsonContent = Get-Content -Path $tfwPath -Raw | ConvertFrom-Json
# Get the last entry for the session (new session)
$session = $jsonContent.VdiConnectionInfo | Select-Object -Last 1
# Extract data from JSON
$vdiState = $session.vdiConnectedState
$vdiVersion = $session.vdiVersionInfo
$devices = $session.devices
$vdiState.vdiMode
VM_Master
06/06/2025, 4:14 PMJulian Singer
06/10/2025, 12:52 PMBryan Walker
06/30/2025, 6:24 PMRob Beekmans
07/01/2025, 7:10 AMPeter Lewis
07/01/2025, 11:53 AMStephen Daniel Wagner
07/01/2025, 1:12 PMStephen Daniel Wagner
07/24/2025, 2:05 PMMark Wolfe
07/24/2025, 8:22 PM