When logging into a protected asset, the Windows script error below is presented.
A local security or group policy prevented the VBS script to run through PowerShell.
Remove the ApplySambaCredentials.vbs registry key.
Before making any changes to the registry, it is highly recommended that a backup of the registry is performed
1. Open a command prompt as an Administrator.
2. Backup the registry using the following command:
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run C:\Windows\Temp\CurrentVersion_Run.reg
3. Remove the offending registry key.
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /V Unitrends_SetSmbCredentials /F
The Windows Script Host Error should no longer occur.