Re: Delete Temp Files For All Profiles




"BFL" <BFL@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E9FBA3A8-C8BA-4EA7-834C-11DCD9514ABB@xxxxxxxxxxxxxxxx
> Thanks for the response Lanwench.
> All I would have to do is copy this to a batch file and run it on the
> server, correct?

Yes, provided you're running it in the context of an account that has
permissions to all those folders (and/or run it as a shutdown script)


>
> "Lanwench [MVP - Exchange]" wrote:
>
>>
>> "BFL" <BFL@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:48A9A5AB-C34B-4C53-B038-E19FE958F6DD@xxxxxxxxxxxxxxxx
>> > Hi Everyone,
>> > Does someone know how to delete every users profile's temporary
>> > internet
>> > files on a Win2K3 terminal server?
>> > We have 5 terminal servers which I need to delete their temp files due
>> > to
>> > low disk space.
>> > Please advice,
>> > Thanks,
>> > BFL
>>
>> My (perhaps clumsy, but functional) method, is to use a batch file....
>>
>> FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO DEL/S/F/Q
>> "C:\Documents and Settings\%%A\Local Settings\Temporary Internet
>> Files\*.*"
>> FOR /F %%A IN ('DIR/B "C:\Documents and Settings"') DO RD/S/Q
>> "C:\Documents
>> and Settings\%%A\Local Settings\Temporary Internet Files\"
>>
>> ....and I use it as a shutdown script, assigned via group policy. On a TS
>> box, which of course won't be restarted as regularly as a workstation,
>> you
>> could use task scheduler to run it daily instead - as long as the account
>> you specify has permissions to access/delete the folders/files.
>>
>>
>>
>>


.



Relevant Pages

  • RE: Suggested Network Topology
    ... users from probing yoour internal network. ... an explorer shell, Internet Explorer, cmd.exe. ... Other options are a blade setup, or a 4-8 Way server ... > Windows Forms app via Terminal Server on Win2003 with SP1. ...
    (microsoft.public.windows.terminal_services)
  • Re: Terminal Server with 2 NICs
    ... for logon attempts from the Internet, and all it needs is just one ... MCSE, CCEA, Microsoft MVP - Terminal Server ... generate on the internal network. ...
    (microsoft.public.windows.terminal_services)
  • Re: Allowing terminal server access to all internally, but only to a select few externally.
    ... I personally haven't done this before, but the following may work for you, essentially to have 2 nic in your server, and use different connections for internal and external access: ... Create a new local user group say 'TS Internet Users', add those users you want to allow to use Terminal Services externally to this group ... Out current setup includes one terminal server which all users need ...
    (microsoft.public.windows.terminal_services)
  • Re: Security in Terminal Services
    ... The problem with the top example is that you are exposing your internal network to the internet. ... Microsoft MVP - Terminal Server ... Windows 2003 Server w/Terminal Server ...
    (microsoft.public.windows.terminal_services)
  • Re: CANT access published terminal server through ISA server
    ... I just set add default gateway to isa internal ... > How to Server Publish a Terminal Server with ISA ... > server must be an edge router to the Internet. ...
    (microsoft.public.isaserver)