Thanks Mikrom.
When I do a print, as you advised, it returns the strPath - "%SystemDrive%\Documents and Settings\Test1.4RECDOMAIN\NTUSER.DAT" which is what the target is meant to be.
I am running the script from an elevated command prompt, as admin and have rights/access to...
Guitarzan,
it is the line in bold, Red font below:
'Modified code to get last access time
Dim strPath, objFile, objNTUserFile, objLastAccessDate,
strPath=objWshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" & strSubkey & "\ProfileImagePath")
strPath = strPath +...
Hi All,
I have a script to backup only user profiles that have been modified in the last xx days.
I would be most grateful if anyone could help me resolve or point me in the right direction as to why the script is failing on the line in bold text
'Modified...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.