Page 1 of 2 12>
Topic Options
#189212 - 2008-08-22 01:41 AM What is your latest kix script?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I just wrote a script to search for and collect specific file types on a user's machine and copy them to a specific server share.

We are having a legal discovery and have to provide all (doc/xls/etc) scanned from a user's machine and provided to our legal dept.

The script uses robocopy to search for files and save the filepaths/names which is then used to feed a copy routine with some logic to ensure that no files are overwritten if the filenames are the same in the destination folder. (@ticks+$filename.ext)
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#189216 - 2008-08-22 03:00 AM Re: What is your latest kix script? [Re: Radimus]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
My latest is the User Profile Manager.
It allows our help desk to do some basic functions with a single tool.

Password Changes
Unlock Accounts
Reset Profiles
Telecommuter Status
Profile Sizes

Stuff like that.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#189217 - 2008-08-22 03:05 AM Re: What is your latest kix script? [Re: Gargoyle]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Not completed, but close (really just need to test). Writing a script to mass uninstall Symantec AV Corp 10. BTW, Symantec can bite me.
Top
#189218 - 2008-08-22 10:14 AM Re: What is your latest kix script? [Re: Allen]
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Writing a mailparser or something of the sort. Fetching the headers and trying to generate some stats..
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!

Top
#189235 - 2008-08-22 03:18 PM Re: What is your latest kix script? [Re: Björn]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Getting training in Powershell next week....

Somehow I doubt that I will ever give up KiX though. It is like a bad habit \:\)
_________________________
Today is the tomorrow you worried about yesterday.

Top
#189240 - 2008-08-22 07:28 PM Re: What is your latest kix script? [Re: Gargoyle]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Couple of concurrent projects:
SendMail service - monitors a folder and sends mail messages based on content. Interfaces to a web site.
MailSig - generates an email signature file in HTML based on AD settings
MailArch - disable and move PST to a central location to facilitate an Exchange archiving project.
KGen/Sanity - updates to the KGen UDF resolver and the Sanity UDF
SWProcD - a windows service that synchronizes folders containing software install folders between a master site and our branch offices. It also migrates log files back to the central server for consolidation. Same service runs on each server and interfaces with the Unison sync utility.

Oh, and my latest favorite - the script that enumerates all user's home and profile folders looking for unauthorized media files (music, video, and photo) and removes them. Bwa-ha-ha-ha!

Evil Admi - er.. Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#189243 - 2008-08-24 10:37 AM Re: What is your latest kix script? [Re: Glenn Barnas]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1895
Loc: Hilversum, The Netherlands
My Latest is a script that checks all Computer objects on my site, checks if online, then gets the PN and SN from WMI, and check them on a HP website to see if the CarePack is still active. Then write it to a log.
Top
#189273 - 2008-08-26 01:57 AM Re: What is your latest kix script? [Re: Allen]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Hi Allen,

Why you changing AV? I wanted to, but the costs to switch to another vendor are just as bad as Symantec. Was going to try and maybe go with ESET/NOD32 but by the time you get everything in place you're not saving any money and their support is no better than Symantec (at least in my limited experience with them).

You removing Symantec cleanly or hacking it out? I might have some stuff for you if you're hacking it out.


.

Top
#189294 - 2008-08-27 12:40 PM Re: What is your latest kix script? [Re: NTDOC]
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Latest non-trivial script I can think of was one to bulk-create DNS forward/reverse entries from a CSV file.

It's been used to pre-populate DNS with things like router interfaces.

There is probably a MS tool knocking about somewhere to do it, but where is the fun in that \:\)

Top
#189301 - 2008-08-27 05:24 PM Re: What is your latest kix script? [Re: Richard H.]
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Doing a similar thing as Glenn with the MailSig thing, but generating images with ImageMagick instead since I've grown tired of Outlook's HTML support and all crafty colleagues that think they're god sent graphic designers ;\)

@Allen, I suffer with you hehe... But have faith, Symantec has a command line tool for this called CleanWipe. It's their own tool and the best way to completely remove Symantec products.


Edited by masken (2008-08-27 05:25 PM)
_________________________
The tart is out there

Top
#189308 - 2008-08-27 07:37 PM Re: What is your latest kix script? [Re: masken]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Ah! Endpoint 11 - I never installed that version. Still using the 10.x


Endpoint Removal Tool

 Quote:
Mike,

Others have already answered the question, numerous times and in multiple posts (and at least once in this post). Sandeep is requesting the case number so he can track down the call and work out what happened and find out why the caller couldn't get a copy of cleanwipe.

The standard way to get CleanWipe is to raise a call with support. All support engineers should know about it (if they search our internal KB they will find it). I cannot see us posting CleanWipe to the public site any time soon due its sheer effectiveness at removing our product. If people need a copy, then please log a call (you can do this online using mysupport.symantec.com) - if you haven't had a reply after 24 hours please post your case reference here and one of us will follow up.

Please note that we would only recommend using CleanWipe as the final solution for removal of our product, the proper uninstallation routines should always be tried first.

Top
#189311 - 2008-08-27 11:21 PM Re: What is your latest kix script? [Re: NTDOC]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Actually I'm using two registry changes to eliminate it asking for the uninstall password. Then, and this is the part I have not tested just yet, I will either use psexec or wmi to run the uninstaller on each machine.

Version 11 sucks, IMHO. It's slow, the management is clunky, and it seems every time you turn around Symantec is raising prices. I'm most likely going to point my customers to Sunbelt Software's Vipre Enterprise. They are even offering competitive upgrades right now too.

Top
#189313 - 2008-08-28 02:30 AM Re: What is your latest kix script? [Re: Allen]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
What 2 keys are you removing or changing?
Top
#189314 - 2008-08-28 05:24 AM Re: What is your latest kix script? [Re: NTDOC]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Here is the main part of the script.

Untested, but based on info found on the web.
;    $RC=Writevalue("\\" + $computer + "\HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\LANDesk\ VirusProtect6\CurrentVersion\AdministratorOnly\Security","UseVPUninstallPassword",0,"REG_DWORD") 
; $RC=Writevalue("\\" + $computer + "\HKEY_LOCAL_MACHINE\SOFTWARE\INTEL\LANDesk\ VirusProtect6\CurrentVersion\AdministratorOnly\Security","LockUnloadServices",0,"REG_DWORD")


;Use one or the other below
; run @scriptdir + '\psexec \\' + $computer + ' MsiExec.exe /norestart /q/x{BA4B71D1-898E-4306-AE87-8BA7A596F0ED} REMOVE=ALL
; ;$RC=RemoteRunAs($computer,$domain + "\" + $admin,$adminpw, 'MsiExec.exe /norestart /q/x{BA4B71D1-898E-4306-AE87-8BA7A596F0ED} REMOVE=ALL')


RemoteRunAs is in the UDF section.

Top
#189336 - 2008-08-29 12:41 AM Re: What is your latest kix script? [Re: Allen]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Thanks Allen

Was curious if the removal of that key actually worked to not ask for the password. Back about 5 years ago there was no such key so you had to really hack it even more.

I keep thinking about making my own removal tool, but each time I end up just doing a quickie hack/slash removal and never make a real removal tool...

Too many distractions and other real work. So - some day

Top
#189345 - 2008-08-29 10:35 PM Re: What is your latest kix script? [Re: NTDOC]
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1341
Loc: NL
Sorry guys,

My latest script must be 2 years old \:\(
_________________________
Co


Top
#189346 - 2008-08-29 11:10 PM Re: What is your latest kix script? [Re: Co]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I don't remember which one was the last...
hmm...
lately, I've been writing kix-scripts that have been sold to audience as full blown software and I haven't gained on them. \:\(

those include automated laptop backup software (similar to rads in the first post), electric-bill-service-management (e-bill, the finnish postal service something something) and so forth.

anyhow, lately been coding days in and out with VB and end is not nead.
I estimate at least 2 weeks of headache full days before the asp code is ready...
_________________________
!

download KiXnet

Top
#189349 - 2008-08-30 09:43 AM Re: What is your latest kix script? [Re: Allen]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1895
Loc: Hilversum, The Netherlands
 Originally Posted By: Allen
RemoteRunAs is in the UDF section.


\:D

Top
#189350 - 2008-08-30 04:17 PM Re: What is your latest kix script? [Re: Arend_]
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I created a KiXForms script to take an MD5 Hash and decrypt it for logins.

It uses an excutable that is external to it and places the result into a window..

I then created another KiXForms script that gives the ability to set accounts active from a D Status to an A Status. An interface so simple that we now have the Receptionist re-enable accounts and we don't have to fire up Enterprise Manager for our clients.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#189363 - 2008-09-02 02:32 PM Re: What is your latest kix script? [Re: Kdyer]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
This one here

Feels kinda \:\(
_________________________



Top
Page 1 of 2 12>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.077 seconds in which 0.027 seconds were spent on a total of 15 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org