Questions tagged [remote-management]
25 questions
17
votes
3 answers
How to access WinRM in C#
I'd like to create a small application that can collect system information (Win32_blablabla) using WinRM as opposed to WMI. How can i do that from C#?
The main goal is to use WS-Man (WinRm) as opposed to DCOM (WMI).

Mark
- 5,223
- 11
- 51
- 81
5
votes
1 answer
Connect to remote server using winrm without adding the server to TrustedHosts
I have been struggling to deal with winrm and TrustedHosts but to no avail. After some experimenting I found out the this field of winrm/config/client is limited up to 1023 symbols which is way not enough especially if adding hosts by their ipv6.
I…

Ivaylo Strandjev
- 69,226
- 18
- 123
- 176
3
votes
0 answers
How can I upgrade the Android OS programmatically on a device with root access?
Someone posted a similar question here, but it didn't get a response that's relevant to me. I'm working with a kiosk-like device that runs Android, and I'd like the ability to upgrade the OS remotely. I know Google and mobile carriers manage to do…

Lappiton
- 31
- 1
2
votes
1 answer
Programatically enable Screen Sharing and Remote Login on macOS Big Sur?
I'm looking for a way to programatically enable Screen Sharing and Remote Login on macOS to help with automated provisioning of new machines.
I'm running the following code in a .sh script on the new machine:
# Enable screensharing for remote…

monterey
- 21
- 1
- 3
2
votes
1 answer
Azure Powershell Runbook - Invoke commands on remote VM (ARM a.k.a. V2)
What I need
I want to have an automation runbook that executes commands on a remote VM (the VM is a V2 or "Resource Manager" VM).
I found examples to make that work with Classic VMs but I can't make it work for RM VMs (best I found:…

Nicolas
- 403
- 1
- 6
- 18
2
votes
1 answer
Adding targets in Apache ACE
I'm trying to use Apache ACE web UI to remotely manage OSGi bundles on Raspberry PI devices. I followed the documentations here but I can't find out how to actually add a target (RPi) to the server (which is my PC).
To be clearer, I downloaded the…

hatef
- 5,491
- 30
- 43
- 46
2
votes
1 answer
Unable to use PowerShell Enter-PSSession to connect to remote server
I am having problems connecting to a remote server using PowerShell where the remote machine uses a non-default port number. The setup is as follows: I have a virtual host server with several virtual machines. All of these virtual machines have…

TimCross
- 91
- 3
- 3
- 7
2
votes
2 answers
Check to see if computer is on
I have written a simple php page that sends wake-on-lan packets too a couple of my computers which are all running Windows 7.
How can I check if the computers are powered on (assuming the internet works at the location)?
Can I some how ping the…

Nick
- 9,285
- 33
- 104
- 147
2
votes
2 answers
code to auto detect machines
i need to write a program that auto detects windows and unix machines in C# on a network then copy a folder from a windows shared directory to the remote machine and gather how many processors are on the machine. I don't know of any C# functions…
user1158903
1
vote
0 answers
Powershell Script Variables
I have the following code, it's a simple script to add a new computer to our domain. It works when executed locally using Read-Host for credentials and Organizational unit name
$domainName = "mydomain.live"
# Manually provide the username and…

Filip Godin
- 11
- 3
1
vote
1 answer
Comparing a String Variable via PowerShell
I'm trying to create an if and else statement within PowerShell that exits my code if the $value variable has a 0 or 1.
The below is my code which is executed remotely:
$MsgBox = {
Add-Type -AssemblyName PresentationFramework
$ButtonType =…

tsilversmith
- 13
- 4
1
vote
1 answer
Unable to establish an HTTP or HTTPS remoting session
I am enabling windows node for ansible. For this I am enabling http and https remote session in windows 7 using below command.
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object…

sri
- 131
- 1
- 3
- 10
1
vote
2 answers
The RPC server is unavailable. when calling ManagementScope.Connect
I need to create a service remotely and would rather not break out to a command and run "sc \remotemachine create ......" and want to do it within the C# code.
However, when running the code even though the sc command works quite happily and thus is…

Alan Mullett
- 1,106
- 13
- 26
1
vote
1 answer
JMX scalabilty: can it be used to manage 400+ instances?
I'm evaluating solutions for managing 400+ instances of a kiosk-like application. Each instance runs a custom Java application that displays information and interacts with users. We are pondering if we should develop a custom solution, try to…

Luis Soeiro
- 4,262
- 6
- 35
- 45
1
vote
1 answer
how to programmatically enable remote management under sharing in Mac OS X 10.8
I am working on a project which requires VNC Server to be run on my system (Mac OS X v10.8).
VNS server is installed in my Mac system, now I need to run VNC server, but for running the server sufficient privileges needs to be provided…

varun
- 25
- 7