I'm trying to restart a remote computer on my network using Powershell, but I'm getting an error: The system shutdown cannot be initiated because there are other users logged on to the computer. Is there a way to forcefully log the users off so I can restart the computer?
system
main PowerShell kaa upyog karke apane network par ek duurastha computer ko punararambh karne kii koshish kar rahaa hum, lekin mujhe ek truti mil rahi he: system shatdown shuru nahin kiya ja saktaa he kyonki anya upyogkarta computer par log in hai.kya upyogkartaaon ko balpurvak log in karne kaa ek tarika he taaki main computer ko punararambh kar sakuun?
user
yadi aap PowerShell par ek punararambh karne ke liye majaboor karnaa chaahate hai, to aap computer ko punararambh karte samay -force dhvaj kaa upyog kar sakate hai.aapkaa nayaa cmand kuch is tarah dikhegaa:

> RESTART -COMPUTER -COMPUTERNAME "REMOTECOMPUTER" -FORCE

bhavishya ke sandarbh ke liye, yadi aapako keval apane duurastha computer se upyogkartaaon ko log in karne kii aavashyaktaa he, to aap PowerShell main QUSER or LOGOFF cmand kaa upyog kar sakate hai.

QUSER cmand aapako upyogkarta idi degaa jo aapako kisi ko log in karnaa hoga:

> Invoke -Command -computername 'RemoteComputer' -ScriptBlock {Quser}

tab aap prayek upyogkarta ke liye logof cmand kaa upyog kar sakate hai:

> Invoke -Command -computername 'RemoteComputer' -ScriptBlock {logoff user_id}
assistant
<|system|>
</s>
<|user|>
main PowerShell kaa upyog karke apane network par ek duurastha computer ko punararambh karne kii koshish kar rahaa hum, lekin mujhe ek truti mil rahi he: system shatdown shuru nahin kiya ja saktaa he kyonki anya upyogkarta computer par log in hai.kya upyogkartaaon ko balpurvak log in karne kaa ek tarika he taaki main computer ko punararambh kar sakuun?</s>
<|assistant|>
yadi aap PowerShell par ek punararambh karne ke liye majaboor karnaa chaahate hai, to aap computer ko punararambh karte samay -force dhvaj kaa upyog kar sakate hai.aapkaa nayaa cmand kuch is tarah dikhegaa:

> RESTART -COMPUTER -COMPUTERNAME "REMOTECOMPUTER" -FORCE

bhavishya ke sandarbh ke liye, yadi aapako keval apane duurastha computer se upyogkartaaon ko log in karne kii aavashyaktaa he, to aap PowerShell main QUSER or LOGOFF cmand kaa upyog kar sakate hai.

QUSER cmand aapako upyogkarta idi degaa jo aapako kisi ko log in karnaa hoga:

> Invoke -Command -computername 'RemoteComputer' -ScriptBlock {Quser}

tab aap prayek upyogkarta ke liye logof cmand kaa upyog kar sakate hai:

> Invoke -Command -computername 'RemoteComputer' -ScriptBlock {logoff user_id}</s>
