asked on
strServer = "us207k3file01"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set objFs = GetObject("WinNT://" & strServer & "/LanmanServer,FileService")
For Each objShare In objFs
strPath = "\\" & strServer & "\" & Left(objShare.Path, 1) & "$" & Right(objShare.Path, Len(objShare.Path)-2)
Set oFolder = oFSO.GetFolder(strPath)
WScript.Echo objShare.Name & " " & oFolder.DateLastModified
Next
ASKER
ASKER
strServer = "us207k3file01"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set objFs = GetObject("WinNT://" & strServer & "/LanmanServer,FileService")
For Each objShare In objFs
strPath = "\\" & strServer & "\" & Left(objShare.Path, 1) & "$" & Right(objShare.Path, Len(objShare.Path)-2)
Set oFolder = oFSO.GetFolder(strPath)
WScript.Echo objShare.Name & vbTab & objShare.Path & vbTab & oFolder.DateLastModified
Next
ASKER
ASKER
strServer = "us207k3file01"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = oFSO.OpenTextFile("c:\log.txt", 2, True)
Set objFs = GetObject("WinNT://" & strServer & "/LanmanServer,FileService")
For Each objShare In objFs
strPath = "\\" & strServer & "\" & Left(objShare.Path, 1) & "$" & Right(objShare.Path, Len(objShare.Path)-2)
Set oFolder = oFSO.GetFolder(strPath)
objFile.WriteLine objShare.Name & vbTab & objShare.Path & vbTab & oFolder.DateLastModified
Next
strServer = "us207k3file01"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = oFSO.OpenTextFile("c:\log.txt", 2, True)
Set objFs = GetObject("WinNT://" & strServer & "/LanmanServer,FileService")
For Each objShare In objFs
strPath = "\\" & strServer & "\" & Left(objShare.Path, 1) & "$" & Right(objShare.Path, Len(objShare.Path)-2)
Set oFolder = oFSO.GetFolder(strPath)
objFile.WriteLine objShare.Name & vbTab & objShare.Path & vbTab & oFolder.DateLastModified
Next
objFile.Close
ASKER
ASKER
ASKER
ASKER
ASKER
strServer = "FileServer01"
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = oFSO.OpenTextFile("c:\log.txt", 2, True)
Set objFs = GetObject("WinNT://" & strServer & "/LanmanServer,FileService")
For Each objShare In objFs
strPath = "\\" & strServer & "\" & Left(objShare.Path, 1) & "$" & Right(objShare.Path, Len(objShare.Path)-2)
WScript.Echo strPath
OldestDate = GetDate(oFSO.GetFolder(strPath))
objFile.WriteLine objShare.Name & vbTab & objShare.Path & vbTab & OldestDate
Next
objFile.Close
Function GetDate(Path)
Set oFolder = oFSO.GetFolder(Path)
For Each file In oFolder.Files
If file.DateLastModified > GetDate Then GetDate = file.DateLastModified
Next
For Each folder In oFolder.SubFolders
If folder.DateLastModified > GetDate Then GetDate = folder.DateLastModified
GetDate folder.Path
Next
End Function
ASKER
Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).
TRUSTED BY
Open in new window
You can compare the data with when they were actually modified and make sure everything looks ok.