73

You can modify the timeout value in the registry. 1. Click Start, click Run, type regedit, and then click OK. 2. Locate and then click the following registry subkey: - HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control 3. In the right pane, locate the ServicesPipeTimeout entry. **Note**: If the ServicesPipeTimeout entry does not exist, you must create it....


33

Automatic services start when the OS boots. Manual services do not. Triggers can be added to services to make them start on some event, such as an ETW event, or a USB device being plugged in, etc. Triggers can be added to either Manual or Automatic services. An example of the trigger(s) on an Automatic (Trigger Start) service: C:\Users\Ryan>sc ...


25

Here's how to get detail on a service without any external tools on Windows 7 and 8: Open the Resource Monitor: Open Task Manager and click on the Performance tab Click on "Open Resource Monitor" at the bottom Show Service Detail: Click on the "CPU" tab In the "Processes" section, find the process you want; you can sort by CPU by clicking the "CPU" ...


23

Windows can create a user-profile on-demand, using the CreateProfile API However, if don't want to create an executable to perform this operation, you can call the API in PowerShell. Others have already done it: example on github. Relevant part of the code: $methodName = 'UserEnvCP' $script:nativeMethods = @(); Register-NativeMethod "userenv.dll" "int ...


21

I encountered this problem too when trying to get the details of a service where the path to the executable was very long. This discussion contains a workaround; you can pass a buffer size as an argument to sc qc. That is, if you do: sc qc <service name> 5000 the "data area passed to a system call is too small" error goes away. Also see SC QC MSDN ...


17

Use the service name and not the display name sc query iisadmin


17

All you need to do is run a command as that user, Windows will create the profile: psexec.exe -u foobar -p Abcd123! cmd.exe /c exit https://docs.microsoft.com/en-us/sysinternals/downloads/psexec


16

No. The Service Manager GUI stinks. If you want to actually save start parameters, then go to \\HKLM\SYSTEM\CurrentControlSet\Services in the registry. Find your service. You can also enter startup parameters as part of the ImagePath key.


13

First, run cmd as administrator to open a command prompt. Command to copy proxy settings of current user to WinHttp: netsh winhttp import proxy source =ie To reset the proxy to default settings: netsh winhttp reset proxy To show proxy settings of current user: netsh winhttp show proxy


12

You already know what the best practice is; the MS-supported thing to do. You've already seen how disabling the service can lead to unpredictable behavior and that it breaks other functionality that's tangentially tied to the service. If you, as an administrator, don't have the power to stop the idiots from doing idiotic things, then escalate this to the ...


12

No direct way in PowerShell, just use sc sc.exe config NameOfTheService start= delayed-auto in older versions of Windows you needed a space after the equal sign, this doesn't seem to be required anymore but it still works. You can also change the registry keys: HKLM\SYSTEM\CurrentControlSet\Services\NameOfTheService\Start = 2 HKLM\SYSTEM\...


10

Apparently the free version of Hamachi requires the GUI to be running in order to operate. When you disconnect your RDP session the free version of Hamachi will disconnect. The workaround appears to be to run the following command instead of disconnecting. (Note: Number 1 below is your session ID. To know what your current session ID, in the console, run ...


10

The only way to remove such services is registry editing. go to regedit and find "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services" open the key which has your service name. That means the service name HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AdobeFlashPlayerUpdateSvc is for Adobe Flash player update service. You can see it in the ...


10

Using Delayed Start may be one possible solution. Another possibility is adding a dependency so that the services start up in the order that you want. For instance, you wouldn't want your service starting before, say, the NSI service, because network connectivity can't happen until the NSI service is running. So add a dependency. From MSDN: if an auto-...


9

To Expand on the above responses and provide parameters to robocopy: sc create "Robocopy Service" binpath="c:\windows\system32\robocopy.exe /JOB:robocopy" This will read the robocopy.rcj file that contains all parameters. You can execute the robocopy command with all the desired parameters and add the /SAVE:robocopy command to create the robocopy.rcj file....


9

You can use Powershell thus: Get-Service -name 'IIS Admin Service'


8

This service starts on a trigger. In order to see what the trigger that starts this service is, you can do: C:\Users\Ryan>sc qtriggerinfo AeLookupSvc [SC] QueryServiceConfig2 SUCCESS SERVICE_NAME: AeLookupSvc START SERVICE CUSTOM : 18f4a5fd-fd3b-40a5-8fc2-e5d261c5d02e [ETW PROVIDER UUID] An Event Tracing for Windows event ...


8

Two methods I can think of that don't require modifying the shares: Disable the Server service. OR Unbind File and Printer Sharing on the NIC.


8

Restarting a service will pickup changes to system environment variables. To check: Use SysInternals Process Explorer to inspect the environment of a service process before and after changing/adding a System environment variable and restarting the service. Note: Use "Run as administrator" on procexp.exe to see all properties of system processes.


7

The security event-log on the 2008 server should record the denied login attempt, which should also include whatever name it attempted to log in with. This is likely your best bet for figuring out what the service is trying to log in as. Secondly, I believe if you have it logging in as 'Local System' it doesn't have off-machine access. For that you'll need ...


7

You should monitor the Windows Process Activation Service and the World Wide Web Publishing Service. http://technet.microsoft.com/en-us/library/cc732050(v=ws.10).aspx


7

I wrote a small webapp some time ago which has a system dependency which is only available for unix systems so docker was the natural choice (although i had quite some success with vagrant ..) I am using windows for development and also running this webapp in its docker container. So I came across the same issue, "how to start this at system boot"? I ...


6

Another way, albeit much messier, is to use psexec to open a command prompt running as LOCAL SYSTEM, then from that open iexplore.exe, modify the settings appropriately.


6

You need to user Services preference extension which allows to configure existing services on client machines via GPO. More options for configuring services via GPO. Should work with W7, haven't tried on earlier client versions.


6

If you don't have a need to use Smart Cards for authentication, change the Startup Type of the the Smart Card Device Enumeration Service from Manual (Trigger Start) to Disabled. After doing so the unwanted delay on remote logon will disappear.


6

There is no simple way to do it using powershell cmdlets. In my opinion the easiest way is to use sc.exe. Here is one way to do that: $myArgs = 'config "{0}" start=delayed-auto' -f 'TheServiceName' Start-Process -FilePath sc.exe -ArgumentList $myArgs


5

To be clear, the proper command is: SC CONFIG MYSERVICENAMEHERE obj="NT AUTHORITY\LocalService" password= ""


5

IUSR is the security context used when anonymous visitors browse your website. I would recommend against using it for the WWW service. Prior to IIS7.5, a service account (IWAM) would be created for you that was a local account in addition to the local IUSR account. The new model is to run with different application pool identities so that one web site can't ...


5

Are you sure you're running the Remove Roles and Features wizard? You can also try to remove the role via Powershell. Run Powershell as an Administrator then type the following in the console. PS C:\WINDOWS\system32> Remove-WindowsFeature -Name AD-Certificate


5

Use the Internet Printing role. Have not used this role yet, but if you can print via internet, you can print via intranet ;) You should be able to set up a printer that connects via HTTP to the print server of the untrusted domain. Clients need the Internet Printing feature, which should be installed by default.


Only top voted, non community-wiki answers of a minimum length are eligible