Announcement

Collapse
No announcement yet.

running script... nothing happens

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • running script... nothing happens

    when running script nothing happens... Played with enabling execution policy. Tried to enable all ... lost. It is test box.

    PS C:\nano> Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process

    Execution Policy Change
    The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
    you to the security risks described in the about_Execution_Policies help topic at
    http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
    [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
    PS C:\nano> get-executionpolicy -list

    Scope ExecutionPolicy
    ----- ---------------
    MachinePolicy Undefined
    UserPolicy Undefined
    Process Bypass
    CurrentUser Undefined
    LocalMachine Bypass


    PS C:\nano> .\New-NanoServerimage.ps1 `
    >> -ServerISO 'c:\nano\10514.0.150808-1529.TH2_RELEASE_SERVER_OEMRET_X64FRE_EN-US.ISO' `
    >> -DestVHD c:\nano\NanoServer01.vhd `
    >> -ComputerName NANO-01 `
    >> -AdministratorPassword 'xxxxxxx1' `
    >> -Packages 'Storage','OEM-Drivers','Guest' `
    >> -IPAddress '192.168.2.65'
    >>
    It stays on >>

    What to do?
    Thanks.
    "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

  • #2
    Hit enter....
    Regards,
    Jeremy

    Network Consultant/Engineer
    Baltimore - Washington area and beyond
    www.gma-cpa.com

    Comment


    • #3
      I hit it and it didn't work...
      It was me.... I renamed a script... then I did everything from scratch and it worked. It was not Microsoft script in first place...
      Finally, it worked.
      "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

      Comment

      Working...
      X