How can I edit a remote script using the ISE?

Probably a very simple answer to this question, but I can’t seem to figure this out.

How can I edit a script that’s stored on a remote machine using the ISE on my local workstation?

Hi Marco,

  1. The old way.

Open the remote script via the admin shares of the remote machine or any other custom share

\remote\c$
\remote\d$
\remote\admin$
\remote\data
\remote.…

  1. New since Windows Management Framework (PowerShell) v5 September Preview - http://blogs.msdn.com/b/powershell/archive/2014/09/04/windows-management-framework-5-0-preview-september-2014-is-now-available.aspx

a) Open PowerShell ISE on your local machine
b) Select Remote PowerShell Tab from the File menu
c) Enter the remote machine name and connect
d) Using the Remote console within your ISE execute the PSEdit function:

PSEdit C:\Windows\system.ini

I hope that answers your question.

Best,
Daniel