grittyminder
IS-IT--Management
Hi there,
I'm trying to write a script that automatically installs/enables Microsoft Network File and Print Sharing using snetcfg.
I was able to get the uninstall component to work (i.e. snetcfg.exe -v -u MS_Server). NOTE: in order to able to enable File/Print Sharing apparently you first need to uninstall it. However, was unable complete the re-install (i.e. snetcfg.exe -v -l %windir%\Inf\NETSERV.INF -c s -i MS_Server). When I run the above command I get an access denied error message, even when logged in as a local administrator user.
When I try to install the File/Print Sharing service via network connections I get a similar access denied error message, even if I browse and manually locate the NETSERV.INF file. NTFS permissions on C:/Windows indicate nothing out of the ordinary (e.g. administrators and SYSTEM users have full control, etc).
I'm not sure what to do next... any ideas?
I'm trying to write a script that automatically installs/enables Microsoft Network File and Print Sharing using snetcfg.
I was able to get the uninstall component to work (i.e. snetcfg.exe -v -u MS_Server). NOTE: in order to able to enable File/Print Sharing apparently you first need to uninstall it. However, was unable complete the re-install (i.e. snetcfg.exe -v -l %windir%\Inf\NETSERV.INF -c s -i MS_Server). When I run the above command I get an access denied error message, even when logged in as a local administrator user.
When I try to install the File/Print Sharing service via network connections I get a similar access denied error message, even if I browse and manually locate the NETSERV.INF file. NTFS permissions on C:/Windows indicate nothing out of the ordinary (e.g. administrators and SYSTEM users have full control, etc).
I'm not sure what to do next... any ideas?