Print Spooler Service to Automatic (Delayed Start) causes Error 87
Solution 1
If you delete Group
value from HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler
then after system restart you will be able to set Spooler startup type to Automatic (Delayed Start)
. Not the cleanest solution but it worked for me.
Solution 2
A similar question was asked in a Windows Sysinternals thread, and it seems like you cannot set the flag because some services are part of a service group, which is controlled by the ServiceGroupList in the registry. Since services often depend on other services, some cannot be delayed.
However, third-party tools such as Startup Delayer are able to delay some services.
Related videos on Youtube
user3809062
Updated on September 17, 2022Comments
-
user3809062 almost 2 years
I want to start off my saying that I have tried for about 2 hours to find how to title my applet using JApplet. I just started using GUIs about two weeks ago. Here's my code. I'm having trouble in the init(); Any help will be great, thanks!-Tanner
import java.awt.*; import javax.swing.*; import java.awt.event.*; public class blooddrive_average extends JApplet implements ActionListener { JLabel Dep1=new JLabel("Department 1"); JTextField atext1=new JTextField(5); JLabel Dep2=new JLabel("Department 2"); JTextField atext2=new JTextField(5); JLabel Dep3=new JLabel("Department 3"); JTextField atext3=new JTextField(5); JLabel Dep4=new JLabel("Department 4"); JTextField atext4=new JTextField(5); JLabel Dep5=new JLabel("Department 5"); JTextField atext5=new JTextField(5); JButton but1=new JButton("Average"); //button 1 JButton but2=new JButton("Clear Fields"); //button 2 Font resfont=new Font("Ravie", Font.BOLD,20); JLabel average=new JLabel(); //for the action listener Container c; FlowLayout flow= new FlowLayout(); public void init() { JFrame window=new JFrame(); window.setTitle("A"); //************ this is where i'm having trouble declaring the applets title c=getContentPane(); c.setLayout(flow); c.setBackground(Color.white); Dep1.setForeground(Color.red); c.add(Dep1); atext1.setForeground(Color.blue); c.add(atext1); Dep2.setForeground(Color.red); c.add(Dep2); atext2.setForeground(Color.blue); c.add(atext2); Dep3.setForeground(Color.red); c.add(Dep3); atext3.setForeground(Color.blue); c.add(atext3); Dep4.setForeground(Color.red); c.add(Dep4); atext4.setForeground(Color.blue); c.add(atext4); Dep5.setForeground(Color.red); c.add(Dep5); atext5.setForeground(Color.blue); c.add(atext5); but1.setForeground(Color.red); c.add(but1); but2.setForeground(Color.red); c.add(but2); average.setFont(resfont); average.setForeground(Color.blue); c.add(average); but1.addActionListener(this); but2.addActionListener(this); } public void actionPerformed(ActionEvent e) { if(e.getSource() == but1) { String text1=atext1.getText(); double number1=Double.parseDouble(text1); String text2=atext2.getText(); double number2=Double.parseDouble(text2); String text3=atext3.getText(); double number3=Double.parseDouble(text3); String text4=atext4.getText(); double number4=Double.parseDouble(text4); String text5=atext5.getText(); double number5=Double.parseDouble(text5); double average1=((number1+number2+number3+number4+number5)/5); average.setText("The average pints of blood donated\n" + " by the five departments is: "+average1); atext1.setEnabled(false); atext2.setEnabled(false); atext3.setEnabled(false); atext4.setEnabled(false); atext5.setEnabled(false); } else if(e.getSource() == but2) { average.setVisible(false); JLabel Dep1=new JLabel("Department 1"); atext1.setText(""); JLabel Dep2=new JLabel("Department 2"); atext2.setText(""); JLabel Dep3=new JLabel("Department 3"); atext3.setText(""); JLabel Dep4=new JLabel("Department 4"); atext4.setText(""); JLabel Dep5=new JLabel("Department 5"); atext5.setText(""); atext1.setEnabled(true); atext2.setEnabled(true); atext3.setEnabled(true); atext4.setEnabled(true); atext5.setEnabled(true); atext1.requestFocus(); } } }
-
Dennis Williamson over 13 yearsWhat OS? Windows?
-
Synetech over 13 yearsWhat are you using to make the change? Is it running as admin? You could check the registry to see if the
Services\Spooler
key, and particularly theRequiredPrivileges
value is damaged. -
Mateen Ulhaq over 13 years@Dennis Windows Vista SP2 Home Premium
-
Synetech over 13 yearsHmm, I don’t know what it should be in Vista, and it might be different depending on OS type, service-packs, printer-drivers, etc., but in Windows 7, I’ve got SeTcbPrivilege
SeImpersonatePrivilege SeAuditPrivilege SeChangeNotifyPrivilege SeAssignPrimaryTokenPrivilege SeLoadDriverPrivilege
(in that order). Have you installed a printer or printing software recently? -
Mateen Ulhaq over 13 years@Synetech I installed a printer [Lexmark X5450 All-In-One Printer], but that was ~4 years ago. Of course, this problem has been around for a long time, too.
-
Synetech over 13 yearsI just tried it myself using the Services MMC snap-in, the service-controller, and even manually setting it with the registry and none of them worked. I was able to set other services to delayed-auto and could set the spooler to other modes, but the spooler just does not want to be set to delayed-auto. o.O I’ll ask around to see if I can find any info on why it won’t…
-
user3553031 almost 10 yearsWelcome to Stack Overflow! Please clearly state your question and give us a minimal block of code that demonstrates the problem that you're having. Dropping a couple hundred lines of code on us with your question in a comment part-way through isn't likely to get you many answers.
-
-
user3809062 almost 10 yearsThank you for replying! However, I did that and when it ran, it returned a blank applet with no title.
-
user3809062 almost 10 yearsI copied and pasted that into a new file and I still got a blank applet. I ran my original without any title and it ran fine. I'm using DRJAVA, will that have anything to do with it?
-
user3809062 almost 10 yearsOkay, thank you for your help! I'm going downloading eclipse luna right now to see if that changes it.