User logoff if disconnected


i search eventid 1065 , check if user mentioned in event disconnected. in case user should logged of. use command below search event , user.

get-winevent -filterhashtable @{logname='microsoft-windows-grouppolicy';id=1065} -maxevents 1 | select user -expandproperty user

how should check user status , force logoff if necessary?


something here might help.

https://technet.microsoft.com/en-us/library/cc754272%28v=ws.11%29.aspx?f=255&mspperror=-2147217396

 

 



regards, dave patrick ....
microsoft certified professional
microsoft mvp [windows server] datacenter management

disclaimer: posting provided "as is" no warranties or guarantees, , confers no rights.



Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2