Configuring network to allow server remotely stop programs


  1. Posts : 3
    Windows 7 Professional x64
       #1

    Configuring network to allow server remotely stop programs


    Hey,

    So I am building this program to remotely stop a program on a variety of Windows 7 machines connected to a Windows 2008 Server. I want to use WMI objects to do so. I'm tried to query the list of the running processes via
    Code:
    Get-WmiObject -Query
    on Powershell but am returned an Access Denied error. Maybe I have to make the remote machines treat the server as an administrator? Any idea how to set that up?

    Regards.
      My Computer


  2. Posts : 31,249
    Windows 11 Pro x64 [Latest Release and Release Preview]
       #2

    You may want to take a look at PsKill - Windows Sysinternals | Microsoft Docs from Microsoft's Sysinternals suite that can Kill remote processes.

    It should allow you to do what you need without too much additional work
      My Computers


  3. Posts : 3
    Windows 7 Professional x64
    Thread Starter
       #3

    Barman58 said:
    You may want to take a look at PsKill - Windows Sysinternals | Microsoft Docs from Microsoft's Sysinternals suite that can Kill remote processes.

    It should allow you to do what you need without too much additional work
    Thanks I shall take a look when I can.
      My Computer


  4. Posts : 3
    Windows 7 Professional x64
    Thread Starter
       #4

    Barman58 said:
    You may want to take a look at PsKill - Windows Sysinternals | Microsoft Docs from Microsoft's Sysinternals suite that can Kill remote processes.

    It should allow you to do what you need without too much additional work
    psKill throws an Access denied error. I have enabled remote registry service, and added the "localAccountTokenFilterPolicy" key in the registry of the remote as shown here.

    I have tried psList to list the running processes and that too doesn't seem to work.

    Gives the following error:
    Code:
    Make sure that the Remote Registry service is running on the remote system, that you have
    firewall ports allow RPC access, and your account has read access the following key on the remote system:
    HKLM\Software\Microsoft\Windows NT\CurrentVersion\Perflib
    Enabled remote registry, disabled firewall but don't think I can access the registry key.

    I tried

    Code:
    $computer1 = "\\COMP1"
    $Reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $computer1)
    $RegKey= $Reg.OpenSubKey("Software\\Microsoft\\Windows NT\\Current Version\\Perflib")
    but that throws a "Requested registry access is not allowed" error.

    Any ideas?

    UPDATE: finally got pslist to work
    Last edited by sptk2511; 03 Oct 2018 at 22:08.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:43.
Find Us