windowsfan
IS-IT--Management
I want to use a script in a schedule task and delete users profile on terminal server older than 2 weeks. how can I start?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set BaseDir = oFSO.GetFolder("C:\Users")
For Each oFolder in BaseDir.SubFolders
Wscript.Echo oFolder.Name & " " & oFolder.DateLastModified
Next