How can I edit a remote script using the ISE?

Welcome Forums General PowerShell Q&A How can I edit a remote script using the ISE?

This topic contains 1 reply, has 2 voices, and was last updated by

 
Moderator
4 years, 3 months ago.

  • Author
    Posts
  • #18663

    Participant
    Points: 21
    Rank: Member

    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?

  • #18664

    Moderator
    Points: 24
    Team Member
    Rank: Member

    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\...

    2. 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

The topic ‘How can I edit a remote script using the ISE?’ is closed to new replies.