Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 746321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:04:39+00:00 2026-05-14T14:04:39+00:00

When I open the properties on a network connnection on windows, I see this

  • 0

When I open the properties on a network connnection on windows, I see this dialog:
Connection_Properties http://www.freeimagehosting.net/uploads/ca7a4d82ea.png

In this dialog, in the check-listbox I can enable or disable options like “File or printer sharing”, “client for microsoft networks” or network filter drivers.

My question is: How can I enable/disable these options programatically? I didn’t find anything that looks like this in the WMI documentation and I couldn’t find any other Win32 API for this. I would prefer a C Win32 API or WMI interface, but a solution using any programming language is welcome. The question is language-agnostic.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:04:39+00:00Added an answer on May 14, 2026 at 2:04 pm

    I think INetCfg is what you’re looking for:

    http://msdn.microsoft.com/en-us/library/ff547694%28VS.85%29.aspx

    Edit: Here’s a link to a discussion where someone uses INetCfg to disable just File & Printer sharing.

    http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/b0407073-07bc-462b-9de9-7295be5fa183

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This script is supposed to open both Windows shell Status and Properties dialogs of
Is there a way to open My Computer Properties from C# Windows Application? For
How to open an file's Properties dialog by a button private void button_Click(object sender,
When in Windows XP, if I open the properties window for the file and
I am using JNA with Java to find some properties about open windows on
properties = [color, font-size, font-family, width, height] inPath = style.css outPath = output.txt #Open
In Eclipse (Android development) you can go to project properties and then: Open Android
open message box and long click on a message , as you can see
I open a html page with a myApp.js included like this: <html> <body> ......
I am unable to add new roles, custom reports, or open properties due to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.