Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anonymous_User Absent Member.
Absent Member.
287 views

Can't delete user profile in windows 2k3 using scripting drv


Hi,

I can delete users from scripting driver using delete.vbs. But Failed to
delete user profile in windows 2003 (Non AD) server. User profiles are
present in C:\documents and settings folder with user login name.

I have noticed that delete.vbs script is running as local SYSTEM account
of windows 2003 to delete profile folder and showing permission deny
error to delete user profile folder. I have noticed that SYSTEM account
is having full permission in user profile folder too. But still can't
delete it.

As per requirement, new user will be provision on that server for few
days i.e. 2 or 3 days. So Expecting that there will be lots of pending
user profile along with existing local user profile. I was tested
delpro.exe of MS but can't run because its cleaning up all user profile.
So I can't accept it. Also Other then MS or Netiq tool we can't run in
that windows server. In addition WMI class i.e. win32_userprofile does
not exist in windows 2003.

I have also noticed that delete.vbs called twise during user delete
operation. Not sure why?

I am not getting any solution to remove user profile in windows 2003. Is
any one can help me on this issue?


Thanks and Regards

Deb


--
deb_sarkar
------------------------------------------------------------------------
deb_sarkar's Profile: https://forums.netiq.com/member.php?userid=7951
View this thread: https://forums.netiq.com/showthread.php?t=51681

Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Can't delete user profile in windows 2k3 using scripting drv

deb sarkar <deb_sarkar@no-mx.forums.netiq.com> wrote:
> Hi,
>
> I can delete users from scripting driver using delete.vbs. But Failed to
> delete user profile in windows 2003 (Non AD) server. User profiles are
> present in C:\documents and settings folder with user login name.
>
> I have noticed that delete.vbs script is running as local SYSTEM account
> of windows 2003 to delete profile folder and showing permission deny
> error to delete user profile folder. I have noticed that SYSTEM account
> is having full permission in user profile folder too. But still can't
> delete it.


Two causes come to mind

1. ACL/ACE issues. I usually run setacl.exe twice over the entire profile
once to "take ownership" and then the second time to set inherited rights
to full control for local system.

2. Unable to unload cleanly user profiles on logoff, leaving profiles
unable to be deleted.

I usually work around this with a delay on deletion (1+ days) or that the
servers in question are rebooted regularly (especially terminal server
/Citrix)

The author setacl also has a tool called delprof2 that may help as it
bypasses the normal security to avoid the ownership issues mentioned above.
I've not personally used it though.

> I have also noticed that delete.vbs called twise during user delete
> operation. Not sure why?
>
> I am not getting any solution to remove user profile in windows 2003. Is
> any one can help me on this issue?




--
If you find this post helpful and are logged into the web interface, show
your appreciation and click on the star below...
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Can't delete user profile in windows 2k3 using scripting drv


Hi,

I can manage to delete users profiles from documents and settings. But
deleted users profiles entries are still existing in my computer
properties and registry.

I can not use delprof2 because we can't use say which profile will be
deleted in basis of profile inactive days.

Please any can suggest for best way to remove user profile from windows
2003 including doument and settings, my computer properties and registry
at a time?

Thanks

Deb


--
deb_sarkar
------------------------------------------------------------------------
deb_sarkar's Profile: https://forums.netiq.com/member.php?userid=7951
View this thread: https://forums.netiq.com/showthread.php?t=51681

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Can't delete user profile in windows 2k3 using scripting drv


Deb,
You might try searching Google and StackOverflow.com for "VBScript
delete profile" or similar. Or search for a utility that does so.

Sam


--
Zygomax
------------------------------------------------------------------------
Zygomax's Profile: https://forums.netiq.com/member.php?userid=215
View this thread: https://forums.netiq.com/showthread.php?t=51681

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.