Script to disable Client for Microsoft Networks and File and Print Sharing for Microsoft Networks

Hi, I am trying to find a way of using a batch file or vbscript to disable Client for Microsoft Networks and File and Print Sharing for Microsoft Networks on a Network Interface Controller.
I've done some searching on the internet and I can see some suggestions to locate the Setting ID of the NIC and then remove the value from the "Bind" string under "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Linkage" and "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Linkage"
I tried this but it didn't seem to uncheck itself from the NIC properties under NCPA.cpl
Can someone help me? 

http://social.msdn.microsoft.com/Forums/vstudio/en-US/b0407073-07bc-462b-9de9-7295be5fa183/disable-file-and-printer-sharing-for-mircorosoft-networks?forum=csharpgeneral
¯\_(ツ)_/¯

Similar Messages

  • File and printer sharing for Microsoft Networks on Windows server 2008

    Hi Expert,
    I found that the properties of File and printer sharing for Microsoft Networks service disabled after I install the windows server 2008 64bits. I tried to install that service via adding the file and printer sharing services in the properties of local area connection, but it doesn't contain any service in the popup box.  Also, no such service file available in the disk when I tried to install the service from installation disk of windows server 2008 64bits. Is the file "sacsrv.dll" corresponding to the service name of file and printer sharing? I found it is in the directory of "Windows\system32".  I have no idea about where is the problem? Do I miss some components? Please tell me what can I do for it? Thanks!
    Best Wishes,

    Do any experts know the reason of this problem?  Thanks!

  • How to uncheck File and Printer Sharing for Microsoft Networks by Command!!

    Dear everybody,
    I meet a problem with my System now, and I need your help!!!
    As mentioned in title, I need uncheck on File and Printer Sharing for Microsoft Networks by Command for Security purpose.
    Could you show me the way to do it by command line
    I think GPO can solve this but My Boss want to do it by command line
    Thanks for your help!!!

    netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes
    netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
    To disable these functions in Windows, use the same command and replace 'Yes' to 'No' in the above commands.

  • X301 "File and Printer Sharing for Microsoft Networks" removed at re booting (XP SP-3)

    Even if I run the “Network Identification Wizard” (under System properties/Computer Name) to join a Workgroup, the box ‘File and Printer Sharing for Microsoft Networks’ remains unchecked.  If I ticked it manually, it remains checked for the current session, but it is unchecked at booting.
    The same occurs with the Windows Firewall (I am running that from Symantec). I switch the Windows Firewall off, but after rebooting, it appears selected again!.
    This happens only with my brand new ThinkPad X301, which came with Vista. The package included a kit to convert to XP, but this installed a ‘naked’ XP, which required downloading from Lenovo and Windows about 1Gb of files (bad service, Lenovo guys!).
    I wonder which “safety” issue of the X301 causes this, but how can I stop this happening? (It does not occur with any of my two old ThinkPads, also running XP SP-3 and Lenovo software).
    Solved!
    Go to Solution.

    See -> http://www.vistax64.com/vista-networking-sharing/72537-file-printer-sharing-turned-off-reboot.html  Here is the text. Re: File and Printer sharing turned off on reboot
    I FOUND MY SOLUTION!!!
    In my case, it was in Lenovo's "ThinkVantage Access Connections" applet. It
    is additional security that is applied at the CONNECTION level.
    Here is how I fixed it:
    1. Double click on the ThinkVantage Access Connections applet in the
    notification area.
    2. Click on the MANAGE button on the toolbar
    3. Select the SSID where you want File Sharing to work, and click EDIT
    4. Click on the ADDITIONAL SETTINGS tab
    5. Next to "Network Security", click the SETTINGS button
    6. The first option in Security Settings is "Disable file and printer
    sharing". UNCHECK this box. Click OK for 3 levels of dialog boxes, then
    close Access Connections
    Although these directions are specific to ThinkPad notebooks, the same
    principle may apply for other manufacturers' connection managers.
    Best of luck!

  • File and Printer Sharing for Microsoft Networks is missing

    I have a Server 2012 Hyper-V VM that is missing the File and Printer Sharing for Microsoft Networks. When I try to Install the service it is not listed. The only service listed is Windows Network Virtualization Filter driver. I have the install media but
    I don't know where the driver would be located. I'm hoping someone can tell me where it is located.
    Update:
    I am trying to run Enable-NetAdapterBinding -Name Ethernet -ComponentID ms_server but it's not working and it's giving me this error.
    Enable-NetAdapterBinding : No matching MSFT_NetAdapterBindingSettingData objects found by CIM query for instances of
    the ROOT/StandardCimv2/MSFT_NetAdapterBindingSettingData class on the  CIM server: SELECT * FROM
    MSFT_NetAdapterBindingSettingData  WHERE ((Name LIKE 'Ethernet')) AND ((ComponentID LIKE 'ms[_]server')). Verify query
    parameters and retry.
    At line:1 char:1
    + Enable-NetAdapterBinding -Name Ethernet -ComponentID ms_server
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (MSFT_NetAdapterBindingSettingData:String) [Enable-NetAdapterBinding], C
       imJobException
        + FullyQualifiedErrorId : CmdletizationQuery_NotFound,Enable-NetAdapterBinding
    Vincent Sprague

    Ok, fixed it, I found the netserv.inf file in c:\windows\inf and tried to use it to reinstall File and Printer Sharing. However File and Printer Sharing was not listed. I copied the netserv.inf file from another Server 2012 VM and was able to install File
    and Printer Sharing using the copied NetServ.inf. After rebooting the server I was able to access network shares on the server.
    Vincent Sprague

  • Ho to find script and the related print program for print preview of PO

    Hi All,
    We are getting some text output on the print preview of a purchase order.
    How can we determine the driver script and the corresponding print program for this.
    Can you please guide on this.
    Thanks in advance.
    Regards,
    Sanjeet

    U Can check Driver program and form related to that program table is TNAPPR
    Goto NACE t.code
    Selct Application ---> click on output types
    then u wil get one window there select proper output type and
    double click on  processing  routines u wil get form name and related driver program name also
    Plz try this....
    Edited by: Upender Verma on Feb 9, 2009 1:33 PM
    Edited by: Upender Verma on Feb 9, 2009 1:37 PM

  • Hello i need a help about script to export translatable text strings from ai files and import them back

    Hello i need a help about script to export translatable text strings from ai files and import them back after editing, thanks in advance

    Lanny -
    Thank you for taking the time to help with this problem. Can I just say however that as someone who has posted a first comment here and quite clearly never used a forum like this before, your comment unfortunately comes across as very excluding. It makes me feel there are a set of unwritten rules that I should know, and that I don't know them shows that the forum is not for me. In short, it's exactly the kind of response that stops people like me using forums like this.
    I'm sure it's not intended to be received like this and I am sure that the way you have responded is quite normal in the rules of a forum like this. However, it is not normal for those of us who aren't familiar with forums and who only encounter them when they have a genuine problem. This is why I hope it is helpful to respond in full.
    The reason I posted here is as follows. I was directed here by the apple support website. The original comment seemed to be the only one I could find which referred to my issue. As there is no obvious guidance on how to post on a forum like this it seemed perfectly reasonable to try and join in a conversation which might solve more than one problem at once.
    Bee's reply however is both helpful and warm. This could in fact be a template for how new members should be welcomed and inducted into the rules of the forum in a friendly and inclusive way. Thank you very much indeed Bee!

  • I am using MS Office 2010 and Windows XP Professional, can I use iCloud for backup of my files and documents?

    I am using MS Office 2010 and Windows XP Professional, can I use iCloud for backup of my files and documents? I am planning to transition to a Mac so using the iCloud seems to make the most sence.

    No, it is not a backup method at all.  If you delete a sync'd file on any device, you delete it permanently from iCloud.  That by its very essence is not a backup solution therefore.  A backup solution does not automatically and simultaneiously delete the file everywhere when it is deleted from the original source.
    iCloud is strictly a syncronization tool for using files on multiple internet connected devices.

  • After Photoshop Elements quit working for the second time in three months, I uninstalled it and now cannot get it to reinstall from the disc. Nothing happens when I insert the disc. All I can do is look at the folders and files and see nothing that tells

    After Photoshop Elements quit working for the second time in three months, I uninstalled it and now cannot get it to reinstall from the disc. Nothing happens when I insert the disc. All I can do is look at the folders and files and see nothing that tells me how to start the installation. Clicking "open with Auto play" gives me irrelevant options, view photos, share, etc. I'm running Windows 8. This program has worked, although buggy, for the past year.

    reinstall by clicking setup on your disk or downloading and installing,
    Downloads available:
    Suites and Programs:  CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Event id related to the removal of the file and print sharing for networks

    Hi ,
    Recently print team has migrated the print server from the physical old server A to the VM server A-new .After the migration ,  the server A-new is retained with the name server A shutting down the old server .
    But the clients are reporting that they are not be able to print because we found that due to this print team migrated the old print server to the new print server with the duplicated entries which reflected in AD. This our server team came to know once
    the complaint raised  by the site person to us saying that their printers are not working at all.
    While checking the issue only then we found that the duplicated entries are found in the AD for the printer objects published in the AD.Print team has done the improper migration and left to server team saying that it is our responsibility to solve the issues.
    And I suspect that somebody has  removed the file and print for networks in the network portion of the windows.We came to know only when we try to take any share either file share or print from the particular server to file server.
    After enabling that option in the network portion , everything got resolved as the duplicate entries removed from the AD and published one instance of the printers.
    I need to find the event in which this action has been triggered to remove that component and from that to identify who has done that..
    Any help is greatly appreciated
    Thanks & Regards S.Swaminathan Live & let others live!!!

    There are some print events on the Domain Controller if one of the DC "pruned" the old print objects.  Unfortunately these are information events logged to Print-Service Operational channel which is not enabled by default.  You might
    be lucky and someone had these events enabled. 
    Check if the channel is enabled on all your domain controllers. 
    http://social.technet.microsoft.com/wiki/contents/articles/13308.troubleshooting-windows-server-2012-printing.aspx
    Alan Morris formerly with Windows Printing Team

  • How do I uninstall Elements 11?  I get Error 1316 and file it is looking for doesn't exist.

    Nothing happens when I click on the Organizer button on the bottom of the screen in a new installation except it says Loading the Elements Organizer Workspace and then the message goes away. So I was going to uninstall and reinstall and got the error 1316 message "Network error occurred while attempting to read from the file C:\windows\installer\adobe photoshop elements 11.msi.  This file does not exist.  I have no network.  Can' find an answer that deals specifically with version 11.  Tried the Microsoft Fixit and that aborted with code 80072F8F.  Any solutions?

    You can try running the CS Cleaner tool from CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.
    Were you previously trying to utilize the FixIt tool at http://support.microsoft.com/mats/program_install_and_uninstall/?

  • AppleScript : modify labels for multiple selection of files and folders in Finder ?

    As an experienced programmer in Pascal, Excel VBA, ... I am trying to find my way in AppleScript (first steps).
    I am trying to build a small script that will run on a keyboard shortcut, and that will toggle the label of selected files and folders (multiple selection ?) in Finder between "purple" and "no label".
    Based on a recorded action, I was trying something along the lines of
    tell application "Finder"
              Activate
              repeat with oneItem in selection
                             set label index of oneItem to 3
              end repeat
    end tell
    I am not clear on how to make the script understand that in a multiple selection I want to apply the requested command to each item. In addition, when testing it on one single item, it appears that I can't set the label index property of "selection" ...
    Can someone please advise what the correct way is of (a) setting the property of a selected item in the Finder and (b) looping through a multiple selection ?
    Thanks in advance.
    Philip
    P.S. Running Mac OSX 10.8.2 on MacBook Air, MacBook Pro and MacMini

    Thanks alot, Softwater. In fact, I have been playing around with that and found that the "get" statement in your script suggestion is not even necessary. The script I saved as a Finder Service is now :
    tell application "Finder"
              repeat with oneItem in selection as list
                             if label index of oneItem = 0 then
                                            set label index of oneItem to 5
                             else
                                            set label index of oneItem to 0
                             end if
              end repeat
    end tell
    By assigning a shortcut key to this one, I can now toggle labels.
    Additional trick I did is to restrict the applicability of the script to only movie-files (I am using this to change the labels of movies / TV shows on my computer which I still want to see versus the ones that I don't want to see anymore). I noticed during testing that the script would also color folders and drives selected in other finder windows than the one I was working in, so now it only works on movie files which is more what I want.
    Great tool, the AppleScript Editor and the Automator. Only a little bit a pitty that finding out about object structure and properties is not very straightforward in the AppleScript Editor (comparing to e.g. the VBA in MS Excel, which has an almost perfect help system and built-in reference). I am not a Microsoft fan in general, but when it comes to MS Excel VBA, I have not seen any built-in help system yet that approaches its usefulness ...
    I guess I will be "seeing" you again on this forum ... I am getting the taste of scripting again :-D

  • How to create print sharing for Mac and PC computers

    Hello~ I hope someone can answer these questions... Thanks!
    We are a small design office. We have trouble printing recently after we upgrade our Mac OSX v10.4.
    We have:
    2 PC computers (Window XP Home Edition)
    1 Power Mac G4
    1 Power Mac G5
    1 PowerBook G4
    1 Epson Stylus Pro 4000 large format printer
    1 hp laserjet 3030 fax/copier/printer
    We used to transfer the PC files to the server and print from Mac. We were able to print with 'shared printer' if one Mac computer is connected to the printer. After we upgraded 1 Power Mac G4 to OSX v10.4, we can no longer use the 'shared printer' for the other Mac computers. We cannot find the printer under 'shared printer' in the Adobe application, such as Illustrator and Photoshop.
    We would like to set up the print sharing system that both Mac and PC computers can send files to the prints without putting files to the server or switching the printers. Can anyone help please? Many thanks!
    Power Mac G4   Mac OS X (10.4.4)  

    There are a couple of disadvantages with formatting a
    disk as FAT32. Firstly, there is a limit on the file
    size for FAT32. I think it like 2 GB so if you
    capturing video the results will probably not fit
    into this file limit. Secondly FAT32 will not be
    bootable. I alway clone my system to a backup disk as
    bootable. That way if anything goes wrong with my
    system, I can just boot from my backup disk and fix
    it.
    The problem with doing this though is that the drive will not be usable with Windows (which was in the original posting) unless you use the third party MacDrive software on the PC.
    iFelix

  • HP 7500 printer and hp 2540 printer conflicts on same network

    I have a HP 7580 printer conected to my router.  We bought a wireless 2540 for printing from the iPad.  Now when both printers are on, the 7880 prints mirrored images.  I have to turn off mirrored image in the print preferences each time I print. Is there a setting that will correct this?

    Hi dctex,
    I understand you are now having to turn the mirrored printing settings off each time you print. Instead of opening the print preferences each time you print, open the Print Preferences in the Device and Printers and change the settings there. By modifying the setting in the Device and Printers, you are creating the default print option. I am not sure how this got changed or why this started happening, but I suspect this will resolve the issue.
    Here are some document with instructions in case you would like detailed instructions.
    Changing Print Settings in Windows 7
    Changing Print Settings in Windows 8
    If you are using Vista, the instructions will be the same as Windows 7. If you are Using XP let me know and I will find instructions for you, if you'd like.
    Please let me know if this does resovle the issue, or if the issue persisits. Thanks.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Extension for creating a zip file and unzipping it

    Iam totally new to Dreamweaver and the extensions. So please
    help me with this.
    Assuming i have a .zip file and it contains some html pages
    along with css and gifs.
    The req is to have an Import option, which given this zip
    file, can unzip its contents. The user can work on these html
    pages. When the user finishes working on them, I need an export
    button so that we can package the entire stuff back into a zip
    file.
    How can i implement this ?
    Is there any extension that is available for this ?
    Eagerly looking forward to some useful answers...
    Thanks in advance,
    Ganesh

    There used to be one .. I'm not sure if that was in DMX time
    or DMX 2004
    time .. that, when installed, allowed you to select files
    from the site
    folder or the whole thing and create a zip from them. I don't
    remember what
    it was called or who created it .. but it might be on one of
    my archived
    disks or zips .. I'll try to check it out later today.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner''s
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "Ganesh Ram" <[email protected]> wrote in
    message
    news:engarc$d62$[email protected]..
    > Iam totally new to Dreamweaver and the extensions. So
    please help me with
    > this.
    >
    > Assuming i have a .zip file and it contains some html
    pages along with css
    > and
    > gifs.
    > The req is to have an Import option, which given this
    zip file, can unzip
    > its
    > contents. The user can work on these html pages. When
    the user finishes
    > working on them, I need an export button so that we can
    package the entire
    > stuff back into a zip file.
    >
    > How can i implement this ?
    > Is there any extension that is available for this ?
    >
    > Eagerly looking forward to some useful answers...
    >
    > Thanks in advance,
    > Ganesh
    >
    >

Maybe you are looking for

  • Can't get Keynote to work properly...?

    Hi Everyone, I work at a local university and am working on a new project where I will be using another Mac to control an LCD screen, for display purposes, using Keynote '09. I normally work on a newer iMac, but for the display I use a G4. I will use

  • Having trouble transferring library and playlists from PC to new iMac

    I just purchased a new iMac and I have imported my music via a hard drive from my PC to the Mac.  I have the library and the playlists in the Mac but I do not have the play counts.  I would also like to sync my iPhone to the iMac library but it wants

  • BAPI_MATERIAL_MAINTAINDATA_RT ZZFIELDS

    Hello, I am updating mara, marc append structure  zfields using BAPI_MATERIAL_MAINTAINDATA_RT. I am using function value as 004. Value is not getting updated to material master. function = '004' material = matnr value plant = plant value field1 = val

  • Remove duplicates rows by date (min)

    I customer dimension where the customer can be identified by three kind of numbers different.  I have to load this dimension whithout customer duplicates, and the identified number can exist or not. for example id1    id2    id3       date  122  null

  • Problem with a custom tag using Jasper Report

    Hi everybody, I'm deprived of hope, I wrote this code for a custom taglib to convert a .jasper file into a .pdf file: package com.tag; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; import net.sf.jasperreports.engine.*; import net.sf.