Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Get-WMIObject -class Win32_UserProfile | Where {(!$_.Special) -and ($_.ConvertToDateTime($_.LastUseTime) -lt (Get-Date).AddDays(-5))} | Remove-WmiObject
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement