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-AzureRmVM -Status | Select-Object ResourceGroupName,Name,PowerState |
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
$UserEmail="email@dominio.com.br" | |
$NewEmail="email2@dominio.com.br" | |
# Obter Informação sobre Email Principal | |
Get-UnifiedGroup -Identity $UserEmail | fl PrimarySmtpAddress | |
# Alterar o Email da mailbox | |
Set-UnifiedGroup -Identity $UserEmail -PrimarySmtpAddress $NewEmail | |
# Validar se o E-mail foi alterado | |
Get-UnifiedGroup -Identity $NewEmail | fl PrimarySmtpAddres |
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=Import-Csv -path C:\Temp\Emails.csv | |
Foreach ($user in $users){ | |
Write-Host "Atualizando" $user.EmailAddress | |
Set-UnifiedGroup -Identity $user.UserEmail -PrimarySmtpAddress $user.NewEmail | |
} |
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
C:\Windows\System32\Sysprep\Sysprep.exe /generalize /oobe /shutdown |
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
$GroupId="########" | |
<# | |
Client ID: | |
Client Secret: | |
Dev Key: | |
#> | |
$Token = "" | |
$Headers = @{ "Authorization" = "Bearer "+$Token } |
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
# Seu arquivo CSV deve ter as colunas UserPrincipalName e Licenses. | |
$users=Import-Csv -Path C:\Temp\users.csv | |
foreach ($user in $users) { | |
Write-Host "Atualizando" $user.UserPrincipalName | |
Set-MsolUserLicense -UserPrincipalName $user.UserPrincipalName -AddLicenses $user.Licenses |
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
New-DistributionGroup -Name "Contabilidade" -PrimarySmtpAddress "contabilidade@M365x484652.OnMicrosoft.com" |
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
# Seu Arquivo CSV deve ter as colunas Nome e Email | |
$listas=Import-Csv C:\temp\listas.csv | |
foreach ($lista in $listas) | |
{ | |
New-DistributionGroup -Name $lista.Nome -PrimarySmtpAddress $lista.Email | |
} |
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
$listas = Import-Csv C:\temp\listas.csv | |
foreach ($lista in $listas) | |
{ | |
Get-DistributionGroup -Identity $lista.Nome | |
} |
OlderNewer