Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Management API - DeleteUMA

I am trying to write a script to run that will remove the assigned user from a laptop so that we can then re-image it and give it to a new user. As it stands SGN will sync with the client after re-image and configure it for the old user again.

Obviously this can be done manually in the management centre but I would like to use an automated script if possible.

I have looked at the UmaAPI.vbs on the product CD but cannot get this to run. I'm probably missing something obvious!

Does anyone have any experience with this or has wrote a similar script themselves?

Thanks

:34163


This thread was automatically locked due to age.
Parents
  • Hi ChrisD,

    Yes the "computername" is the machine name from our domain. I just replaced the name after pasting in the text from command line.

    It definately exists and is a SGN client so what other possibilities could there be forgetting this error?

    C:\Windows\SysWOW64>cscript.exe C:\UMA_API.vbs 2 computername
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.

    UMA Excample-Skript
    Created Base Object
    Created Uma Object
    API init 0
    Authenticate : 0
    Init Directory: 0
    Init UMA: 0
    GetOneObject : 0 computername Object not found. -> -5
    Init: Error in parameter 1

    C:\Windows\SysWOW64>

    :34515
Reply
  • Hi ChrisD,

    Yes the "computername" is the machine name from our domain. I just replaced the name after pasting in the text from command line.

    It definately exists and is a SGN client so what other possibilities could there be forgetting this error?

    C:\Windows\SysWOW64>cscript.exe C:\UMA_API.vbs 2 computername
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.

    UMA Excample-Skript
    Created Base Object
    Created Uma Object
    API init 0
    Authenticate : 0
    Init Directory: 0
    Init UMA: 0
    GetOneObject : 0 computername Object not found. -> -5
    Init: Error in parameter 1

    C:\Windows\SysWOW64>

    :34515
Children
No Data