RE: File & Printer Sharing for Microsoft Networks REQUIRED FOR computer migration
From: Bob Qin [MSFT] (bobqin_at_online.microsoft.com)
Date: 06/30/04
- Previous message: Bob Qin [MSFT]: "RE: Access to Event Logs Denied"
- In reply to: redbandana: "File & Printer Sharing for Microsoft Networks REQUIRED FOR computer migration"
- Messages sorted by: [ date ] [ thread ]
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.
- Previous message: Bob Qin [MSFT]: "RE: Access to Event Logs Denied"
- In reply to: redbandana: "File & Printer Sharing for Microsoft Networks REQUIRED FOR computer migration"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|