Using Online Kscript want to see if current logged in user has a specific program on there desktop (small single exe to change network settings)
at the "Verify" step I have: 
  1. Verify a file exists...
  2.     Directory: C:\Users\%UserName%\Desktop
  3.     File: "NAME OF EXE"
The status detail i'm getting in Kace is "File does not exist: C:\Users\AE-52$\Desktop\name of exe.exe
Instead of the current user it is showing the computer name with a $ (AE-52$).
is this possible to do using a script?
Answer Summary:
0 Comments   [ + ] Show Comments


Please log in to comment


you need to run the script as the logged-in user
Answered 01/14/2015 by: SMal.tmcc
Red Belt

  • you should be able to use for directory:
  • Logged-in User was the answer, Thanks!
    • any time you use user level windows variables you need to run it as the user. Otherwise the scripts run as system and know nothing about variables like %username% or %homepath%
Please log in to comment
Answer this question or Comment on this question for clarity