How do i invoke sc create from a powershell script
The issue here is not with the sc executable. As the error states, sc resolves to Set-Content. If you issue Get-Alias -Name sc, you’ll see: To bypass the alias, use the full name of the executable (including the file extension): PS C:\> sc.exe query wuauserv SERVICE_NAME: wuauserv TYPE : 20 WIN32_SHARE_PROCESS STATE : 4 RUNNING … Read more