I see WinRM is installed as service on Windows 2003 and service is set to running. I executed “winrm quickconfig” on servers and tried to connect to it from my host which runs PS3.0 but it fails. I can see request being made to /wsman to server and it fails with HTTP 404. Is it supposed to work somehow and I’m missing some steps?
what exactly are you trying to achieve thru the winrm connectivity. If you want to run remote powershell you will need poweshell installed. You can’t use the powershell 3 cim cmdlets as they require wsman 3 which isn’t available for win 2003. you might be able to run the wsman cmdlets against the remote box but I haven’t tried that config have doubts it would work.
you need ps 2on that remote machine
PowerShell has a number of options for using winrm:
enter a session on the remote computer. Telnet like but need PowerShell at the remote end
send one or commands to the remote machine - again need Powershell installed on the remote machine
perform some functions direct to WMI using the WSMAN set of cmdlets
perform some function via WMI using the PowersShell v3 CIM cmdlets
perform some configuration of winrm/wsman on the remote machine
In all cases winrm is the transport mechanism between the remote machines. Winrm is Microsoft’s implementation of the WSMAN protocol. It doesn’t bring any admin functionality to the table by itself. You need PowerShell or another tool to work with it.
What options do you have when WinRM is installed on remote machine but nothing else (like Windows 2003 in my case)? What tools you can use remotely on such a box where box itself do not have anything except WinRM running. If Powershell can utilize WMI via WSMAN set of CmdLets, would not that be possible to use?
I’m in corporate environment and changes to box (like installing powershell which will require .NET framework install is very bureacracy heavy and manually intensive). So I’m trying to figure out if I can do any remote administration/automation of the box without RDPing into it.
For example can I launch executable remotely, can I get available drive space informaiton, latest event log entries etc. I know I can do it over WMI but I want to do this interactively remotely via powershell.
In this case I think your best option is to use the remote options of individual cmdlets. Anything that has a -Computername parameter should be able to contact the remote box (the CIM cmdlets are a special case in that you will need to create a CIM session using DCOM so you are probably better off using the WMI cmdlets for simplicity).
You can find the cmdlets like this
get-help * -Parameter ComputerName
With these limitations I don’t think you have another option. You are effectively working interactively against the remote machine.
Most of what you specified can be done without PSRemoting, as Richard mentioned (either through Get-WmiObject / Invoke-WmiMethod, Get-WinEvent -ComputerName <blah>, etc). To launch executables remotely without installing PowerShell on the target system, your best bet is probably to use psexec (available here.) You won’t get back objects the way you would if you were using PowerShell Remoting, but you can at least get the job done.