Code: Select all
FSO.GetParentFolderName(WScript.ScriptFullName)runUpdate.VBS:
Code: Select all
Set objShell = CreateObject("Shell.Application")
set FSO = CreateObject("Scripting.FileSystemObject")
scriptName = ".\UpdateService.VBS"
If FSO.FileExists(scriptName) Then
objShell.ShellExecute "wscript.exe", _
Chr(34) & scriptName & Chr(34), "", "runas", 1
End IfCode: Select all
Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "sc config NetTcpPortSharing start= auto"
objShell.Run "sc start NetTcpPortSharing"
Set objShell = NothingAny help would be most appreciated as I'd rather not leave it up to my users to configure the service.
FOLLOW US
Get the latest news in Application Packaging