Skip to main content
Kate_M
Community Manager
Community Manager
Aug 19, 2024 10:09 AM UTC

'Could not create folder' when installing Windows Agent with PowerShell

  • Apr 24, 2026 3:40 PM UTC
  • 0 replies
  • 95 views
  • Translate All
Description 'Could not create folder' when installing Windows Agent with PowerShell
Scope installing Windows Agent with PowerShell
Solution

When installing the Windows Agent using the PowerShell Installation Instructions, a ‘Could not create folder’ error is encountered when running the installation script:

[2023-10-19-14::44::6::] ExecuteActions.cpp (858): ParseCustomActionData entry
[2023-10-19-14::44::6::] ExecuteActions.cpp (866): need 0 characters
[2023-10-19-14::44::6::] ExecuteActions.cpp (883): no more separators, leaving
[2023-10-19-14::44::6::] ExecuteActions.cpp (910): ParseCustomActionData exit
[2023-10-19-14::44::23::] ExecuteActions.cpp (750): Could not create folder C:\Program Files\Lacework\, or folder unsafe to use (link) - Win32Error: 0 (LW Error = 0x880001)
[2023-10-19-14::45::35::] ExecuteActions.cpp (858): ParseCustomActionData entry
[2023-10-19-14::45::35::] ExecuteActions.cpp (866): need 0 characters
[2023-10-19-14::45::35::] ExecuteActions.cpp (883): no more separators, leaving
[2023-10-19-14::45::35::] ExecuteActions.cpp (910): ParseCustomActionData exit

 

While you may be logged into Windows with an administrator user, the PowerShell process which invokes the .MSI installer program needs to itself be running with administrator privileges in order to create and write to the \Lacework directory.

 

Resolution

 

  • Review the install logs in C:\Users\<user_who_ran_the_script>\AppData\Local\Temp\Lacework, if present, for additional details
  • If using the Windows GUI, launch a PowerShell Window with Right Click → Run as Administrator, then re-run the installation script
  • If using the PowerShell CLI, run  Start-Process powershell -Verb RunAs from thea PowerShell CLI prompt, then re-run the installation script
  • If the error is still present, please reach out to Lacework Support for further assistance


 

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024