Announcement

Collapse
No announcement yet.

Script Requests - Itarian team will write the scripts for you :) for FREE.

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by jdidone View Post

    Hi,
    Yes, its working.
    Only the backup check script is not working.
    Hi jdidone,

    Do you have issue while running this script
    https://scripts.comodo.com/frontend/...ssed-or-warned

    Please let us know, what issue you are facing.

    Kind Regards,
    PremJK

    Comment


    • Originally posted by tobin View Post
      Hello; how about a script to update windows defender and run a FULL Scan, please?
      Hi tobin,

      We have asked our script developers to check your request and provide you script.

      Kind Regards,
      PremJK

      Comment


      • Hi Network-Pete,

        We have asked script developers whether the script is possible or not.

        Kind Regards,
        PremJK

        Comment


        • Originally posted by PremJkumar View Post

          Hi jdidone,

          Do you have issue while running this script
          https://scripts.comodo.com/frontend/...ssed-or-warned

          Please let us know, what issue you are facing.

          Kind Regards,
          PremJK
          The script dont' work.

          Stucks on "Checking for missed events....."

          Comment


          • Originally posted by Itarian FAN View Post
            Hi, is there a MacOS Script Procedure to get notified when the battery needs to be replaced?
            Hi Itarian FAN,

            Please try this script prepared by our script developers and let us know if you have any issue
            https://scripts.itarian.com/frontend...tery-condition

            Kind Regards,
            PremJK

            Comment


            • Itarian FAN
              Itarian FAN commented
              Editing a comment
              PremJK Got some Failed status on some machines and the one with the bad battery gives me the same outputnr ie 000 but it says "This is not MAC Laptop
              000"

              Does the language matters? Im using Dutch Mac OS and Condition atm is Onderhoud aanbevolen
              Maybe you could add the chargingcycles too

              edit:
              I changed line 20: elif "Service Battery" or "Onderhoud aanbevolen" in result:

              and this gives me status 111 with the correct Print out that the Battery needs Service..
              Last edited by Itarian FAN; 12-08-2020, 04:37 PM.

          • Originally posted by tobin View Post
            Hello; how about a script to update windows defender and run a FULL Scan, please?
            Hi tobin,

            Please run this script prepared by our script developers and let us know if you have any issue
            https://scripts.itarian.com/frontend...pdate-and-scan

            Kind Regards,
            PremJK

            Comment


            • Hi Network-Pete,

              Please try this script "Script to create alert when ram and cpu utilization is high"
              https://scripts.itarian.com/frontend...zation-is-high

              If you have any issue in running the script, please let us know.

              Kind Regards,
              PremJK

              Comment


              • Can we separate this thread with Windows and Mac Scripts?
                Best Regards,

                ITarian FAN

                Comment


                • Hi Itarian FAN,

                  Thanks for your valuable suggestion. We will update you the status.

                  Kind Regards,
                  PremJK

                  Comment


                  • Originally posted by PremJkumar View Post

                    Hi Itarian FAN,

                    Please try this script prepared by our script developers and let us know if you have any issue
                    https://scripts.itarian.com/frontend...tery-condition

                    Kind Regards,
                    PremJK
                    I Found another Mac script which gives us more details about the battery.
                    Maybe its usefull for anyone else so i like to share it.

                    Create a new procedure and copy paste below into it

                    #!/usr/bin/env python

                    from __future__ import print_function
                    from __future__ import division

                    from subprocess import Popen, PIPE

                    def ioreg_battery_info():
                    output = Popen(["ioreg", "-r", "-k", "LegacyBatteryInfo", "-w", "0"], stdout=PIPE).communicate()[0]
                    try: #python3
                    return str(output, encoding='utf-8')
                    except TypeError: #python2
                    return output

                    def parse_ioreg_dict(output):
                    return dict(
                    [ (kw.strip().strip('"'), vw.strip())
                    for kw, vw
                    in [ line.split("=", 1)
                    for line
                    in output.split('\n') if line.find('=')>0
                    ]
                    ]
                    )

                    def is_two_complement_negative(value):
                    return value > (2**63-1)

                    def two_complement(value):
                    return 2**64 - value

                    def fix_negative(value):
                    if is_two_complement_negative(value):
                    return -two_complement(value)
                    else:
                    return value

                    def ioreg_battery_dict():
                    output = ioreg_battery_info()
                    return parse_ioreg_dict(output)


                    def fix_integer(string):
                    return fix_negative(int(string))

                    def format_time(string):
                    minutes = int(string)
                    if minutes == 65535:
                    return None
                    else:
                    return "%s:%s" % (minutes//60, minutes%60)

                    def percentage(ratio):
                    return "%s%%" % (int(ratio*100))

                    humanize_index = {
                    "TimeRemaining": format_time,
                    "AvgTimeToEmpty": format_time,
                    "AvgTimeToFull": format_time,
                    "InstantTimeToEmpty": format_time,
                    "FullToEmptyTime": format_time,
                    "WearRatio": percentage,
                    "ChargeRatio": percentage,
                    }

                    def humanize_data(k, v):
                    if k in humanize_index:
                    return humanize_index[k](v)
                    else:
                    return v

                    def wear_ratio(info):
                    return int(info["MaxCapacity"]) / int(info["DesignCapacity"])

                    def charge_ratio(info):
                    return int(info["CurrentCapacity"]) / int(info["MaxCapacity"])

                    def full_to_empty_time(info):
                    if get_data(info, "Amperage") < 0:
                    return -int(info["MaxCapacity"])*60 / get_data(info, "Amperage")
                    else:
                    return 65535

                    synthetize_index = {
                    "Amperage": lambda i: fix_integer(i["Amperage"]),
                    "InstantAmperage": lambda i: fix_integer(i["InstantAmperage"]),
                    "WearRatio": wear_ratio,
                    "ChargeRatio": charge_ratio,
                    "FullToEmptyTime": full_to_empty_time,
                    }

                    def synthetize_data(battery_info, k):
                    if k in synthetize_index:
                    return synthetize_index[k](battery_info)

                    def get_data(battery_info, k):
                    if k in synthetize_index:
                    return synthetize_data(battery_info, k)
                    elif k in battery_info:
                    return battery_info[k]
                    else:
                    raise KeyError("%s" % k)

                    keys_to_show = [
                    "Temperature",
                    "CycleCount",
                    #"DesignCycleCount9C",
                    "DesignCapacity",
                    "MaxCapacity",
                    "WearRatio",
                    "CurrentCapacity",
                    "ChargeRatio",
                    "Voltage",
                    "Amperage",
                    "InstantAmperage",
                    "InstantTimeToEmpty",
                    "TimeRemaining",
                    "AvgTimeToEmpty",
                    "AvgTimeToFull",
                    "FullToEmptyTime",
                    ]

                    def print_key_value(k, v):
                    if v is not None:
                    print("%s = %s" % (k, v))

                    battery_info = ioreg_battery_dict()

                    for k in keys_to_show:
                    print_key_value(k, humanize_data(k, get_data(battery_info, k)))
                    Best Regards,

                    ITarian FAN

                    Comment


                    • Hi Itarian FAN,

                      Thanks for sharing the script.

                      Kind Regards,
                      PremJK

                      Comment


                      • If you go to Devices (EndPoint Manager).. open the Device you see Installed Apps and listed all the installed Apps on that Device, but only for that Device. I would like to have MAC script that list all installed Apps with Version information that currently is displayed in "Installed Apps". I would like to see a report option for this so we can compare what each device has installed.

                        Thanks
                        Last edited by Itarian FAN; 12-13-2020, 07:22 AM.
                        Best Regards,

                        ITarian FAN

                        Comment


                        • Need a Mac Script to change background color or even change background image
                          Best Regards,

                          ITarian FAN

                          Comment


                          • Need a Mac script to give a user (temporary) administrator privileges. Maybe we need a second script to undo the temporary administrator privileges..
                            Best Regards,

                            ITarian FAN

                            Comment


                            • Originally posted by Itarian FAN View Post
                              If you go to Devices (EndPoint Manager).. open the Device you see Installed Apps and listed all the installed Apps on that Device, but only for that Device. I would like to have MAC script that list all installed Apps with Version information that currently is displayed in "Installed Apps". I would like to see a report option for this so we can compare what each device has installed.

                              Thanks
                              Hi Itarian FAN,

                              Unfortunately, we can create report of Installed apps and versions can be done only for one device at a time. report of multiple devices is not supported, a feature request is already raised for this.

                              Kind Regards,
                              PremJK

                              Comment

                              Working...
                              X