I guess the larger question is, without file sharing (i.e. no UNC
paths), BITS, ftp, how do I deploy files from Vista to a (non-domain)
W2K8r2 server? It seems weird that I can use MMC remotely to modify
the firewall, view the event log, start/stop services, etc but I can't
get a file from a to b. Hopefully I'm just being dense. Please point
me in the right direction.
Thanks
- Dave
Thanks Dennis, it's not really what I had in mind but I can see how it
could work. It would require the server to have a SSH Server
installed, something I thought I might be able to avoid by using the
PowerShell Remoting/WinRS environments. It's not really about being
able to connect to a SSH server, I really just want to get files
securely from my development environment into my web server without
having to write custom code and without having to install file
sharing, ftp or BITS. I've seen /n software's NetCmdlets mentioned but
that's a commercial product and that isn't a economic option for me.
Given I already have a secure remote PowerShell connection, I had kind
of assumed (hoped) that there would be a file transfer cmdlet that
allowed some form of secure file copy between the endpoints.
- Dave
WinRM from my investigation is strictly to _manage_ a remote machine. You
issue cmdets/scripts and these are ran on the specified machine with the
results being returned to you. You have the option to set the authentication
method used as well as map a different set of commands to each authenticated
user.
What this doesn't do is copy a local file to the remote machine or visa
versa using TCP/HTTP/HTTPS.
BITS does this which can be setup to be done securely. Again you can
determine the authentication schema. This correctly configured will be secure
as scp. I don't understand why you'd consider opening up a port for SSH but
not want BITS which uses the standard HTTP/HTTPS. You are exposing _less_ of
a surface area by using BITS
Powershell CTP3 does provide a module called FileTransfer which exposes BITS
to a Powershell user or script. While its pretty well documented I've not
seen a demo on this. Anyone care to demo this for us? That would be a great
topic given its not been discussed to the best of my knowledge.
Note while BITS is capabile of certificate based client/server
authentication. I don't see that this is available in the above module.
Lastly, Jeffery Snover has given a couple demo's showing the capabilites of
using IIS/WinRM/Powershell but these have all been at the end of his talk.
This in my opinion would be a great topic to demo in one of the live meetings
this DL has.
On Feb 20, 6:23 am, Bob Landau <BobLan...@discussions.microsoft.com>
wrote:
Learning anything seems dauting at first however by seperating independant
functionality you gain a lot at the expense of adding a little more in the
learning curve. Frankly the Powershell group has admitted that the
FileTransfer module may need tweaking after playing with it for a bit I
suggest you let them know.
At least one thing you gain is the ability very securely expose only the
required features to users. By seperating uploading files from the
powershells remote capabilites; we are able to not just add ACL's to
designate who is able to upload a file and execute it but totally eliminate
the capiblility (the code for uploading simply is not there) which is about
as secure as you can be.
To up/dowload a file port 80 is the default. You could set up th vdir to
listen on a different port.
Lastly no I'm not familiar with rsync or whether there is an equivalent in
the Windows world
"Dave Clarke" wrote:
> > using IIS/WinRM/Powershell but these have all been at the end of his talk..
On Feb 21, 5:15 am, Bob Landau <BobLan...@discussions.microsoft.com>
PS C:\> $so = New-WSManSessionOption -SkipCACheck
PS C:\> invoke-command -useSSL -SessionOption $so W2k8r2 {get-content -
encoding byte -ReadCount 0 "C:/Users/dave/Documents/makecert.exe"} |
set-content -encoding byte .\Documents\makecert.exe
The longer version is available here: <http://
stillpearling.blogspot.com/2009/02/more-powershell-remoting.html>
- Dave