0

I have created a powershell script to get Inactive users from AD with high cpu usage, but now I want to end the session of those Inactive users without disabling the account. I'm unable to get session Id of inactive users

Can anyone help me to end this inactive user sessions?

2

1 Answer 1

0

Do you mean by 'inactive user sessions', they are using remote desktop, and you want to log them off the ts / rdp session?

Here are links to PowerShell scripts to log people off RDP Sessions

Powershell command to kick disconnected users off a server

Powershell Log Off Remote Session

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.