To run powershell script on local system.

Welcome Forums General PowerShell Q&A To run powershell script on local system.

This topic contains 6 replies, has 5 voices, and was last updated by

 
Participant
1 year ago.

  • Author
    Posts
  • #83458

    Participant
    Points: 0
    Rank: Member

    hello. Need help !! I used to run powershell scripts on Virtual machine. but now i want to run it on my local system(windows 8).can anyone help me knowing the processes, i should follow to integrate powershell with local system..

  • #83462

    Participant
    Points: 22
    Rank: Member

    Hello.
    Why can't you do this?

  • #83465

    Keymaster
    Points: 12
    Team Member
    Rank: Member

    Can you give us the error you're receiving when attempting to run the script?

    • #83726

      Participant
      Points: 0
      Rank: Member

      Hi. Actually i am trying to connect the local machine with demo server(vm) through a powershell script. I am showing you the format .
      [$password = ConvertTo-SecureString "password to login into virtual machine" -AsPlainText -Force
      $cred= New-Object System.Management.Automation.PSCredential ("Username for virtual machine login", $password )
      Invoke-Command -ComputerName "virtual machine computer name" -ScriptBlock { "Powershell script which i want to run"} -credential $cred ]
      I am totally new to PS. Please help!!

    • #83768

      Participant
      Points: 56
      Rank: Member

      What error are you getting?

      Have you checked out "Secrets of PowerShell Remoting" ebook in https://powershell.org/ebooks/

  • #83486

    Participant
    Points: 0
    Rank: Member
  • #83534

    Participant
    Points: 56
    Rank: Member

    in Windows 8 click on start and type PowerShell – then go from there.

The topic ‘To run powershell script on local system.’ is closed to new replies.