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!
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...
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 >
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!!!
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...
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.