Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

I am NOT a kludge! I am a computer! -- tts


computers / alt.comp.os.windows-10 / Re: Command in batch to start & stop the print spooler

SubjectAuthor
* Command in batch to start & stop the print spoolerWolf Greenblatt
+* Command in batch to start & stop the print spoolerAndy Burns
|`* Command in batch to start & stop the print spoolerFrank Slootweg
| +* Command in batch to start & stop the print spoolerStan Brown
| |+* Command in batch to start & stop the print spoolerWolf Greenblatt
| ||`- Command in batch to start & stop the print spoolerVanguardLH
| |`- Command in batch to start & stop the print spoolerFrank Slootweg
| `* Command in batch to start & stop the print spoolerWolf Greenblatt
|  +* Command in batch to start & stop the print spoolerZaidy036
|  |+* Command in batch to start & stop the print spoolerPaul
|  ||`- Command in batch to start & stop the print spoolerAndrew
|  |`- Command in batch to start & stop the print spoolerdavid
|  `- Command in batch to start & stop the print spoolerFrank Slootweg
+* Command in batch to start & stop the print spoolerVanguardLH
|`- Re: Command in batch to start & stop the print spoolerT
`* Command in batch to start & stop the print spoolerWally J
 +- Command in batch to start & stop the print spoolerWally J
 +* Command in batch to start & stop the print spoolerPaul
 |`* Command in batch to start & stop the print spoolerAllanH
 | `* Command in batch to start & stop the print spoolerWally J
 |  `* Command in batch to start & stop the print spoolerT
 |   `* Command in batch to start & stop the print spoolerWally J
 |    +- Command in batch to start & stop the print spoolerT
 |    `* Command in batch to start & stop the print spoolerStan Brown
 |     +* Command in batch to start & stop the print spoolerT
 |     |`* Command in batch to start & stop the print spoolerStan Brown
 |     | `- Command in batch to start & stop the print spoolerWolf Greenblatt
 |     `* Command in batch to start & stop the print spoolerWally J
 |      `* Command in batch to start & stop the print spoolerStan Brown
 |       `- Command in batch to start & stop the print spoolerWolf Greenblatt
 `* Re: Command in batch to start & stop the print spoolerAllanH
  `- Re: Command in batch to start & stop the print spoolerPaul

Pages:12
Re: Command in batch to start & stop the print spooler

<MPG.3ffcc640e14b9cbb990271@news.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=77328&group=alt.comp.os.windows-10#77328

  copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: the_stan_brown@fastmail.fm (Stan Brown)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch
Subject: Re: Command in batch to start & stop the print spooler
Date: Mon, 1 Jan 2024 12:53:57 -0800
Organization: Oak Road Systems
Lines: 11
Message-ID: <MPG.3ffcc640e14b9cbb990271@news.individual.net>
References: <um4j5t$1vls9$1@news.samoylyk.net> <um7p08$28fhl$1@dont-email.me> <um8tbs$9dpl$1@solani.org> <um90gb$2hd4h$1@dont-email.me> <um93le$2ht15$1@dont-email.me> <um94kf$b50v$1@solani.org> <uma0ca$2manh$1@dont-email.me> <umag2r$2ofep$1@dont-email.me> <umptts$1d0ec$1@dont-email.me> <MPG.3ffa5c184c40b2399026f@news.individual.net> <umqo01$1k84k$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 7x4eHnGPH+g8ktEqE8OA+QGOrBTSxS2ZYkk7hpItNSjtEvlFOP
Cancel-Lock: sha1:K28FrrY0cQrysRo2sr2kI82wq1A= sha256:X49bSl3eE++dDoRM5JehcuUqg20VwUkzhh/z0Njp58Y=
User-Agent: MicroPlanet-Gravity/3.0.11 (GRC)
 by: Stan Brown - Mon, 1 Jan 2024 20:53 UTC

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.

--
Stan Brown, Tehachapi, California, USA https://BrownMath.com/
Shikata ga nai...

Re: Command in batch to start & stop the print spooler

<MPG.3ffcc695db866069990272@news.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=77329&group=alt.comp.os.windows-10#77329

  copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: the_stan_brown@fastmail.fm (Stan Brown)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch
Subject: Re: Command in batch to start & stop the print spooler
Date: Mon, 1 Jan 2024 12:55:18 -0800
Organization: Oak Road Systems
Lines: 16
Message-ID: <MPG.3ffcc695db866069990272@news.individual.net>
References: <um4j5t$1vls9$1@news.samoylyk.net> <um7p08$28fhl$1@dont-email.me> <um8tbs$9dpl$1@solani.org> <um90gb$2hd4h$1@dont-email.me> <um93le$2ht15$1@dont-email.me> <um94kf$b50v$1@solani.org> <uma0ca$2manh$1@dont-email.me> <umag2r$2ofep$1@dont-email.me> <umptts$1d0ec$1@dont-email.me> <MPG.3ffa5c184c40b2399026f@news.individual.net> <umtrkm$23igu$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net A1ZyIQs5bPGWa1yhf7BsNAPQEPuCeWdIwbeBXWHEqaoCqmQ3lZ
Cancel-Lock: sha1:K2rKrVZWHTfHBksDfQkR7XCGpgQ= sha256:Q1gklO3RgvtD0rfDa8UPNX97wIAOCxrb9tlksAiF4KU=
User-Agent: MicroPlanet-Gravity/3.0.11 (GRC)
 by: Stan Brown - Mon, 1 Jan 2024 20:55 UTC

On Mon, 1 Jan 2024 04:03:35 -0400, Wally J wrote:
> 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*

[shrugs] I _did_ try it before posting, and it worked fine for me.

--
Stan Brown, Tehachapi, California, USA https://BrownMath.com/
Shikata ga nai...

Re: Command in batch to start & stop the print spooler

<un22f5$3tpa2$1@news.samoylyk.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=77360&group=alt.comp.os.windows-10#77360

  copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch
Path: i2pn2.org!i2pn.org!news.samoylyk.net!.POSTED.218.234.182.229!not-for-mail
From: wolf@greenblatt.net (Wolf Greenblatt)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch
Subject: Re: Command in batch to start & stop the print spooler
Date: Tue, 2 Jan 2024 17:24:38 -0500
Organization: Private News Server
Message-ID: <un22f5$3tpa2$1@news.samoylyk.net>
References: <um4j5t$1vls9$1@news.samoylyk.net> <um7p08$28fhl$1@dont-email.me> <um8tbs$9dpl$1@solani.org> <um90gb$2hd4h$1@dont-email.me> <um93le$2ht15$1@dont-email.me> <um94kf$b50v$1@solani.org> <uma0ca$2manh$1@dont-email.me> <umag2r$2ofep$1@dont-email.me> <umptts$1d0ec$1@dont-email.me> <MPG.3ffa5c184c40b2399026f@news.individual.net> <umtrkm$23igu$1@dont-email.me> <MPG.3ffcc695db866069990272@news.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 2 Jan 2024 22:24:38 -0000 (UTC)
Injection-Info: news.samoylyk.net; posting-host="218.234.182.229";
logging-data="4121922"; mail-complaints-to="abuse@samoylyk.net"
 by: Wolf Greenblatt - Tue, 2 Jan 2024 22:24 UTC

On Mon, 1 Jan 2024 12:55:18 -0800, Stan Brown wrote:
> it worked fine for me.

Thank you for all your help. Over the weekend I had time to comb through
all the suggestions and I implemented every suggestion that was made.

The task bar icon (and run command and Windows batch command and task bar
menu command) tests if the service is running which is helpful because I
don't have to know ahead of time whether it's running or not and then it
will either turn the service on (if it's not running) or off (if it is).

The task bar icon (and all the associated ways of running it) also does
nothing if it's already running and I want to turn it in (or vice versa).
There's no way a search would have found all that I ended up doing to
add the command in all the places that make it easy to run it later.

I don't think even fifty searches would have found everything in this
thread as I'd have to have known all the keywords (like app paths) first.

Only one poster pieced it all together but everyone helped and over the
weekend I had time off to run the tests and it's working wonderfully!

Thank you all for your help in making this work great. Happy New Year!

Re: Command in batch to start & stop the print spooler

<un22o7$3tpp8$1@news.samoylyk.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=77361&group=alt.comp.os.windows-10#77361

  copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch
Path: i2pn2.org!i2pn.org!news.samoylyk.net!.POSTED.218.234.182.229!not-for-mail
From: wolf@greenblatt.net (Wolf Greenblatt)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch
Subject: Re: Command in batch to start & stop the print spooler
Date: Tue, 2 Jan 2024 17:29:28 -0500
Organization: Private News Server
Message-ID: <un22o7$3tpp8$1@news.samoylyk.net>
References: <um4j5t$1vls9$1@news.samoylyk.net> <um7p08$28fhl$1@dont-email.me> <um8tbs$9dpl$1@solani.org> <um90gb$2hd4h$1@dont-email.me> <um93le$2ht15$1@dont-email.me> <um94kf$b50v$1@solani.org> <uma0ca$2manh$1@dont-email.me> <umag2r$2ofep$1@dont-email.me> <umptts$1d0ec$1@dont-email.me> <MPG.3ffa5c184c40b2399026f@news.individual.net> <umqo01$1k84k$2@dont-email.me> <MPG.3ffcc640e14b9cbb990271@news.individual.net> <un1fib.9sc.1@ID-201911.user.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 2 Jan 2024 22:29:28 -0000 (UTC)
Injection-Info: news.samoylyk.net; posting-host="218.234.182.229";
logging-data="4122408"; mail-complaints-to="abuse@samoylyk.net"
 by: Wolf Greenblatt - Tue, 2 Jan 2024 22:29 UTC

On 2 Jan 2024 16:02:12 GMT, Frank Slootweg wrote:

>> 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.

Thank you for your help. As I replied to Stan, I don't think even fifty
searches would have found everything in this thread as I'd have to have
known all the keywords (like app paths) first and I'd have to know that
pinning a shortcut to run as an admin is different than a regular shortcut
and the batch shortcuts are also different when pinned than non batch ones.

But it's all working now with a lot of easy ways to run it and it tests the
status before doing anything and all of that is done with a single click.

A wonderful bonus is this process should work for any Windows service,
which is where having the name being the command for each one is useful.

Happy New Year!

Re: Command in batch to start & stop the print spooler

<um8rsd$2gnjg$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=80460&group=alt.comp.os.windows-10#80460

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: T@invalid.invalid (T)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Command in batch to start & stop the print spooler
Date: Sun, 24 Dec 2023 00:58:53 -0800
Organization: A noiseless patient Spider
Lines: 70
Message-ID: <um8rsd$2gnjg$1@dont-email.me>
References: <um4j5t$1vls9$1@news.samoylyk.net> <z8g8nvl1reix.dlg@v.nguard.lh>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 08:58:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7a024c9c71cd49a538264382df8f4441";
logging-data="2645616"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YLtJgeJ/pNFpKMGYvXwLtVLxTs7EBgd8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:nhw5q8TUabH+cA97puz7zSbwIh4=
Content-Language: en-US
In-Reply-To: <z8g8nvl1reix.dlg@v.nguard.lh>
 by: T - Sun, 24 Dec 2023 08:58 UTC

On 12/22/23 12:12, VanguardLH wrote:
> 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.

Hi Vanguard,

I am marveling over your technical writing. Where you a teacher
at some point in your life?

-T

Re: Command in batch to start & stop the print spooler

<um8tbs$9dpl$1@solani.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=80461&group=alt.comp.os.windows-10#80461

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: nospam@unokix.invalid (AllanH)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Command in batch to start & stop the print spooler
Date: Sun, 24 Dec 2023 03:24:13 -0600
Message-ID: <um8tbs$9dpl$1@solani.org>
References: <um4j5t$1vls9$1@news.samoylyk.net> <um7p08$28fhl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 24 Dec 2023 09:24:12 -0000 (UTC)
Injection-Info: solani.org;
logging-data="309045"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:115.0) Gecko/20100101
Betterbird/115.6.0
Cancel-Lock: sha1:LZbZaHM/SDSzY/KrYc6ZkZZ77+0=
X-User-ID: eJwFwQcBgAAMAzBLe+1ADnv+JZDAqewMgoHDneVEom1lzKCPMsT47dSmb492Ga78RQxafhbpESI=
Content-Language: en-US
In-Reply-To: <um7p08$28fhl$1@dont-email.me>
 by: AllanH - Sun, 24 Dec 2023 09:24 UTC

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.

Re: Command in batch to start & stop the print spooler

<um90gb$2hd4h$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=80462&group=alt.comp.os.windows-10#80462

  copy link   Newsgroups: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.comp.os.windows-10
Subject: Re: Command in batch to start & stop the print spooler
Date: Sun, 24 Dec 2023 05:17:46 -0500
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <um90gb$2hd4h$1@dont-email.me>
References: <um4j5t$1vls9$1@news.samoylyk.net> <um7p08$28fhl$1@dont-email.me>
<um8tbs$9dpl$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Dec 2023 10:17:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0c1dd079c4780e8606a1d5c24953b9cc";
logging-data="2667665"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CcnH9SphX1G9vncW7zFyG/2hCCeisG5Y="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:8m9PTA/OTBztR8kGu8d3YYoNfis=
In-Reply-To: <um8tbs$9dpl$1@solani.org>
Content-Language: en-US
 by: Paul - Sun, 24 Dec 2023 10:17 UTC

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 " rel="nofollow" target="_blank">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


computers / alt.comp.os.windows-10 / Re: Command in batch to start & stop the print spooler

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor