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
cracking.skulls last edited by
Hello. Attempting to use the %username% variable in a script module with no success.
cd\ 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.
cd\ xcopy C:\ApplyThese\start2.bin "C:\Users\administrator\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState" /D /C /Y
theopenem_admin last edited by
Script module runs as the system account, there wouldn't be a %username% variable because no user is logged in.