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
Post a Comment