Ghost Solution Suite

 View Only
  • 1.  GSS 3.1 - Variables - PowerShell

    Posted Jun 24, 2016 12:27 PM

    Searches of Google and Symantec forums are turning up nothing of value so I am hoping someone on here is aware of a way to pass a variable into a powershell script as a part of a GSS 3.1 task.  Ex.  Passing the name of the PC in the console into a powershell script to rename the PC.

    $compName = %SomeGSSVariable%

    Rename-Computer -NewName $compName -DomainCredential foo\someCred -force -restart



  • 2.  RE: GSS 3.1 - Variables - PowerShell

    Posted Jun 28, 2016 02:07 PM

    Nevermind, it was incorrect.



  • 3.  RE: GSS 3.1 - Variables - PowerShell

    Posted Jul 04, 2016 09:47 AM

    You can use something like 

    REM Rename Computer

    Powershell -Command "& {Rename-Computer -NewName %COMPNAME% -DomainCredential foo\someCred -force -restart}"

     

    in a normal CMD Task