Avatar of zman2013
zman2013 asked on


I am writing a batch script to disable Windows server 2012 services.  The server WSSERVICE, sc config wsservice start= disabled, command is generating an error, "Access is Denied"  

How to fix this?     Thanks.
Microsoft Legacy OSWindows Server 2012

Avatar of undefined
Last Comment
Frank McCourry

8/22/2022 - Mon
Frank McCourry

Start your command prompt with elevated permissions.  

Some services will not allow changes "On the Fly"

Thanks Frank.
Can this be automated with in the batch line?

still getting access denied when run as administrator.  Thanks.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Frank McCourry

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Thanks Frank for the directions.  The following reg add command worked.

reg add “hklm\system\currentcontrolset\services\wsservice” /v start /t reg_dword /d /4 /f
Frank McCourry

Glad I could help