myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Deleting drivers - cannot delete more than 1 at a time

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Deleting drivers - cannot delete more than 1 at a time Page: [1]
Login
Message << Older Topic   Newer Topic >>
Deleting drivers - cannot delete more than 1 at a time - 11/11/2008 11:50:54 AM   
chiners_68

 

Posts: 221
Score: 3
Joined: 10/31/2007
Status: offline
anyone know how to delete a batch of drivers? its only giving me the delete option for single drivers at a time. ive got 360 to remove..lol
Post #: 1
RE: Deleting drivers - cannot delete more than 1 at a time - 11/11/2008 12:02:02 PM   
wbracken


Posts: 1043
Score: 22
Joined: 4/12/2002
From: St. Louis
Status: offline
Yeah thats a pain in the @** for sure.!

_____________________________

William Bracken

Visit my new Blog
http://wbracken.wordpress.com/

(in reply to chiners_68)
Post #: 2
RE: Deleting drivers - cannot delete more than 1 at a time - 11/11/2008 12:57:56 PM   
MhermanNBME

 

Posts: 78
Score: 3
Joined: 4/4/2007
Status: offline
I had to delete over a thousand, and what I ended up doing was just writing a simple vbscript that looped with sendkeys to delete one at a time. I can't find the script, but here is the sudo code:

wait 10 seconds (give some time to launch the scritp and set the focus in the console
start an infinate loop (or you could actually put in a counter)
send key delete
wait a second for the console to catch up
send key enter
wait again
loop back

You'll have to double check that those are the only key strokes needed, and get the right time delays. I know it's hokey, but it worked well enough for me.

(in reply to wbracken)
Post #: 3
RE: Deleting drivers - cannot delete more than 1 at a time - 11/11/2008 1:20:30 PM   
xneilpetersonx

 

Posts: 168
Score: 1
Joined: 7/18/2006
Status: offline
I have not used it but there is a script to delete all drivers on this page.

http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2461818&SiteID=17

neilp

(in reply to chiners_68)
Post #: 4
RE: Deleting drivers - cannot delete more than 1 at a time - 11/11/2008 4:25:57 PM   
chiners_68

 

Posts: 221
Score: 3
Joined: 10/31/2007
Status: offline
It  baffles me why microsoft have left out the facility to delete multiple drivers, especially when it was requested before sp1. Rejeting the request is even more amazing..lol

That vb script  looks ok ill give it a go. If not ill write something in Autoit to deal with it.

(in reply to xneilpetersonx)
Post #: 5
RE: Deleting drivers - cannot delete more than 1 at a time - 11/12/2008 9:10:59 AM   
zmiller

 

Posts: 1
Score: 0
Joined: 11/12/2008
Status: offline
Hey bud, I completely agree and it is a major pain in the butt to do this.  I've seen scripts that do key presses and I've seen scripts that delete all the drivers.  The nice thing is if you know WMI its easy to see where the drivers are and how to delete them in mass.  I was having a fit because I only wanted to delete a few drivers, say like 100, but I have over a thousand and I didn't want to delete all of them.  So what I did was created a script that will actually query the WMI area and delete the drivers that are disabled, since you can select multiple drivers and disable them.  I posted this on the microsoft forum so here is the link.  http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=4033763&SiteID=17

I hope this helps you as much as it helped me!

Let me know what you think!

(in reply to chiners_68)
Post #: 6
RE: Deleting drivers - cannot delete more than 1 at a time - 11/12/2008 3:06:11 PM   
chiners_68

 

Posts: 221
Score: 3
Joined: 10/31/2007
Status: offline
zmiller,
  that vb script looks the same as the one on the other technet link above. I run that script & it never worked. maybe because I didnt have any disabled drivers!!!
Ill give you one ago. if it works your agenius.lol

Ive not delt with vb before but I do need to really. I was going to write an autoit script but this will only deal with the windows & would only automate deleting the drivers 1by 1.


(in reply to zmiller)
Post #: 7
RE: Deleting drivers - cannot delete more than 1 at a time - 11/13/2008 8:18:19 AM   
chiners_68

 

Posts: 221
Score: 3
Joined: 10/31/2007
Status: offline
zmiller,
    getting errors with your script.

copied & pasted to vbs file & run.

dosent seem to like this line

quote:

 SET objSMSNamespace = GetObject("winmgmts:{impersonationLevel="&_
                                   "impersonate}!\\.\root\sms")


Windows Script Host
Line 48
Character 5
Error 0x8004100e
Code 8004100E
Source(null)

(in reply to chiners_68)
Post #: 8
RE: Deleting drivers - cannot delete more than 1 at a time - 11/14/2008 5:41:05 AM   
chiners_68

 

Posts: 221
Score: 3
Joined: 10/31/2007
Status: offline
If you run it on your Primary SCCM server the vbs script works. uses nearly 100% CPU while its running but eventually you will get a succesfully delete XXX Divers message & CPU returns to normal. Just be patient.


< Message edited by chiners_68 -- 11/14/2008 5:49:05 AM >

(in reply to chiners_68)
Post #: 9
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Deleting drivers - cannot delete more than 1 at a time Page: [1]
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



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.219