Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


RE: can thiswork?? profile delete script

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,33621
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: can thiswork?? profile delete script
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: <<   < prev  1 [2]
Login
Message << Older Topic   Newer Topic >>
 RE: can thiswork?? profile delete script - 4/20/2006 4:44:55 AM   
  iceteanolemon

 

Posts: 29
Score: 0
Joined: 4/5/2006
Status: offline
i would think that but im running other sripts against this test pc here on my desk as well without problems. theres only one pc in the list and its connected to a switch and i can access it from here too...

(in reply to ebgreen)
 
 
Post #: 21
 
 RE: can thiswork?? profile delete script - 4/20/2006 5:13:38 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
If you hardcode the name of the pc in place of strWorkStation does itt work?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ebgreen)
 
 
Post #: 22
 
 RE: can thiswork?? profile delete script - 4/20/2006 8:05:11 AM   
  iceteanolemon

 

Posts: 29
Score: 0
Joined: 4/5/2006
Status: offline
yeah but im getting a permission denied error even though im logging on as domain admin as well as giving myself explicit rights to the directories on the computer. guess i have  couple problems now...

ok i got it to work with the &strWorkstation& so sorry for pressing that issue heheh

< Message edited by iceteanolemon -- 4/20/2006 8:45:13 AM >

(in reply to ebgreen)
 
 
Post #: 23
 
 RE: can thiswork?? profile delete script - 4/20/2006 8:06:58 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
you'll have to figure out the permissions problem before you can get the script to work.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to iceteanolemon)
 
 
Post #: 24
 
 RE: can thiswork?? profile delete script - 4/20/2006 8:59:10 AM   
  iceteanolemon

 

Posts: 29
Score: 0
Joined: 4/5/2006
Status: offline
woo hoo i got it to work!! I still have some issues with it though.

Its seeing directories that arent there and getting hung up and dieing. It saw "networkservice" and "localservice" in docs and settings for some reason and died after not getting to delete these directories that dont exist. I added these as exceptions and it went through and deleted the profile directories correctly as its design intended.

What do I need to add to make sure this script will not die on its error and indeed continue to the next preceding directory to check and delete as neccessary?

Thanks for your help so far. this experience has brought my awareness up!!!

Ben

(in reply to ebgreen)
 
 
Post #: 25
 
 RE: can thiswork?? profile delete script - 4/20/2006 9:50:51 AM   
  iceteanolemon

 

Posts: 29
Score: 0
Joined: 4/5/2006
Status: offline
and the awared for retard of the day goes to.....
drum roll puhhhhhleeeze...!!!!


dun dun daa!!! iceteanolemon!!!

Thanks so much for your enlightenment iceteanolemon for overlooking the dumbest of things. One emty line within your strWorkstation list which thre out the error you have been bugging these poor souls on all day..
 
OK EB Thanks for your support so far i just found it and as always its something super stupid and small. A blank space under the computername made the script look for \\\c$\documents and settings\....

lesson learned on that one ouch!!!

Hey on a lighter note, how can i get this thing to write the error info and deletion results to txt? i can do it when i use shell comands passing the standard out but this ofso way im a little lost...

(in reply to iceteanolemon)
 
 
Post #: 26
 
 RE: can thiswork?? profile delete script - 4/21/2006 12:57:12 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Search these fora for "FileSystemObject". It is the object that you will use to write out your results. 

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to iceteanolemon)
 
 
Post #: 27
 
 RE: can thiswork?? profile delete script - 4/21/2006 2:02:43 AM   
  iceteanolemon

 

Posts: 29
Score: 0
Joined: 4/5/2006
Status: offline
ok ill try my hand at the file system object.

hey EB thanks for being there man i appreciate it! your a cool guy to share your knowledge and participate like that. i can only hope to be able to contribute like you.

Ben

(in reply to ebgreen)
 
 
Post #: 28
 
 RE: can thiswork?? profile delete script - 4/21/2006 3:50:02 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Glad I could help.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to iceteanolemon)
 
 
Post #: 29
 
 
Page:  <<   < prev  1 [2]
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: can thiswork?? profile delete script Page: <<   < prev  1 [2]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts