Add computer name into a text file on the machine

(imported topic written by itowns91)

I’ve got how to get the computer name from the regsitry:

value “computername” of key “hklm\system\controlset001\control\computername\activecomputername” of registry

Now I would like to output the value to a text file saved to the machine. Anyone have any ideas on how to do this?

(imported comment written by jessewk)

You can just use the computer name inspector. here’s a really simple action:

appendfile {computer name}
move __appendfile c:\computername.txt

(imported comment written by itowns91)

That worked. Thanks :slight_smile: