Welcome to the community forums for Theopenem. You are encouraged to not only ask questions but help others as well. If you have found Theopenem helpful in any way please consider purchasing a support contract. A support contract ensures the continued development of Theopenem as well as guaranteed responses to your questions in our helpdesk ticketing system.

Passing variables in script modules

  • Hello. Attempting to use the %username% variable in a script module with no success.

    xcopy C:\ApplyThese\start2.bin "C:\Users\%username%\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" /D /C /Y

    However, it works fine if I specify the exact path. Is there a workaround or setting I'm missing? Thanks.

    xcopy C:\ApplyThese\start2.bin "C:\Users\administrator\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" /D /C /Y

  • Script module runs as the system account, there wouldn't be a %username% variable because no user is logged in.