Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Скриптовые языки администрирования Windows (http://forum.oszone.net/forumdisplay.php?f=102)
-   -   Удаление локального профиля в Windows7 (http://forum.oszone.net/showthread.php?t=296092)

basilio666 26-02-2015 13:22 2476118

Удаление локального профиля в Windows7
 
привет, просьба подсказать, как можно с помощь скрипта удалить нужный локальный профиль с ПК (чтобы удалился полностью профиль, аналогично тому, если это делать через Свойства компьютера - Дополнительные параметры системы - профили пользователей (параметры) - удалить). Заранее спасибо

Iska 26-02-2015 17:20 2476245

basilio666, читайте по «delprof.exe» или стороннему приложению «delprof2.exe».

basilio666 02-03-2015 01:04 2477645

Iska, данная утилита удаляет профили старше заданного времени, а нужно удалить конкретный профиль

Iska 02-03-2015 02:10 2477650

Delprof2 - User Profile Deletion Tool • Helge Klein:
Скрытый текст
Цитата:

Delprof2 by Helge Klein (https://helgeklein.com)

Delprof2 deletes inactive Windows user profiles (profiles that are not currently loaded).
Delprof2 is syntax compatible with the original Delprof by Microsoft. Unlike the original it works on all versions of Windows
(XP/2003/Vista/2008/7/2008 R2/8).
If possible, Delprof2 uses the backup and restore privileges to bypass security and delete even profiles the executing user does not
normally have access to.
Delprof2 has no problem whatsoever deleting files in very long paths (longer than MAX_PATH, 260 characters).
Delprof2 also cleans up stale ProfileList SID.bak registry entries, a common cause of temporary profiles.

Usage: delprof2 [/l] [/u] [/q] [/p] [/r] [/c:[\\]<computername>] [/d:<days> [/ntuserini]] [/ed:<pattern>] [/id:<pattern>] [/i]

/l List only, do not delete (what-if mode)
/u Unattended (no confirmation)
/q Quiet (no output and no confirmation)
/p Prompt for confirmation before deleting each profile
/r Delete local caches of roaming profiles only, not local profiles
/c Delete on remote computer instead of local machine
/d Delete only profiles not used in x days
/ntuserini
When determining profile age for /d, use the file NTUSER.INI
instead of NTUSER.DAT for age calculation
/ed Exclude profile directories whose name matches this pattern
Wildcard characters * and ? can be used in the pattern
May be used more than once and can be combined with /id
/id Include only profile directories whose name matches this pattern
Wildcard characters * and ? can be used in the pattern
May be used more than once and can be combined with /ed

/i Ignore errors, continue deleting

Examples:

Delprof2 /c:computername

Deletes inactive profiles on 'computername'.

Delprof2 /c:computername /l

Lists inactive profiles on 'computername' without deleting them.

Delprof2 /d:30

Deletes profiles older than 30 days on the local computer.

Delprof2 /r

Deletes locally cached roaming profiles only.

Delprof2 /ed:admin* /ed:pmiller

Deletes all inactive profiles on the local computer except those starting with 'admin' and the one called 'pmiller'.


Время: 15:09.

Время: 15:09.
© OSzone.net 2001-