Thursday, December 27, 2018

How to Delete an AzureAD object that Won't Delete

1. Ok. You deleted a user from your on-premise Active Directory and it's still showing that bugger in Azure Active Directory. Your Google Kung-Fu is strong, but you can't find the dang commands. Here is what worked for me.

2. Get Connected via Powershell to Office365 / AzureAD:

https://www.microsoft.com/en-us/download/details.aspx?id=28177 (Install)
https://blog.migrationking.com/2018/12/how-to-connect-powershell-to-office365.html
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest (Install)

3. Install-Module -Name AzureAD

4. After your connected. Run the following command:

PS C:\Windows\system32> Remove-MsolUser -UserPrincipalName rick.james@unitedfederationofplanets.gov

Confirm
Continue with this operation?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y

5. Check your AzureAD portal to make sure it's gone.

https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade/AllUsers

6. Freaking dance man!




Reference Links:

https://www.itjon.com/removed-orphaned-o365-object-that-was-already-removed-from-your-local-ad/

Unhelpful Real World Training Junk:
https://support.office.com/office-training-center
https://docs.microsoft.com/en-us/office365/admin/admin-home?view=o365-worldwide
https://docs.microsoft.com/en-us/azure/active-directory/
https://docs.microsoft.com/en-us/microsoft-365/enterprise/index#pivot=home&panel=home-all
Share:

How to Connect Powershell to Office365

1. Install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW MSI application. You cannot perform the next steps without it being installed:

https://www.microsoft.com/en-us/download/details.aspx?id=28177

2. Open Powershell and install the Install-Module MSOnline module. (Note: Use the Administrator elevated PS)



3. URL for Powershell commands to Manage User accounts and licenses with Office 365 PowerShell:

https://docs.microsoft.com/en-us/office365/enterprise/powershell/manage-user-accounts-and-licenses-with-office-365-powershell

4. PS Command to Connect to O365: Connect-MsolService -Credential $credential

5. You will be prompted to log in with your O365 administrator account (you cannot use a regular account).

6. Run commands without headaches if your environment permits it: Set-ExecutionPolicy Unrestricted -Force

PS C:\Windows\system32> $UserCredential = Get-Credential

7. Sign-in to Office 365 with Administrator Account

8. Run this command so that you are connected via PowerShell (no there is no GUI):

PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

9. Turn off the pain in the neck prompts:

PS C:\Windows\system32> Import-PSSession $Session -DisableNameChecking


Share:

Thursday, December 13, 2018

How to Connect to AWS Snowball and Copy Data

1. Order the AWS Snowball from your AWS Account and have it shipped to you.


Note: Good YouTube Video by AWS: https://www.youtube.com/watch?v=hxIiEjmVFu0

2. Download the AWS Snowball Client

3. Download the Manifest File

Note: (Security Alert!) Protect the location of the file. King of the Kingdom access if someone snatches it or accesses it unauthorized for the workload/data.



4. Make sure the manifest file is in a path you can access easily. If it's on your workstation, it may be a delay. Use a jump server.


Share:

Wednesday, December 12, 2018

How to Remove a Failed Move Request for the Current Batch of Exchange 2013 to Office 365

1. MS Blog: https://docs.microsoft.com/en-us/office365/enterprise/powershell/connect-to-office-365-powershell

2. Open Powershell as an Administrator and install the AzureAD Powershell Modules on your Windows 10 machine.

3.  Install-Module -Name AzureAD (Doesn't seem to work on W2012 R2 Server)


4. Login with your Office365 Account (You have to be a Global admin). Type in Connect-AzureAD


5. After you type in the password you will get this screen:


6. Connect to Office 365 through PowerShell from the elevated prompt on your local Windows 10 Machine.

PS C:\Windows\system32> $UserCredential = Get-Credential

7. Sign-in to Office 365 with Administrator Account

8. Run this command so that you are connected via PowerShell (no there is no GUI):

PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

9. Turn off the pain in the neck prompts:

PS C:\Windows\system32> Import-PSSession $Session -DisableNameChecking

10. Check your batch that is migrating:

PS C:\Windows\system32> Get-MigrationBatch | fl

11. Get your Move Request (See what's failed)

PS C:\Windows\system32> Get-MoveRequest

12.  Remove the Completed Jobs (Optional):

PS C:\Windows\system32> Get-MoveRequest -movestatus completed | remove-moverequest

13. Delete all of them:


PS C:\Windows\system32> Get-MoveRequest -MoveStatus Failed | Remove-MoveRequest

14. Delete one at a time.

PS C:\Windows\system32> Get-MigrationUser

Kill the failed jobs:

Bruce_Lee@insomniacloud.com                      Final2-12.12.2018              Failed


PS C:\Windows\system32> Remove-MigrationUser Bruce_Lee@insomniacloud.com

Confirm
Are you sure you want to perform this action?
Remove the migration user "Bruce_Lee@insomniacloud.com"?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): A



Reference Blogs:
https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/connect-to-exchange-online-powershell?view=exchange-ps

https://glazenbakje.wordpress.com/2013/12/04/exchange-2013-remove-complete-moverequest-list-via-powershell/

http://www.expta.com/2015/08/exchange-2013-migration-batch-completes.html

https://practical365.com/exchange-server/completing-individual-move-requests-migration-batch/

https://vkarps.wordpress.com/2017/04/05/o365-exchange-one-liners/



Share:

Monday, December 3, 2018

Default AWS Storage Gateway Password

1. After downloading the AWS Storage Gateway and importing the .OVA file into VMware you have to login after you start the VM.

2. Default login is the following:

Username: admin
Password: password

Note: It is no longer sguser / sgpassword

3. After you have logged in test your networking connectivity to AWS:


4. You will need to change the password inside the AWS Console under "Actions"
https://console.aws.amazon.com/storagegateway/

Share: