How to get Group-Name in postdownload
-
Hi,
I have a question, how can I get to the group-name assigned to a host during the runtime of a postdownload script. I saw that the group is stored in group64. However, I cannot read this variable. Is there a way to get the group name in a postdownload script or do I have to create an extra script that makes a query in the database?Best,
floppyrub -
@Floppyrub What you are referring to with
group64
is just a variable used when doing a (full/manual) registration of a machine (code ref). This is not available in the postdownload script.I don’t think the group information is available as of now. But that doesn’t mean it cannot be done. If you are keen to add the feature you are welcome to.
-
Hi, thanks for the reply and information. I was able to solve my problem, by using the fog-api in the postdownloadskript. Now i am able to read the hosts group-name and create automatic dessiscions for manipulating the unattend.xml in windows based on that.
Best,
Floppyrub