
Bschneider asked a question.
Installed SnowAgent 6.7.0 on a Windows 10 PC. Ran snowagent scan from an elevated command prompt, but receive the following error: Add Type : The term 'Add-Type' is not recognized as the name of a cmdlet, function, script file, or operable program.
out.lineoutput : Win32 internal error "Access is denied" 0x5 occurred while reading the console output buffer.
This has only occurred on two computers so far. Snowagent scan completes successfully on most of our Windows 10 computers.
Has anybody encountered this, and if so, how did you resolve? Thanks
I got the same issue on Win 10 1909
Hi @Bill Schneider​ ,
sounds like a powershell permission thingie. Please try "sc control SnowInventoryAgent5 128" instead of the snowagent scan command. Also I'm not aware of a default Snow powershellscript using "Add-Type". Which ones you have?
Cheers Oliver
Hi,
I've seen the exact same issue with a V6.5 agent recently, but only when running the agent manually in an elevated command prompt.
The normal daily scan for this machine runs every day.
@Oliver: "Also I'm not aware of a default Snow powershellscript using "Add-Type". Which ones you have? "
I thought my agent is running the standard powershell scripts with nothing extra. These are the versions showing in SnowInventory.
Agentcleanup V1.1
Autodeskscript V3.0
MSinfo V1.2
ScanMicrosoftSQLServer V1.2
ScanToad V1.6
SnowMiddleWareScanner V1.0 ( I was surprised to see this one)
SwidTagscript V1.7
Tom
Hello I have the same issue with scanning Windows Server 2016, 2019, 2022 on Citrix.
Does anyone know what is causing this error?
BR
Rafał
Hi @Rafał Maciejko​ yes - not running it as described in my first post ;-) .
BTW - With Add-type is executed by the agent directly just before it calls the different Powershell scripts. So maybe permissions or a wrong powershell version in that user scope (Add-Type should be there since PSv2).
Check if you can see results from the different powershell scripts in the snowpack or errors in the log when doing a scheduled scan or "sc control SnowInventoryAgent5 128".
cheers Oliver