RE: File & Printer Sharing for Microsoft Networks REQUIRED FOR computer migration

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Bob Qin [MSFT] (bobqin_at_online.microsoft.com)
Date: 06/30/04


Date: Wed, 30 Jun 2004 06:21:10 GMT

Hi Red,

Thanks for your posting here.

Here is a post of our MVP - Torgeir Bakken, that shows an example of using
snetcfg.exe to install/enableit:

http://groups.google.com/groups?selm=3E557131.25274A9A%40hydro.com

For your convenience, I have copy the script here.

' Script that enables F&PS
'
' Author: Torgeir Bakken

Set oShell = CreateObject("WScript.Shell")
Set oFSO = CreateObject("Scripting.FileSystemObject")

sWinDir = oFSO.GetSpecialFolder(0)

sSnetcfgPath = "c:\snetcfg\snetcfg.exe"

sUninstCmd = Chr(34) & sSnetcfgPath & Chr(34) & " -u MS_Server"
oShell.Run sUninstCmd, 0, True

sInstCmd = Chr(34) & sSnetcfgPath & Chr(34) & " -l " _
    & sWinDir & "\Inf\NETSERV.INF -c s -i MS_Server"
iRC = oShell.Run(sInstCmd, 0, True)

If iRC = 1 Then
  MsgBox "Enabling of F&PS failed!", vbExclamation, "F&PS Enabling"
  WScript.Quit
End If

MsgBox "F&PS enabled!",, "F&PS Enabling"

You can find the snetcfg.exe here.

http://www.jsiinc.com/dl/snetcfg.zip

For a Windows XP version, http://www.jsiinc.com/dl/snetcfg_wxp.zip

Have a nice day!

Regards,
Bob Qin
Product Support Services
Microsoft Corporation

Get Secure! - www.microsoft.com/security

====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • Re: Std Users, Update Files?
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... I use a VB script which simply points to a BAT file. ...
    (microsoft.public.windows.server.general)
  • Re: Javascript in an HTML table
    ... [previous posting superseded in the face of new evidence] ... This just displays my graph by itself. ... The <script ...> tag that was in the original code is missing here. ... Prototype.js was written by people who don't know javascript for people who ...
    (comp.lang.javascript)
  • Re: Setting registry data
    ... Manbinder Pal Singh ... This posting is provided "AS IS" with no warranties, ... I tried in google, but i was able to get codes in script format, not in ... this example shows how to read values from the registry but ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Metabase restore - how to tell if there is corruption?
    ... As your servers are clustering, you can synchronize the two metabases ... between the nodes using the following script: ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.exchange.admin)
  • Re: Clearing down IE temp files, the easy way??
    ... but i use a script which sets the registry key and it works fine. ... Best regards ... Disclaimer: This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.windows.terminal_services)