Ghost Solution Suite

 View Only
  • 1.  Is there anyway to pass the GSS Client Name to a script for powershell?

    Posted Aug 18, 2021 01:02 PM
    Is there anyway to pass a GSS Client Name to a script that runs a powershell file? 
    Are there variables in the console that can be used in scripting?

    For example this is something i am trying to achieve.

    ".\file.ps1 computername"   (where computername would be the client name in the gss console that you are running the script on.)

    file.ps1 contents below..

    param ($PC_Name)
    $DomainNameA = 'domainA'
    $DomainNameB = 'domainB'
    $GroupName = 'my.group'
    $GetMemberObject = Get-ADComputer -Identity $PC_Name -server $DomainNameB
    $GetGroupObject = Get-ADGroup -Identity $GroupName -server $DomainNameA
    Add-ADGroupMember -identity $GetGroupObject -members $GetMemberObject -server $DomainNameA


  • 2.  RE: Is there anyway to pass the GSS Client Name to a script for powershell?

    Broadcom Employee
    Posted Aug 18, 2021 01:07 PM

    Hi RussellP!

    You mean about to use a tokens to get data from GSS database?

    https://knowledge.broadcom.com/external/article/179521/a-list-of-system-tokens-for-ghost-soluti.html

    Best regards,
    IP.



    ------------------------------
    [JobTitle]
    [CompanyName]
    [State]
    ------------------------------



  • 3.  RE: Is there anyway to pass the GSS Client Name to a script for powershell?

    Posted Aug 24, 2021 08:51 AM
    I was receiving some emails apparently from this Broadcom community forum that we do not initiated or have anything to do. Could you take me off this emails, please
    Thank you

    Yoel Prieto
    System Administrator
    Guilford Child Development
    P  (336) 369-5027 Ext. 5027
    A 1200 Arlington Street Greensboro, NC 27406






  • 4.  RE: Is there anyway to pass the GSS Client Name to a script for powershell?

    Posted Aug 24, 2021 08:50 AM
    Good morning all.

    I was receiving some emails apparently from this Broadcom community forum that we do not initiated or have anything to do. Could you take me off this emails, please 
    Thank you

    Yoel Prieto
    System Administrator
    Guilford Child Development