How to Reboot all the Unregistered Win10 Desktops via PowerShell Script

How to Reboot all the Unregistered Win10 Desktops via PowerShell Script

book

Article ID: CTX546958

calendar_today

Updated On:

Description

Need to reboot all the unregistered win10 desktops via PowerShell script 


Instructions

  • asnp citrix*
  • get-brokermachine -Filter "((RegistrationState -eq `"unregistered`") -and (PowerState -eq `"On`") -and(SessionSupport -eq `"SingleSession`"))" -MaxRecordCount 500 | New-BrokerHostingPowerAction -Action "reset"