Welcome to the Liquidware Community Site.
Current and Future Clients/Partners are Welcome.
Current and Future Clients/Partners are Welcome.
ProfileUnity Powertools (Powershell commands)
You can find the core power tools here
currently version 1.4
Things you can do in V1.4:
connect-ProfileUnityServer Type in command and follow the prompts get-ProUconfigs Type in command get responce get-ProUFilters Type in command get responce get-ProUFlexapps Type in command get responce get-ProUPortRules Type in command get responce load-proUconfig([string]$name) Example: load-proUconfig -name "configuration name" $Currentconfig load-proUPortRule([string]$name) Example: load-proUPortRule -name "Port Rule Name" $CurrentPortRule load-proUfilter([string]$name) Example: load-proUfilter -name "Filter Name" $Currentfilter Save-ProUConfig Type in command get responce Save-ProUPortRule Type in command get responce Save-ProUFilter Type in command get responce export-proUconfig([string]$name, $savepath) Example: export-proUconfig -name "configuration name" -savepath "c:\Path\" The backslash at the end of the path is important Export-ProUConfigAll ($savepath) Example: Export-ProUConfigAll -savepath "c:\Path\" The backslash at the end of the path is important Import-ProuConfig Type in command and follow the prompts Import-ProuConfigAll ($source) Example: Import-ProuConfigAll -source "c:\Path\" The backslash at the end of the path is important
2
Comments
This function and foreach will allow you to delete all filters, it will not delete any filters currently in use. please use carefully as you can't not restore your filters unless you have backed up the database.
This bit of script is to help pull what portability rules are attached to a config and export the portability rule definition into a txt file.
login to the proU server connect-profileunityserver
Load your config then run the code below this will output a file in c:\temp\PortRules.txt
load-proUconfig "yourconfig"
## Code below ##
$ports = $CurrentConfig.PortabilitySettings.PortabilityRuleset.name
foreach ($port in $ports){
load-proUPortRule $port
$port | out-file c:\temp\PortRules.txt -append
$CurrentPortRule.RegistryRules | out-file c:\temp\PortRules.txt -append
$CurrentPortRule.FilesystemRules | out-file c:\temp\PortRules.txt -append
}
## End Code##
Attached is bit number to label translation.