Automation

 View Only
  • 1.  help with Changing IP on VMguest - unable to login

    Posted Aug 22, 2022 02:15 PM

    Any ida how to change the IP, DG, on a VMguest, with invoke-vmguest ?

     

    the IP got changed and now unable to login and need to change it back



  • 2.  RE: help with Changing IP on VMguest - unable to login

    Posted Aug 22, 2022 02:29 PM

    Just a quick thought: What about the port group to which the VM is connected? If you are going to place the VMs into another subnet, you may also need to "plug" the VM into the appropriate portgroup (VLAN).

    André



  • 3.  RE: help with Changing IP on VMguest - unable to login

    Posted Aug 22, 2022 02:37 PM

    no I got the vmguest IP wrong and need to chag it



  • 4.  RE: help with Changing IP on VMguest - unable to login

    Posted Aug 22, 2022 03:45 PM

    Invoke-VMGuest?
    Do you mean Invoke-VMScript?

    What Guest OS is running in that VM?



  • 5.  RE: help with Changing IP on VMguest - unable to login

    Posted Aug 22, 2022 03:51 PM

    sorry yes invoke-vmscript

     

    windows 2019



  • 6.  RE: help with Changing IP on VMguest - unable to login

    Posted Aug 22, 2022 04:08 PM

    You said "unable to login", is that with a domain account?
    You will need an account (domain or local) to use with Invoke-VMScript.

    An alternative might be to reboot the Guest OS in Safe Mode.
    But that would be a manual procedure



  • 7.  RE: help with Changing IP on VMguest - unable to login

    Posted Aug 22, 2022 04:22 PM

    i have local creds but I cant sign into the console 

     

    but I tested the local creds and see to take invoke-vmscript commands



  • 8.  RE: help with Changing IP on VMguest - unable to login
    Best Answer

    Posted Aug 22, 2022 05:20 PM

    You could try something like this.
    It assumes there is only 1 network connection defined inside the Guest OS, and that the connection is named 'Local Area Connection'

     



  • 9.  RE: help with Changing IP on VMguest - unable to login

    Posted Aug 22, 2022 05:37 PM

    Thanks Luc