File won't upload to K1000
Can someone tell me why this is not uploading to the K1000? I am running this online kscript to grab a gpresult report and upload it to the K1000. I don't want to use gpresult /r because the HTML report has much more information. I am running the script as the logged on user. I can see the html report gets created locally at the specified location, but it won't upload.
Output Log
Running as active user: RAD\********* Launched Process: %windir%\system32\gpresult.exe
Activity Log
verify - on_verify_success verify - on_verify_failure verify - launch_program Launching program: '%userprofile%\%windir%\system32\gpresult.exe' ' /H %userprofile%\gp_report.html /f' wait='true' verify - upload_file Uploading file: %userprofile%gp_report.html
Debug Log
Running kbot: runkbot 115 1504733059 KBotScript::LogScriptInfo - Start id=115 name=*** RUN - Group Policy Report version=1504733059 type=policy execute disconnected=false logged_off=false execute events KBotScript::LogScriptInfo - Finish KBotScript::LogScriptInfo - Start id=115 name=*** RUN - Group Policy Report version=1504733059 type=policy execute disconnected=false logged_off=false execute events KBotScript::LogScriptInfo - Finish runkbot ----- launching [path='%userprofile%' program='%windir%\system32\gpresult.exe' parms=' /H %userprofile%\gp_report.html /f' wait='true'] ----- runkbot ----- completed [exitCode=0] ----- NetworkOps_UploadFile: Failed to upload file.
1 Comment
[ + ] Show comment
Answers (0)
Please log in to answer
Be the first to answer this question
Now, I did realize that is not even the problem. The problem seems to be that the Kace upload function does not like the %userprofile% variable because when I specified the explicit path to my profile, the file uploaded successfully. Now I am hunting down for a way to get the %userprofile% variable to work with the upload function. - verasme 7 years ago