Loading
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


  • Oliver Berger (Flexera Software)

    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

    Expand Post
  • 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

     

     

     

    Expand Post
    • Hello Tom, I found the same to be true. Since the automatic scan works, we really have no further reason to perform a manual scan. Thanks for your input. Kind Regards, Bill
  • Hello I have the same issue with scanning Windows Server 2016, 2019, 2022 on Citrix. 2023-02-20_10-47-21Does anyone know what is causing this error?

     

    BR

    Rafał

     

    Expand Post
    • Oliver Berger (Flexera Software)

      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

      Expand Post

Loading
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.