• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Snapin return code -196608

Scheduled Pinned Locked Moved Solved
Windows Problems
2
4
2.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    TheBitFighter
    last edited by Feb 21, 2020, 6:57 PM

    SnapinClient returns Code -196608 when starting snapin.

    I have a very simple powershell script to install VS Code utilizing Chocolatey on a Client machine. The script I use:

    choco install vscode -y
    

    When I start the snapin, the log says SnapinClient Return Code: -196608.
    The entire command run is:

    powershell.exe -ExecutionPolicy Bypass -NoProfile -File vscode_snapin1.bs1 
    

    I have read that the problem can hail from the ExecutionPolicy argument. The command works when started locally in a administrative Powershell.

    What am I doing wrong? Is there a way to get a more detailed log of what happens?

    1 Reply Last reply Reply Quote 0
    • K
      Kiweegie
      last edited by Feb 21, 2020, 9:54 PM

      Hi @TheBitFighter

      can I just double check that the file extension in your code block above is a typo and should read .ps1 not .bs1?

      And Chocolatey is installed already on the endpoint you’re trying to install vscode with (via Chocolatey)?

      I’ve tested your snapin on a client here and provided Chocolatey is installed on the client vscode installs.

      cheers Tom

      1 Reply Last reply Reply Quote 0
      • T
        TheBitFighter
        last edited by Feb 21, 2020, 10:08 PM

        There was indeed a typo in the snapin and it turns out changing it solved the problem. I don’t consider the case closed tho as I had to many flukes today. I will try the other snapins, the update the thread again.

        1 Reply Last reply Reply Quote 0
        • T
          TheBitFighter
          last edited by Feb 21, 2020, 10:51 PM

          Update: It works. The file ending was the problem.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            Last post

          210

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project