Skip to content
This repository was archived by the owner on Sep 7, 2025. It is now read-only.
This repository was archived by the owner on Sep 7, 2025. It is now read-only.

Missing MasterProfile CmdLets #44

@RoepLuke

Description

@RoepLuke

Get-UMSMasterProfile

Copy Get-UMSProfile.ps1 and change

Begin
  {
    $UriArray = @($Computername, $TCPPort, $ApiVersion)
    $BaseURL = ('https://{0}:{1}/umsapi/v{2}/profiles' -f $UriArray)
  } 

to

Begin
  {
    $UriArray = @($Computername, $TCPPort, $ApiVersion)
    $BaseURL = ('https://{0}:{1}/umsapi/v{2}/masterprofiles' -f $UriArray)
  } 

Get-UMSMasterProfileAssignment

Copy Get-UMSProfileAssignment.ps1 and change

Begin
  {
    $UriArray = @($Computername, $TCPPort, $ApiVersion)
    $BaseURL = ('https://{0}:{1}/umsapi/v{2}/profiles' -f $UriArray)
  }

to

Begin
  {
    $UriArray = @($Computername, $TCPPort, $ApiVersion)
    $BaseURL = ('https://{0}:{1}/umsapi/v{2}/masterprofiles' -f $UriArray)
  }

Get-UMSMasterProfileDirectory

Copy Get-UMSProfileDirectory.ps1 and change

Begin
  {
    $UriArray = @($Computername, $TCPPort, $ApiVersion)
    $BaseURL = ('https://{0}:{1}/umsapi/v{2}/directories/profiledirectories' -f $UriArray)
    if ($Filter)
    {
      $FilterString = New-UMSFilterString -Filter $Filter
    }
  }

to

Begin
  {
    $UriArray = @($Computername, $TCPPort, $ApiVersion)
    $BaseURL = ('https://{0}:{1}/umsapi/v{2}/directories/masterprofiledirectories' -f $UriArray)
    if ($Filter)
    {
      $FilterString = New-UMSFilterString -Filter $Filter
    }
  }

Documentation

The documentation for these new Functions / CmdLets has to be added

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions