/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


trying to make directory under current user not working

02/18/2016 623 views
Hi, I'm trying to push a job to Make directory
md "C:\Users\%username%\Documents\test

this works if i do it from command line, but not when i create a task and push it.  I'm running under user context.  any ideas?

0 Comments   [ + ] Show comments

Comments


All Answers

1
Hello,

if you are using KACE consider that the KACE AGENT works under the LocalSystem context so for it the %username% is something different.
You can use a KACE script and run it as an Online Script and select the option to run as the logged in user.
 Kind regards,
Marco - StockTrader
Answered 02/18/2016 by: StockTrader
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ