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

    Error Script powershell

    Scheduled Pinned Locked Moved Unsolved
    Windows Problems
    1
    1
    105
    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.
    • L
      Libner
      last edited by

      Hello,

      I want to create a scripting powershell to install programe 7zip for example :
      3d675177-eed8-4270-89e1-34b9f93c26e2-image.png

      Script in ZIP i have file install.xex and script PS1
      2193951e-8d31-4b31-ba1c-302956055860-image.png

      My scrip ps1 is :

      .\7z2409-x64.exe /S

      :Associate
      assoc .7z=7-Zip.7z
      assoc .bz2=7-Zip.bz2
      assoc .gz=7-Zip.gz
      assoc .tar=7-Zip.tar
      assoc .tgz=7-Zip.tgz
      assoc .zip=7-Zip.zip

      ftype 7-Zip.7z=“C:\Program Files\7-Zip\7zFM.exe” “%1”
      ftype 7-Zip.bz2=“C:\Program Files\7-Zip\7zFM.exe” “%1”
      ftype 7-Zip.gz=“C:\Program Files\7-Zip\7zFM.exe” “%1”
      ftype 7-Zip.tar=“C:\Program Files\7-Zip\7zFM.exe” “%1”
      ftype 7-Zip.tgz=“C:\Program Files\7-Zip\7zFM.exe” “%1”
      ftype 7-Zip.zip=“C:\Program Files\7-Zip\7zFM.exe” “%1”

      I have this error il fog.log:

      20/12/2024 11:50:08 Client-Info Client Version: 0.13.0
      20/12/2024 11:50:08 Client-Info Client OS: Windows
      20/12/2024 11:50:08 Client-Info Server Version: 1.5.10.1629
      20/12/2024 11:50:08 Middleware::Response Success
      20/12/2024 11:50:08 SnapinClient Running snapin 0.7-ZIP-2409
      20/12/2024 11:50:08 Middleware::Communication Download: http://10.176.227.217/fog/service/snapins.file.php?mac=08:00:27:98:62:07&taskid=12
      20/12/2024 11:50:08 SnapinClient C:\Program Files (x86)\FOG\tmp\0-7ZIP-2409.zip
      20/12/2024 11:50:08 SnapinClient Processing SnapinPack 0-7ZIP-2409.zip
      20/12/2024 11:50:08 SnapinClient Extracting SnapinPack
      20/12/2024 11:50:08 Bus Emmiting message on channel: Notification
      20/12/2024 11:50:08 SnapinClient Starting snapin
      20/12/2024 11:50:08 SnapinClient Snapin finished
      20/12/2024 11:50:08 SnapinClient Return Code: -196608
      20/12/2024 11:50:08 Bus Emmiting message on channel: Notification
      20/12/2024 11:50:08 Middleware::Communication URL: http://10.176.227.217/fog/service/snapins.checkin.php?taskid=12&exitcode=-196608&mac=08:00:27:98:62:07&newService&json

      do you have an idea?

      Thank for your help

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

      184

      Online

      12.0k

      Users

      17.3k

      Topics

      155.2k

      Posts
      Copyright © 2012-2024 FOG Project