Skip to content

Get‐GPResult

Mike Hiersche edited this page Oct 26, 2023 · 3 revisions

Get-GPResult

SYNOPSIS

Get and return the current GP Settings

DESCRIPTION

Run gpresult.exe on the machine, then take the file output, and import it as a variable

PARAMETERS

-Path <String>

The full path to the XML file, if it already exists, or where to save the file

Required? false
Position? 1
Default value "$(get-location)\GPResult.xml"
Accept pipeline input? false

EXAMPLE

EXAMPLE 1

Get-GPResult -Path "$(get-location)\GPResult.xml"
xml                             Rsop
---                             ----
version="1.0" encoding="utf-16" Rsop
Clone this wiki locally