If you just want to access information on the remote machine you may be able
to use WMI from your local machine
--
Richard Siddaway
All scripts are supplied "as is" and with no warranty
PowerShell MVP
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk
Once you have PowerShell installed, there are plenty of examples on
www.codeproject.com and other places for hosting a PowerShell runspace in
your app to execute some code. In v2 its even easier with just a single
PowerShell object needed.
Now for the unofficial answer.... :)
I've successfully "sorta xcopy" deployed PowerShell which seems to only
require a pretty small registry key, but it must exist in HKLM which makes
it impossible to deploy on a per-user basis. A custom client, with
appropriate permissions on the workstation, would be able to inject this
HKLM key, launch a custom PowerShell host in-process, then remove the key
when it exits. But this is of course totally unsupported and probably
illegal.
-------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1]
"Install"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\1033]
"Install"="2"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine]
"ApplicationBase"="C:\\PowerShell\\Bin\\v1.0\\"
"ConsoleHostAssemblyName"="Microsoft.PowerShell.ConsoleHost,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
ProcessorArchitecture=msil"
"PowerShellVersion"="2.0"
"RuntimeVersion"="v2.0.50727"
"CTPVersion"="6"
"PSCompatibleVersion"="1.0,2.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PSConfigurationProviders]
@=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PSConfigurationProviders\Microsoft.PowerShell]
@=""
"ApplicationBase"="C:\\PowerShell\\Bin\\v1.0\\"
"AssemblyName"="System.Management.Automation, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35,
ProcessorArchitecture=msil"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell]
"ExecutionPolicy"="RemoteSigned"
"Path"="C:\\PowerShell\\Bin\\v1.0\\powershell.exe"
"Ldaled" <Leopold DuP...@discussions.microsoft.com> wrote in message
news:C2F4307F-A45B-43DF...@microsoft.com...