Friday, January 6, 2017

Connect to Azure Subscription using Powershell

                              

Download Microsoft Web Platform Installer
Click the free download








Add Microsoft Azure for Powershell



Click on Install
Once installed open Powershell (NB – you don’t have to import any azure module. It is already installed)
Type  Get-AzurePublishSettingsFile




Enter email address used for Azure registration




Save the Subscription file



After you’ve saved the file to your system run the following command to import it. Once the file imports you will have connectivity from PowerShell to your Azure subscription.
PS C:> Import- AzurePublishSettingsFile c:\location\filename.publishsettings



Now you can run all of your Azure tasks via PowerShell instead of the console. 

Find GPO's applied to a computer if the gpresult /r and rsop.msc failed to load due to permission

How to see the group policies applied to a computer if the gpresult /r and rsop.msc failed to load due to domain permission Run the command ...