Giter VIP home page Giter VIP logo

epowershell's Introduction

Build status version downloads

Quick Start

Import-Module ePOwerShell

$ePOwerShellServer = @{
    Server = 'https://your-epo-server.com'
    Port = 1234
    Credentials = (Get-Credential)
    AllowSelfSignedCerts = $True
}

Set-ePOConfig @ePOwershellServer

From here, you're able to use the rest of the functions:

$Computer = Get-ePOComputer $env:ComputerName

The rest of the functions are detailed further in the wiki.

Tips and Tricks

Save ePO Config

If you don't want to do Set-ePOConfig every time you load powershell, try Save-ePOConfig.

epowershell's People

Contributors

marranaga avatar mysticryuujin avatar vertigoray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

epowershell's Issues

Remove computer from ePO

Description

Add new function to remove computers from ePO.

API command

system.delete

API Parameters:

  • names
  • uninstall
  • uninstallSoftware

Proposed function name

Remove-ePOComputer

Change parameter to optional

Port is default to 8443, so rather than requiring it to be typed in each time, set it as default that can be overwritten if specified.

An exception occurred during a WebClient request.

First, THANKS for doing this. You are awesome.

I'm using ePO 5.9.0. Got the module imported. Set up ePOwerShellServer via the Quickstart instructions and get this error below. Is there any other easy setup that I'm missing?

PS C:> Find-ePOwerShellComputerSystem $env:ComputerName
Failed with unknown error: Exception calling "DownloadString" with "1" argument(s): "An exception occurred during a WebClient request."
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\ePOwerShell\Private\Invoke-ePOwerShellWebClient.ps1:36 char:9

  •     Throw ('Failed with unknown error: {0}' -f $_.Exception.Messa ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Failed with unk...lient request.":String) [], RuntimeException
    • FullyQualifiedErrorId : Failed with unknown error: Exception calling "DownloadString" with "1" argument(s): "An exception occurred during a WebClient request."

Use -AgentGuid with Set-ePOwerShellTag or Remove-ePOComputer

ePowershell has been really useful for remote administration and I have written a script to remove old duplicate devices in our EPO.

The problem is that because we can only use the ComputerName child item when using Set-ePOwerShellTag or Remove-ePOComputer we cant specify which of these duplicate devices we want to set a tag on / remove from EPO.

Please can Set-ePOwerShellTag or Remove-ePOComputer be configured to also accept AgentGUID?

Many thanks!

Knowing product version

Hello.

First of all, thanks for this module. It has been quite usefull when you need to adminisatrate your ePO. II have been documenting and working with the module, and it´s quite good. But I would like to know how can I make a call to know which product is installed in an specific server. For instance, if I use Get-ePOComputer -Computer XXXXXXX I get the Agent version, but not the product version.

Thanks a lot in advance.

Get Update Package?

Hi, im not sure if you are still working on this or with this.
Im looking for a way to retrieve the "Check-In Date" for the "AMCore Content Package" update within ePO -> Software - Main Repository.
Especially for the (branch)"Current".

Add function: Invoke-ePOwerShellWakeUpAgent

New function to be added. Allows you to wake up agents based off of computer name.

From ePO core.help:

system.wakeupAgent names [fullProps] [superAgent] [randomMinutes]
[forceFullPolicyUpdate] [useAllHandlers] [retryIntervalSeconds] [attempts]
[abortAfterMinutes] [includeSubgroups] - Wakes up the agent on a supplied list
of systems

An exception occurred during a WebClient request. Domain Auth

Seem to have a strange issue with auth with epo i am receiving

Failed with unknown error: Exception calling "DownloadString" with "1" argument(s): "An
exception occurred during a WebClient request."

It seems to occur when i try and auth to the epo server using domain creds (not including the domain name). Username contains special chars such as -

Order the return object in Find-ePOwerShellComputerSystem

Currently when returning computer objects from Find-ePOwerShellComputerSystem, we rename the property names. EPOComputerProperties.ComputerName becomes ComputerName, EPOComputerProperties.UserProperty1 becomes UserProperty1, etc.

The property names are out of alphabetical order. I need to come up with a way of ordering the object keys.

New function: Update-ePOwerShellServer

Allows you to update individual values of $script:ePOwerShell so that you don't need to run Set-ePOwerShellServer with all values again. Would be useful to quickly change between multiple ePO servers.

Get-ePORecoveryKey - binary key file

In the cmdlet Get-ePORecoveryKey, if the endpoint have a Recovery Key that is a "binary key file" the export process stops with "Recovery key type is not currently supported" and do not export any key from that endpoint.
Is possible to continue the process and export the renaming supported keys?

In debug mode last step before process stops:

VERBOSE: GET https://abcd:8443/remote/mne.recoverMachine?:output=json&serialNumber=25AD28EFAXXXXXXX with 0-byte payload
VERBOSE: received 58-byte response of content type text/plain;charset=UTF-8
DEBUG: Response:
StatusCode        : 200
StatusDescription : OK
Content           : Error 0 :
                    Recovery key type is not currently supported.
RawContent        : HTTP/1.1 200 OK

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.