Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing MasterProfile CmdLets #44

Open
RoepLuke opened this issue Jul 4, 2022 · 0 comments
Open

Missing MasterProfile CmdLets #44

RoepLuke opened this issue Jul 4, 2022 · 0 comments

Comments

@RoepLuke
Copy link
Contributor

RoepLuke commented Jul 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant