Windows Thread, Batch File Needed??- Profile Problem in Technical; Originally Posted by browolf
c:\> For /f %a in ('net view ^| find "<prefix>" /i') do delprof /c:%a ...
27th February 2010, 03:20 PM #16
Originally Posted by browolf
Can you describe what it's doing there? I've read that there's a way to use a text file to list PC's that you want it to clear profiles on and exclude certain profiles. Is this the case?
Think i've found a good link.
Last edited by cookie_monster; 27th February 2010 at 03:27 PM.
IDG Tech News
27th February 2010, 03:41 PM #17
a for loop allows you to perform an operation on each item in a list. how the list is created occurs inside the brackets. we search the network for specific name prefixes, or you could also echo a txt file with the type command.
the best reference site for dos comands is SS64.com Command line reference
I don't know anything about excluding certain profiles, however with find there's an exclusion switch ( /v) and you can repeat piped exclusions ( | find /v ... | find /v ... etc)
it seems plausible if you were to delete profiles with with just del or rd, that you could do
for "get a list a list of computers" do
-----for "get a list of profiles for that computer excluding ones you dont want" do
----------del the profiles in the resulting list.
27th February 2010, 05:26 PM #18
Ok so does delprof leave certain profiles by default e.g. All Users, Administrator etc?
27th February 2010, 07:24 PM #19
yes it does
Originally Posted by cookie_monster
It'll leave All Users, Default User and Administrator alone.
if i remember correctly
waiting to be flamed now............
just download the latest one from MS
Last edited by round2it; 27th February 2010 at 07:26 PM.
27th February 2010, 08:32 PM #20
yeah basically - think there are one or two other ones it leaves alone as well ( default user and something else - cant remember as not used xp properly for a while )
Originally Posted by round2it
27th February 2010, 09:04 PM #21
i can not remember what the other one was either
Originally Posted by mac_shinobi
27th February 2010, 09:09 PM #22
There's a couple of hidden ones like 'Network Service' and another I think.
27th February 2010, 09:36 PM #23
1st March 2010, 05:13 PM #24
Is there an option to set delprof to log what it's done?
26th May 2010, 11:22 AM #25
Anyone found a proper solution to this problem?
Summary of problem:
The problem occurs when a user with a mandatory roaming profile logs onto a website that generates a really long file name (e.g. many of the BBC games). Even though that file does not exist on the server copy of the profile, windows thinks it's copying it to the local machine and this causes a Windows to throw a hissy fit because the file's too long.
Sort of solution
There are various workarounds (many of which don't work) basically involving delprof/script deleting the profile on shutdown. I've added my users to the Domain Guests group, which causes their profile to be deleted on logoff. This seems to work most of the time however, the problem still occurs. It's often enough still be annoying.
I think it might not work when the user visits a problem site and there is an ungraceful shutdown – so the profile is not getting deleted.
I could spend half a day faffing about with Delprof and startup scripts but if anyone’s got a combination that works, that’d be really appreciated.
Why the hell hasn’t Microsoft fixed this? It’s clearly a bug and I’ve never had it until IE8.
Eean is off to consider Firefox!
By googlemad in forum Windows
Last Post: 16th October 2010, 12:08 AM
By fil_b in forum Windows Server 2000/2003
Last Post: 5th November 2009, 05:13 AM
By RabbieBurns in forum Scripts
Last Post: 22nd September 2008, 10:05 AM
By jussy65 in forum Scripts
Last Post: 13th August 2008, 08:10 AM
By beeswax in forum Scripts
Last Post: 3rd March 2006, 08:48 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)