I do it manually but is there a command that can be put in a file
attached to a shortcut so that I can start and stop the print spooler
on demand?
I do it manually but is there a command that can be put in a file attached
to a shortcut so that I can start and stop the print spooler on demand?
Wolf Greenblatt wrote:
I do it manually but is there a command that can be put in a file attached to a shortcut so that I can start and stop the print spooler on demand?
net stop spooler
guess what the opposite is?
Andy Burns <usenet@andyburns.uk> wrote:
Wolf Greenblatt wrote:
I do it manually but is there a command that can be put in a file attached
to a shortcut so that I can start and stop the print spooler on demand?
net stop spooler
Amazing! That Google didn't know that!? [1]
guess what the opposite is?
No idea! Perhaps [2]!?
[1] <https://www.google.com/search?q=Windows+stop+spooler+from+command+line>
[2] <https://www.google.com/search?q=Windows+start+spooler+from+command+line>
net stop spooler
Amazing! That Google didn't know that!? [1]
This search would have served you better:
windows restart print spooler "command line"
On 22 Dec 2023 20:08:45 GMT, Frank Slootweg wrote:
net stop spooler
Amazing! That Google didn't know that!? [1]
It's harder than you might think as when I tried it, you have to add administrator access plus taskbar pin doesn't work on a bat shortcut.
Stan Brown wrote:
This search would have served you better:
windows restart print spooler "command line"
https://www.google.com/search?q=windows+restart+print+spooler+%22command+line https://4it.com.au/kb/article/restart-print-spooler-command-prompt/
But then you have to do it in a shortcut pinned to the taskbar
executed as administrator, so it's not as simple as people are making
it seem to be.
On 12/22/2023 8:13 PM, Wolf Greenblatt wrote:
On 22 Dec 2023 20:08:45 GMT, Frank Slootweg wrote:
net stop spooler
Amazing! That Google didn't know that!? [1]
It's harder than you might think as when I tried it, you have to add
administrator access plus taskbar pin doesn't work on a bat shortcut.
make a Scheduled Task only run on demand and set highest privileges.
then run SCHTASKS /RUN /TN "TASK NAME" by icon
It's harder than you might think as when I tried it, you have to add
administrator access plus taskbar pin doesn't work on a bat shortcut.
make a Scheduled Task only run on demand and set highest privileges.
then run SCHTASKS /RUN /TN "TASK NAME" by icon
It's harder than you might think as when I tried it, you have to add
administrator access plus taskbar pin doesn't work on a bat shortcut.
make a Scheduled Task only run on demand and set highest privileges.
then run SCHTASKS /RUN /TN "TASK NAME" by icon
All the hacks I know of, are either broken, or plugged.
So that may be about all that's left :-/
psexec64.exe does not work any more ("cannot install service").
On 22 Dec 2023 20:08:45 GMT, Frank Slootweg wrote:
net stop spooler
Amazing! That Google didn't know that!? [1]
It's harder than you might think as when I tried it, you have to add administrator access plus taskbar pin doesn't work on a bat shortcut.
On 22 Dec 2023 20:08:45 GMT, Frank Slootweg wrote:
Andy Burns <usenet@andyburns.uk> wrote:
Wolf Greenblatt wrote:
I do it manually but is there a command that can be put in a file attached
to a shortcut so that I can start and stop the print spooler on demand?
net stop spooler
Amazing! That Google didn't know that!? [1]
guess what the opposite is?
No idea! Perhaps [2]!?
[1] <https://www.google.com/search?q=Windows+stop+spooler+from+command+line>
[2] <https://www.google.com/search?q=Windows+start+spooler+from+command+line>
This search would have served you better:
windows restart print spooler "command line"
I do it manually but is there a command that can be put in a file attached
to a shortcut so that I can start and stop the print spooler on demand?
spooler [Enter] <== the reason for this becomes evident later'spooler' is not recognized as an internal or external command,
sc query | findstr /i spoolerThe Print Spooler service was stopped successfully.
if not errorlevel 1 echo "Spooler is running. Kill it?"
net stop spooler
sc query | findstr /i spoolerThe Print Spooler service was started successfully.
if errorlevel 1 echo "Spooler is not running. Start it?"
net start spooler
vim C:\data\sys\batch\spooler.bat
Wolf Greenblatt <wolf@greenblatt.net> wrote:
I do it manually but is there a command that can be put in a file
attached to a shortcut so that I can start and stop the print spooler
on demand?
You mean the print service? You can use the sc.exe (services
controller) program to start/stop services. Run it in a command shell
with elevated privileges.
To list all services, run:
sc query > c:\temp\svc.txt
notepad c:\temp\svc.txt
The list is likely quite long, so trying to find one in stdout in the
console window provided the buffer is set large enough to accomodate all
the output. Instead pipe stdout to a file, and open in Notepad to find "print" or "spool". To start or stop the print spooler service:
sc start spooler
sc stop spooler
Do not use the errorlevel returned by sc to determine when a service has
been started (in Running state) or when stopped. It is an asynchronous command: the command issues the requests, but does /not/ pend its exit
until the service has been started or stopped. The service will
complete its start or stop independently of when sc.exe issues the
request. If you need the batch script to pend until a service actually
gets into Running or Stopped state, you will have to loop through
repeated "sc query spooler" commands parsing its output to find the
STATE line with its value. You'd probably use some form of the command
'for /f "tokens=...' command in the batch file to pipe the output of the 'sc.exe query spooler' command to parse its output into env vars to then
test for state of the service.
Because sc issue requests and does not pend until completed, don't
expect following commands in a batch file to function correctly under
the assumption when sc.exe exits that the service finally got to Running
or Stopped state. If following commands in the batch script rely on a
state change to a service, you must add a loop to test for the state of
the service, and exit the loop after so many maximum loop iterations (or
time lapse) or when the service's state changes to what the following commands would expect.
You can use a shortcut to directly run sc.exe instead of calling a batch
file to run it. So, you could have a shortcut that starts the print
spooler, and another shortcut to stop that service. Make sure to enable
the option in the shortcut to run with elevated privileges. Or, as you requested, you could have the shortcut run a .bat file with the
commands, but the shortcut will still need elevated privileges.
For info on how to use sc.exe, run "sc" or "sc /?". An MS article is
at:
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sc-query
sc.exe (as that filename, not as sc which is an alias to set-content)
can be called from a Powershell script. I never got into Powershell, so
I can't help you there, but I suspect parsing of sc's stdout might be
easier or more understandable in a PS script.
Also, by posting this to archived newsgroups, it also solves the original problem of searching for the problem set to find an exact solution for it.
<http://alt.comp.os.windows-10.narkive.com>
<http://groups.google.com/g/alt.msdos.batch>
<http://groups.google.com/g/alt.comp.microsoft.windows>
On 12/23/2023 5:03 PM, Wally J wrote:
Also, by posting this to archived newsgroups, it also solves the original
problem of searching for the problem set to find an exact solution for it. >> <http://alt.comp.os.windows-10.narkive.com>
<http://groups.google.com/g/alt.msdos.batch>
<http://groups.google.com/g/alt.comp.microsoft.windows>
Could someone tell me how this site
http://alt.comp.os.windows-10.narkive.com
is useful to anyone?
For any thread I select, there is a
"HTTP 410: Page removed
The requested page could not be found" error.
On 12/24/2023 4:24 AM, AllanH wrote:
On 12/23/2023 5:03 PM, Wally J wrote:
Also, by posting this to archived newsgroups, it also solves the original >>> problem of searching for the problem set to find an exact solution for it. >>> <http://alt.comp.os.windows-10.narkive.com>
<http://groups.google.com/g/alt.msdos.batch>
<http://groups.google.com/g/alt.comp.microsoft.windows>
Could someone tell me how this site
http://alt.comp.os.windows-10.narkive.com
is useful to anyone?
For any thread I select, there is a
"HTTP 410: Page removed
The requested page could not be found" error.
It's got a bad certificate. When it switches to https on you.
https://www.ssllabs.com/ssltest/analyze.html?d=alt.comp.os.windows-10.narkive.com
"What does this mean?
We were able to retrieve a certificate for this site, but the domain names
listed in it do not match the domain name you requested us to inspect. It's possible that:
The web site does not use SSL, but shares an IP address with some other site that does.
The web site no longer exists, yet the domain name still points to the old IP address,
where some other site is now hosted.
The web site uses a content delivery network (CDN) that does not support SSL.
The domain name is an alias for a web site whose main name is different,
but the alias was not included in the certificate by mistake.
"
The best way to read the site, would be a Ouija board.
This is the About page for the site.
https://narkive.com/about
Paul
On 12/24/2023 5:17 AM, Paul wrote:
On 12/24/2023 4:24 AM, AllanH wrote:
On 12/23/2023 5:03 PM, Wally J wrote:
Also, by posting this to archived newsgroups, it also solves the original >>>> problem of searching for the problem set to find an exact solution for it. >>>> <http://alt.comp.os.windows-10.narkive.com>
<http://groups.google.com/g/alt.msdos.batch>
<http://groups.google.com/g/alt.comp.microsoft.windows>
Could someone tell me how this site
http://alt.comp.os.windows-10.narkive.com
is useful to anyone?
For any thread I select, there is a
"HTTP 410: Page removed
The requested page could not be found" error.
It's got a bad certificate. When it switches to https on you.
https://www.ssllabs.com/ssltest/analyze.html?d=alt.comp.os.windows-10.narkive.com
"What does this mean?
We were able to retrieve a certificate for this site, but the domain names
listed in it do not match the domain name you requested us to inspect. It's possible that:
The web site does not use SSL, but shares an IP address with some other site that does.
The web site no longer exists, yet the domain name still points to the old IP address,
where some other site is now hosted.
The web site uses a content delivery network (CDN) that does not support SSL.
The domain name is an alias for a web site whose main name is different,
but the alias was not included in the certificate by mistake.
"
The best way to read the site, would be a Ouija board.
This is the About page for the site.
https://narkive.com/about
Paul
Even after accepting the duff cert, the pages still don't render.
I'm seeing what you are seeing now.
However, some groups do work, after a fashion.
[Picture]
https://i.postimg.cc/DyH3C580/narkive-works-sometimes.gif
It will pop up a captcha, without too much effort.
Paul
Even after accepting the duff cert, the pages still don't render.
I'm seeing what you are seeing now.
However, some groups do work, after a fashion.
Thanks for checking into the problem for me.
In summary, there is tremendous value in a permanent web-search archive
that goes back to the birth of Usenet where we can first and foremost,
search before posting - but more importantly sometimes is we can find
and reference articles for use by anyone on the planet (yes, even your
own mother) where people who know nothing about Usenet can read Usenet articles without subscribing to a service and installing any software.
The problem is all the archives for_this_ Windows newsgroup... suck.
The problem is all the archives for_this_ Windows newsgroup... suck.
1+
spooler [Enter]
spooler [Enter]
While a few in this thread told the OP to "go search you idiot", I suspect not a single one of those who said that has ever done the required task because it demanded use of a half dozen specific Windows tricks to work.
On Sat, 30 Dec 2023 16:18:04 -0400, Wally J wrote:
[big snip]
For those who just want to do what the subject line says, I
respectfully suggest Wally's research is overkill. Doesn't mean I
think it's bad in itself, just that it puts a burden on the person
whose needs are simple. Sometimes when I'm posting a long article I
start off with a TL;DR section before going on to the long version.
I'm pretty sure I posted earlier in this thread. A simple google
search for "restart print spooler windows" (without the quotes)
reveals the answer.
1. Open an administrative(*) command prompt.
2. Type "net stop spooler" (without quotes), hit the Enter key, and
wait a few seconds for the command to report it has finished.
3. Type "net start spooler" (without quotes), hit the Enter key, and
wait a few seconds for the command to report it has finished.
(*) The first hit was from Dell, relating to Windows 7, and it didn't
mention an _administrative_ command prompt. Maybe Windows 7 could
execute those two commands in a non-elevated prompt; I don't know.
But Windows 10 needs an admin command prompt, as I quickly found by experimentation, so I'll bet dollars to donuts Windows 11 does also.
But Windows 10 needs an admin command prompt, as I quickly found by experimentation, so I'll bet dollars to donuts Windows 11 does also.
In which case, if you decide to respond to the OP's question,
look up the google search links and give them to him.
This helps a lot when the poster has already been searching
on the wrong search terms.
Stan Brown <the_stan_brown@fastmail.fm> wrote
But Windows 10 needs an admin command prompt, as I quickly found by experimentation, so I'll bet dollars to donuts Windows 11 does also.
With all due respects, Stan, it's worse than you seem to be aware of.
Please don't respond until you actually try it WITHOUT reading my tutorial!
*You _will_ fail*
On Sat, 30 Dec 2023 19:42:57 -0800, T wrote:
In which case, if you decide to respond to the OP's question,
look up the google search links and give them to him.
This helps a lot when the poster has already been searching
on the wrong search terms.
I listed the Google search in my second paragraph.
it worked fine for me.
I listed the Google search in my second paragraph.
I think 'T' means the URLs found by the search. Note he says "links" (plural), but a search URL is a single one.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 457 |
Nodes: | 16 (2 / 14) |
Uptime: | 116:24:30 |
Calls: | 9,325 |
Calls today: | 5 |
Files: | 13,534 |
Messages: | 6,080,827 |