How can I edit a remote script using the ISE?

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Daniel Krebs Daniel Krebs 2 years, 2 months ago.

  • Author
    Posts
  • #18663
    Profile photo of Marco Janse
    Marco Janse
    Participant

    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
    Profile photo of Daniel Krebs
    Daniel Krebs
    Participant

    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

You must be logged in to reply to this topic.