If you wanted to do it all at once rather than wait for users to log in,
you could write an adsi script that would loop through every machine name
found in the AD (or SAM), and then use fso to loop through every folder name
found under documents and settings. Something like:
sub main
set wsh=createobject("wscript.shell")
set fso = CreateObject("Scripting.FileSystemObject")
Set adsDomain = GetObject("WinNT://MyDomain")
For Each adsComp In adsDomain
if adsComp.class="Computer" then
Set fsoFolder=fso.GetFolder("\\" & adsComp.Name &
"\Documents and Settings"
for each fsoUserFolder in fsoFolder.SubFolders
fso.deletefile(fsoUserFolder.Path & "\local
settings....\file1"
next
end if
next
end sub
The above is real bare-bones and probably won't work without tweaking. I
would strongly recommend error trapping, or else you'll error out at the
first machine that's disconnected. You should also create a log file that
lists describes each action completed and whether or not an error was
recorded--makes it easier to determine which machines weren't touched.
-----Original Message-----
From: Ken Cornetet [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 4:26 PM
To: Exchange Discussions
Subject: RE: Off Topic - Seeking Auotmation Method: SMS, Scripts, etc.
In their login scripts add lines like:
del %USERPROFILE%\local settings\file1
del %USERPROFILE%\local settings\file2
-----Original Message-----
From: Derrick Stevenson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 2:18 PM
To: Exchange Discussions
Subject: Off Topic - Seeking Auotmation Method: SMS, Scripts, etc.
To resolve a problem with user's inability to download server-side Outlook
Forms, I have to delete two files from the profile folders of every
profile on every Windows 2000 Pro client currently deployed. This path is
static with the exception of the user's name: c:\documents and
settings\<user name>\local settings\....
Does anyone have any ideas of how to automate this task so Help Desk want
have to deploy "SneakerNet" to correct the problem? We have SMS deployed.
Thanks in advance.
_________________________________________________________________
List posting FAQ: http://www.swinc.com/resource/exch_faq.htm
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe: mailto:[EMAIL PROTECTED]
Exchange List admin: [EMAIL PROTECTED]
_________________________________________________________________
List posting FAQ: http://www.swinc.com/resource/exch_faq.htm
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe: mailto:[EMAIL PROTECTED]
Exchange List admin: [EMAIL PROTECTED]
_________________________________________________________________
List posting FAQ: http://www.swinc.com/resource/exch_faq.htm
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe: mailto:[EMAIL PROTECTED]
Exchange List admin: [EMAIL PROTECTED]