This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-02-23T20:01:01.229Z","extensionVersion":"v2.8.7"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-PartnerMailboxes{ | |
[cmdletbinding()] | |
Param( | |
[Parameter(Mandatory=$True)] | |
[PSCredential]$Credential = (Get-Credential), | |
[Parameter(Mandatory=$True)] | |
[String]$Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Properties = @{'Licensed Users' = $Users.Count; | |
'Domain' = $Domain[1]; | |
} | |
$PropsObject = New-Object -TypeName PSObject -Property $Properties | |
$PropsObject | Export-CSV -Path C:\users\jbenson\Desktop\PartnerMailboxes.csv -NoTypeInformation -Append |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$UPN = $Users[0].UserPrincipalName | |
$Domain = $UPN.Split('@') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Users = Get-MsolUser -TenantId <MyTenantID> | Where-Object {$_.IsLicensed -eq $True} | |
$Users | Get-Member |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> Get-Command -Module MSOnline -ParameterName TenantID -Verb Get | |
CommandType Name Version Source | |
----------- ---- ------- ------ | |
Cmdlet Get-MsolAccountSku 1.0 MSOnline | |
Cmdlet Get-MsolAdministrativeUnit 1.0 MSOnline | |
Cmdlet Get-MsolAdministrativeUnitMember 1.0 MSOnline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$clients = (Get-MSOLPartnerContract) | |
$clients | Get-Member | |
$clients.defaultdomainname | |
$clients.tenantid | |
$clients.tenantid | gm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Command -Module MSOnline | |
Get-Command -Module MSOnline -Noun *partner* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$credential = get-credential | |
Import-Module MSOnline | |
Connect-MsolService -Credential $credential |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ClassVersion("1.0.1.0"), FriendlyName("xComputer")] | |
class MSFT_xComputer : OMI_BaseResource | |
{ | |
[key] string Name; | |
[write] string DomainName; | |
[write,EmbeddedInstance("MSFT_Credential")] String Credential; | |
[write,EmbeddedInstance("MSFT_Credential")] String UnjoinCredential; | |
[write] string WorkGroupName; | |
}; |
NewerOlder