Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Configuring network to allow server remotely stop programs

3 Weeks Ago   #1
sptk2511

Windows 7 Professional x64
 
 
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 System SpecsSystem Spec
.
3 Weeks Ago   #2
Barman58

Windows 10 Pro x64 x3, Ubuntu
 
 

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 System SpecsSystem Spec
3 Weeks Ago   #3
sptk2511

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by Barman58 View Post
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 System SpecsSystem Spec
.

2 Weeks Ago   #4
sptk2511

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by Barman58 View Post
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
My System SpecsSystem Spec
Reply

 Configuring network to allow server remotely stop programs




Thread Tools




Similar help and support threads
Thread Forum
Configuring HDD and SSD after programs have been installed
Here's what I have: Custom Build 1 TB HDD 250 GB SSD My intention was to install the OS on the SSD (which I did) and manually install all of my future downloads, programs, etc. onto my HDD. However, some programs don't let me manually install each component. Quite often, most of the program...
Installation & Setup
Configuring Win7 Pro as Remotely Controlled Download PC
Hello Win7 Gurus and experianced users i am new to windows 7 after finally making the jump from XP. i need to know where all the settings are that might shutdown/power off my PC. Already i have found and changed: settings that power down my wireless network usb and harddrive - off...
Network & Sharing
Safest way to VPN to network? Configuring Server 2008 as Gateway...?
I am doing an overhaul of my home network, in particular related to safe external connections and safe sharing. There is no conn issues or alike, I am only looking for an opinion regarding how to connect to my home network from an external computer, and tips regarding safe configuration. As...
Network & Sharing
New flaw can crash Windows 7, Server 2008 R2 remotely
Microsoft has confirmed reports of a new vulnerability that affects both Windows 7 and Windows Server 2008 R2. Full Story: New SMB flaw can crash Windows 7 and Server 2008 R2 remotely - Ars Technica
News


Our Sites

Site Links

About Us

Find 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 15:55.
Twitter Facebook Google+