Results 1 to 14 of 14
  1. #1
    3 Star Lounger
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    221
    Thanks
    80
    Thanked 3 Times in 2 Posts

    disable osppsvc.exe

    Firstly, thanks to all who have helped me with my project, VBA codes, formula etc etc.
    My project is running great, still on test, but getting results.


    I'm still on XP Pro, Office 2010, ( till MS's Win 10 is sorted )

    In the mean time, I have a few niggling resource hungry back ground processes slowing things down, in particular, osppsvc.exe

    I have tried changing the value in registry from the default 300, right down to 5 on test, but nothing seems to disable this process.

    The information came from a Microsoft post from another's similar question.

    Is there a VBA code I can implement, so it, (osppsvc.exe), just goes away ?

    Thanks.

    Information from a MS Reply say's,
    ( but it did not work - it did not time-out @ 5 second setting in ValueType: DWORD as suggested)
    From Microsoft:
    "The Office Software Protection Platform service is generally started on demand when a user has started Office, however, there are license types which can start the service otherwise (such as those using a Key Management Server). As for stopping the service, there are several reasons we do not automatically shut down the service by default. These reasons are based on Office's cross OS version compatibility, communications from our users about their Office usage profile, preferences, resource usage profile, and differing ways in utilizing the service between Office and Windows.
    That said, while we do not default our service to timing out after inactivity, if this is something your organization values, you have the ability to control this. You may set the following registry key:
    Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OfficeSoftwa reProtectionPlatform
    ValueName: InactivityShutdownDelay
    ValueType: DWORD
    ValueData: The number in seconds, that the Office Software Protection Platform will stay running for, after the most recent activity. The windows default for this is 300 seconds.
    After setting this key, simply restart the Office Software Protection Platform Service to use the new settings."

  2. #2
    Gold Lounger Maudibe's Avatar
    Join Date
    Aug 2010
    Location
    Pa, USA
    Posts
    2,638
    Thanks
    115
    Thanked 650 Times in 592 Posts
    Try reNaming osppsvc.exe to osppsvcold.exe and see if that resolves your problem.

  3. The Following User Says Thank You to Maudibe For This Useful Post:

    XPDiHard (2015-04-19)

  4. #3
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,191
    Thanks
    48
    Thanked 985 Times in 915 Posts
    OSPPSVC seems to work overtime when you have multiple licences. http://blogs.technet.com/b/emeaoffic...al-server.aspx
    What version(s) of Office do you have installed?

    You could create a scheduled job every 15 mins that stops the service. SC stop osppsvc.exe
    Note: It won't be called osppsvc.exe.

    cheers, Paul

  5. The Following User Says Thank You to Paul T For This Useful Post:

    XPDiHard (2015-04-19)

  6. #4
    3 Star Lounger
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    221
    Thanks
    80
    Thanked 3 Times in 2 Posts
    What version(s) of Office do you have installed?
    Office Home and Student 2010
    Version: 14.0.6129.5000 ( 32-bit)

    Installed on 1 laptop, not networked.
    Last edited by XPDiHard; 2015-04-19 at 03:15.

  7. #5
    3 Star Lounger
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    221
    Thanks
    80
    Thanked 3 Times in 2 Posts
    Paul T
    You could create a scheduled job every 15 mins that stops the service. SC stop osppsvc.exe
    Note: It won't be called osppsvc.exe.
    How ?


    Thanks

  8. #6
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,191
    Thanks
    48
    Thanked 985 Times in 915 Posts
    Find the service name from SC.
    Open a Command Prompt and type: sc query
    Scroll through the list to find osppsvc and copy the "SERVICE_NAME"
    Type this as a test: sc query xxx
    Where xxx is the SERVICE_NAME
    Assuming you get a response you can try stopping the service.
    Type: sc stop xxx

    Create a Scheduled Task
    Start > Run, taskschd.msc
    Click "Create basic task" in the right pane.
    Give it a name and set the trigger as required.
    Action is start a program.
    In "program/script" type: %comspec%
    In "arguments" type: /c sc stop xxx
    Where xxx is the SERVICE_NAME.

    cheers, Paul

  9. #7
    jwoods
    Guest
    Quote Originally Posted by Paul T View Post

    Create a Scheduled Task
    Start > Run, taskschd.msc
    Click "Create basic task" in the right pane.
    Give it a name and set the trigger as required.
    Action is start a program.
    In "program/script" type: %comspec%
    In "arguments" type: /c sc stop xxx
    Where xxx is the SERVICE_NAME.
    That won't work on Windows XP...

    Post #1 "I'm still on XP Pro, Office 2010, ( till MS's Win 10 is sorted )"
    Last edited by jwoods; 2015-04-20 at 03:07.

  10. #8
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,191
    Thanks
    48
    Thanked 985 Times in 915 Posts
    Which bit doesn't work? XP has a scheduler and SC.

    cheers, Paul

  11. #9
    jwoods
    Guest
    Quote Originally Posted by Paul T View Post
    Which bit doesn't work? XP has a scheduler and SC.

    cheers, Paul
    The steps to create the scheduled task are wrong.

    There is no taskschd.msc, and there are no triggers or actions in XP...

    Create Scheduled Task XP.jpg

  12. #10
    3 Star Lounger
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    221
    Thanks
    80
    Thanked 3 Times in 2 Posts
    Paul, thanks for the reply
    it has to be code so it can be "controlled" by VBA

    jwoods, thanks.

    a scheduled task as suggested will not do, it has to be within the VBA.

    This code I found in a .BAT file seems to work
    Author: don't know.
    Code:
    @echo off
       "C:\Program Files\Microsoft Office\Office10\excel.exe"
       net stop osppsvc

    Is there a VBA code instead that will do the same ?

    Thanks
    Attached Files Attached Files

  13. #11
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts
    Try:
    Code:
    shell "cmd /c net stop osppsvc"
    Regards,
    Rory

    Microsoft MVP - Excel

  14. #12
    3 Star Lounger
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    221
    Thanks
    80
    Thanked 3 Times in 2 Posts
    rory
    Try:
    Code:
    shell "cmd /c net stop osppsvc"
    No, It was still "on" when activating the code while checking task manager.

    Thanks

  15. #13
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts
    That's odd because it works for me (albeit on Win7) and it's the code equivalent of typing what you posted at a command prompt, so if that works, so should the code.
    Regards,
    Rory

    Microsoft MVP - Excel

  16. #14
    3 Star Lounger
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    221
    Thanks
    80
    Thanked 3 Times in 2 Posts
    Rory, I got it from here after an extensive search. Depends what one types in a search engine.

    http://answers.microsoft.com/en-us/o...8-7e7f2d5f0f35

    The reply/comment I think is for XP, not sure how it would work on other OS's

    The following bat file works for MSWord:
    @echo off
    "C:\Program Files\Microsoft Office\Office14\winword.exe"
    net stop osppsvc
    For Excel & Powerpoint just substitute excel.exe & powerpnt.exe respectively for winword.exe
    Note1: There is not need to start the osppsvc service as the MSOffice application will do that.
    Note2: The second line in the bat file should be enclosed in exclamation marks otherwise it will not work.
    To create a desktop shortcut simply right click on the bat file name in Windows Explorer and select Send To >Desktop
    I simply replaced
    Code:
    Office14\winword.exe
    with
    Code:
    Office10\excel.exe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •