How to turn on/off Windows Features in vista programmatically
Hello there,
I am trying to install Fax Service on Windows Vista Business programmatically. I used following code in VB.net and it is failing to install fax.
Dim obj = CreateObject("FaxControl.FaxControl.1")
If Not obj.IsFaxServiceInstalled Then
obj.InstallFaxService()
MsgBox("installed")
End If
It fails with message "Cannot create ActiveX component.". This code works properly for Win XP and Win2k3. Please suggest solution.
Also is there a way to turn Windows Features "Windows Fax and Scan" ON programmatically in Vista?
Thanks,
Gangadhar
May 2nd, 2010 9:44am
Please see:
Windows Fax and Scan. Make sure a hardware modem and scanner is installed.Carey Frisch
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2010 10:27am
Hello Carey,
I looked into it and I am nowhere getting how to turn on "Windows Fax and Scan" turned on/off programmatically. I should be able turn "Windows Fax and Scan" feature on/off
programmatically even if I do not have hardware modem/scanner installed.
Thanks,
Gangadhar
May 2nd, 2010 10:42am
What do you mean turn Fax and Scan on programmatically? What are you trying to accomplish?
Thanks!Lorien - MCSE/MCSA/Network+/A+ --- If this post helps to resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others find the answer
faster.
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2010 12:46pm
Hello,
How can we turn on/off Windows Features in vista programmatically. I want to turn ON "Windows Fax and Scan" feature programmatically. I could install IIS using pkgmgr.exe, but not getting feature name for "Windows Fax and Scan" to enable fax service.
Thanks,
Gangadhar
May 4th, 2010 4:47pm
Hi,
Since it is a source code related issue, I suggest you discuss in MSDN forum.
Visual Basic CategoryArthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
May 6th, 2010 12:53pm