Novell Home

Automatic Uninstall of Microsoft Client

Novell Cool Solutions: Tip
By Marcel de Roode

Digg This - Slashdot This

Updated: 21 Sep 2005
 

"Although this is not a ZENworks specific tip, it looks like something that many administrators have been crying out for."
--Shaun Pond, ZENworks Product Specialist

PROBLEM: When exploring the new Wiki thingy I encountered the following question:

How about a Cool Solutions for the following that still plague me:

  • Automatic uninstall of Microsoft Client for Windows Networks
  • Automatic uninstall of File/Printer sharing, Win XP

SOLUTION: Use Microsoft's snetcfg. The source can be obtained from Microsoft in the Driver Developer Kit

Precompiled versions for Win2000 and XP can be obtained on this site, which also shows how to use these tools.

Example

snetcfg -v -l C:\WinNT\inf\netserv.inf -c s -i MS_Server
    ...installs service 'MS_Server'

    snetcfg -u MS_IPX
    ...uninstalls component 'MS_IPX'

Q&A from Marcel

Question: Roger Linhart wrote, I saw your submission to Cool Solutions for automatic uninstall of Microsoft Client. Have you seen a method to automatically install the Microsoft Client? Thanks!

Answer: snetcfg can be used to install anything included in an inf file. You can find what inf-file to use in the registry of a computer which has the Microsoft client installed.

Go to HKLM\SYSTEM\CurrentControlSet\Control\Network; There are 4 subkeys:

{4D36E972-E325-11CE-BFC1-08002BE10318} for network adapters
{4D36E973-E325-11CE-BFC1-08002BE10318} for network clients
{4D36E974-E325-11CE-BFC1-08002BE10318} for network services
{4D36E975-E325-11CE-BFC1-08002BE10318} for network protocols

Find the client for Microsoft networks in the network clients key, and it gives you the ComponentID and the inf file it came from.

Then use snetcfg to install the service.

snetcfg -v -l C:\WinNT\inf\netmscli.inf -c c -i ms_msclient

(snetcfg /? gives you the command line options)

If you have any questions you may contact Marcel at deroode AT dia DOT eur DOT nl


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell