Skip to content
Runs delprof2.exe on servers in the selected Worker Group
PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
run-delprof2.ps1

README.md

run-delprof2

Runs delprof2.exe on servers in the selected Worker Group

#Contributions to this script I'd like to highlight the posts that helped me write this scrip below.

get-help .\run-delprof2.ps1 -full

NAME run-delprof2.ps1

SYNOPSIS Runs delprof2.exe on servers in the selected Worker Group

SYNTAX run-delprof2.ps1 [[-XMLBrokers] ] [[-Delproflocation] ] []

DESCRIPTION Runs delprof2.exe on servers in the selected Worker Group This script has a dependency on delprof2.exe written by Helge Klein. It can be downloaded from https://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/. It is recommended that this script be run as a Citrix admin.

PARAMETERS -XMLBrokers Optional parameter. Which Citrix XMLBroker(s) (farm) to query. Can be a list separated by commas.

    Required?                    false
    Position?                    1
    Default value                CITRIXXMLBROKER
    Accept pipeline input?       false
    Accept wildcard characters?  false
    
-Delproflocation <Object>
    Optional parameter. Location of Delprof2.exe.
    
    Required?                    false
    Position?                    2
    Default value                C:\Delprof2 1.6.0\delprof2.exe
    Accept pipeline input?       false
    Accept wildcard characters?  false
    
<CommonParameters>
    This cmdlet supports the common parameters: Verbose, Debug,
    ErrorAction, ErrorVariable, WarningAction, WarningVariable,
    OutBuffer, PipelineVariable, and OutVariable. For more information, see 
    about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). 

INPUTS None

OUTPUTS None

NOTES

    NAME        :  run-delprof2
    VERSION     :  1.04
    LAST UPDATED:  2/6/2017
    AUTHOR      :  Alain Assaf

-------------------------- EXAMPLE 1 --------------------------

PS C:\PSScript >.\run-delprof2.ps1

Will use all default values.

-------------------------- EXAMPLE 2 --------------------------

PS C:\PSScript >.\run-delprof2.ps1 -XMLBrokers "XMLBROKER"

Will use "XMLBROKER" to query XenApp farm.

-------------------------- EXAMPLE 3 --------------------------

PS C:\>.\run-delprof2.ps1 -XMLBrokers "XMLBROKER" -Delproflocation "C:\delprof2.exe"

Will use "XMLBROKER" to query XenApp farm and "c:\delprof2.exe" as location for delprof2.exe.

Legal and Licensing

The run-delprof2.ps1 script is licensed under the MIT license.

Want to connect?

Help

I welcome any feedback, ideas or contributors.

You can’t perform that action at this time.