Apr 30th, 2012, 10:03 AM
Delete Profiles script v1.9 win2008 R2 x64bit
We use the Delete Profiles scipt v1.9 that Joe wrote on this website http://www.theshonkproject.com/index...d=50&Itemid=31
We use this script in a terminal server environment based on Windows 2008 R2 Standard 64bit servers and it is really usefull but it does not delete all the old orphaned profile directories for some reason. The log file says it is going to do it here is one user line example I have many over a few days e.g.-
Checking For Orphaned Profile Directories
Deleting Orphaned Profile Directory: C:\Users\pnicholls.ACOMPANY.000
On attempting to debug it it says access denied but the account that runs this is a scheduled service account based in a group in AD that has complete and unrestricted access to the computer/domain.
I contacted Joe and his reply to above was:-
"More than likely the script is failing due to the junction points that Microsoft added to the v2 profiles. I couple people have been able to successfully modify the script to execute linkd.exe (manages junctions) before deleting the files."
I am posting this to see if anyone has a modified version of this (as all has gone quite on asking Joe if he knows anybody who has this or if he can give me a copy) that works perhaps with what Joe advises above. I am not a VBasic writer and do not know how to do this so if anyone has got this to work please could they post me a copy of it here?
May 2nd, 2012, 07:25 AM
Re: Delete Profiles script v1.9 win2008 R2 x64bit
Welcome to VBForums
Thread moved from the 'VB6 and Earlier' forum to the 'VBScript' forum
(2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015) . . . . . . . . Hitchhiker's Guide to Getting Help at VBForums
Classic VB FAQs (updated Oct 2010) ...Database Development FAQs/Tutorials (updated May 2011)
(includes fixing common VB errors) .......... (includes fixing common DB related errors, and [Classic VB] ADO tutorial /further steps, and [VB.Net] ADO.Net Tutorial).
Tutorial: How to automate Excel from VB6 (or VB5/VBA) .•. SQL 'Select' statement formatter/checker .•. Convert colour number to colour name .•. FlexGrid: fill from recordset .•. FlexGrid: AutoSize columns .•. DB Reserved Words checker
Connection strings .•. MDAC/Jet/ACE downloads .•. SQL Server downloads .•. MZTools (free upgrade for the VB6/VBA Editor)
Click Here to Expand Forum to Full Width
Survey posted by VBForums.