Thank you once again, GrimR. You're a lifesaver :)
The script works fine the way it is, but I would like to run the script for selected users only, by doing a LDAP search and select users by Office Location.
I've modified the script with an if-statement, so that the procedure DeleteResource()...
Sorry for the double post, but regarding the code snippet in your previous post I reckon it shouldn't be a problem removing the variables that aren't used by the DeleteResource procedure, right?
That is, since strName and blnVerboseMode aren't used by the procedure, there's no need to declare...
Indeed I gave up too quick. I was having a moment of panic back there. Sorry for the drama. But I'm still considering my options regarding jobs, as my current job seems to be quite stressful. Well, when one is set to perform tasks one is not qualified for, stress tends to arise.
Anywho, I...
I'm in over my head here.
I apologize for my shortcomings. This is all new to me, and I'm not capable of writing this script myself, and I do not have the knowledge required to add tidbits and whatnot to scripts I do not understand.
I thought this script wouldn't be too difficult to make, but...
I wish I could, but it seems as though the entries under NetHood aren't shortcuts (*.lnk), but rather folders.
Issuing a command "del *.lnk" in NetHood accomplishes nothing, as there are no .lnk files.
Issuing a command "del *.*" doesn't remove the folders, either.
*scratch head*
It seems as though the script isn't working properly, though. I get a runtime error, no matter what strDescription I use.
Besides, I really need to use a wildcard of some sort, as I have no idea of knowing how many locations are stored under Nethood, and what their names are. Hmmmmmmm, this is...
Thanks, GrimR! I'll have a gander at it, and run the script in a test environment.
Newbie question:
I see that you declare an array sNethoodArray. Seing as I'm not used to working with arrays, might I ask you what = "Name here" and = "Data" actually does here?
And is this array limited to size...
Greetings all!
I'm quite new to programming and scripting, so please bear with me if I ask seemingly mundane questions, m'kay? :-)
My employer has asked me to come up with a logon/startup script to use when setting up a new server at a branch office. Basically, the script should clean up any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.