[VBScript] I'm looking for a script that will delete a User Profile remoltelyHello.<br/><br/>I have a problem going on in my site. We had a virus outbreak, and it put the profile &quot;cypscanner2&quot; on every PC in my site. I got the virus removed from the original PC with the real user profile &quot;cypscanner2&quot; but now I need to remove the user profile &quot;cypscanner2&quot; from all of the other PCs in my site. So my question is, is there a VBscript I can run remotely to remove &quot;cypscanner2&quot; from 'C:\Documents and Settings&quot;? I have v<span style="font-size:10pt;font-family:Arial">irtually</span> 0 scripting expierence so any and all help would be great. <br/><br/>Thanks in advance.<br/><br/>Enfury© 2009 Microsoft Corporation. All rights reserved.Thu, 02 Jul 2009 16:04:09 Ze4fcbb5d-8178-4ad0-a165-1489dbc85e7ehttp://social.technet.microsoft.com/Forums/en/ITCG/thread/e4fcbb5d-8178-4ad0-a165-1489dbc85e7e#e4fcbb5d-8178-4ad0-a165-1489dbc85e7ehttp://social.technet.microsoft.com/Forums/en/ITCG/thread/e4fcbb5d-8178-4ad0-a165-1489dbc85e7e#e4fcbb5d-8178-4ad0-a165-1489dbc85e7eEnfuryhttp://social.technet.microsoft.com/Profile/en-US/?user=Enfury[VBScript] I'm looking for a script that will delete a User Profile remoltelyHello.<br/><br/>I have a problem going on in my site. We had a virus outbreak, and it put the profile &quot;cypscanner2&quot; on every PC in my site. I got the virus removed from the original PC with the real user profile &quot;cypscanner2&quot; but now I need to remove the user profile &quot;cypscanner2&quot; from all of the other PCs in my site. So my question is, is there a VBscript I can run remotely to remove &quot;cypscanner2&quot; from 'C:\Documents and Settings&quot;? I have v<span style="font-size:10pt;font-family:Arial">irtually</span> 0 scripting expierence so any and all help would be great. <br/><br/>Thanks in advance.<br/><br/>EnfuryWed, 01 Jul 2009 16:27:41 Z2009-07-01T16:27:41Zhttp://social.technet.microsoft.com/Forums/en/ITCG/thread/e4fcbb5d-8178-4ad0-a165-1489dbc85e7e#ed6be195-9b49-4eb6-8935-213f9ae29f1ahttp://social.technet.microsoft.com/Forums/en/ITCG/thread/e4fcbb5d-8178-4ad0-a165-1489dbc85e7e#ed6be195-9b49-4eb6-8935-213f9ae29f1aNickHunyadyhttp://social.technet.microsoft.com/Profile/en-US/?user=NickHunyady[VBScript] I'm looking for a script that will delete a User Profile remoltely<p>Should be as simple as:</p> <p>Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)<br/>objFSO.DeleteFolder &quot;C:\Documents and Settings\cypscanner2&quot;, True <br/><br/>Or remotely:</p> <p>Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)<br/>objFSO.DeleteFolder &quot;\\ServerName\C$\Documents and Settings\cypscanner2&quot;, True</p>Thu, 02 Jul 2009 04:18:35 Z2009-07-02T04:18:35Zhttp://social.technet.microsoft.com/Forums/en/ITCG/thread/e4fcbb5d-8178-4ad0-a165-1489dbc85e7e#4f0c654d-7b51-4f68-b507-1f2bbb175037http://social.technet.microsoft.com/Forums/en/ITCG/thread/e4fcbb5d-8178-4ad0-a165-1489dbc85e7e#4f0c654d-7b51-4f68-b507-1f2bbb175037AbqBillhttp://social.technet.microsoft.com/Profile/en-US/?user=AbqBill[VBScript] I'm looking for a script that will delete a User Profile remoltelyHi Nick,<br/> <br/> Using the FileSystemObject object to delete a folder will delete the profile directory, but it won't delete its associated registry path:<br/> <br/> HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\<em>user's SID</em> <br/> <br/> There are also two other complications: 1. you can't delete a profile for a user that's logged on; and 2. the user might have logged off, but the profile might not be completely unloaded (see <a href="http://support.microsoft.com/kb/837115">http://support.microsoft.com/kb/837115</a> ).<br/> <br/> In the meantime, I recommend 'uphclean' and the 'delprof.exe' found in the Resource Kit utilities.<br/> <br/> HTH,<br/> <br/> BillThu, 02 Jul 2009 14:43:16 Z2009-07-02T14:43:16Zhttp://social.technet.microsoft.com/Forums/en/ITCG/thread/e4fcbb5d-8178-4ad0-a165-1489dbc85e7e#ad8aa655-a957-4692-92e0-9a6ca15f4b51http://social.technet.microsoft.com/Forums/en/ITCG/thread/e4fcbb5d-8178-4ad0-a165-1489dbc85e7e#ad8aa655-a957-4692-92e0-9a6ca15f4b51NickHunyadyhttp://social.technet.microsoft.com/Profile/en-US/?user=NickHunyady[VBScript] I'm looking for a script that will delete a User Profile remoltelyThanks for adding onto my post Bill. It was late when I posted it and didn't get into much detail. I agree, both apps are good for profile cleaning, although Zenfury only mentioned cleaning it from the %Userprofile% path.Thu, 02 Jul 2009 16:04:09 Z2009-07-02T16:04:09Z