Category: PowerShell 101

How to Get Weather Forecast In PowerShell

We will use an open source web service wttr.in to fetch the weather forecast. Wttr.in can be used not only to check the weather, but also for some other purposes. For example, you can see the current Moon phase. In PowerShell, there is a special alias “curl” for the built-in cmdlet Invoke-RestMethod, which can retrieve the URL […]

Read More »

How to connect to Microsoft Azure using Powershell

Install the following components on your system to connect to your Microsoft Azure subscription using PowerShell: Microsoft Online Service Sign-in Assistant for IT Professionals RTW Select the appropriate version of your OS Azure Active Directory Module for Windows PowerShell (64-bit version) The 32-bit version is discontinued by October 20, 2014. You must be a tenant administrator […]

Read More »

Enable IMAP on all Exchange 2013/2016 Servers

IMAP and POP3 are disabled on Exchange Server 2013 and 2016 servers by default. Chances are if you need to enable it, you’ll need to enable it on all your servers at once. Fortunately, PowerShell makes this easy! Run Exchange Management Shell as administrator on an Exchange server and execute the following: PowerShell Script to […]

Read More »

How to reset pswds for AD user acct via PowerShell

Open PowerShell in admin mode and enter the following: Make sure to have a .csv file with a column name of “Username” and “Password”     Import-Module ActiveDirectory  $UserPwds = Import-CSV C:\users\msgeek\desktop\Users.CSV  ForEach($User in $UserPwds)  {        Set-adaccountpassword $User.UserName -reset -newpassword (Convertto-Securestring -asplaintext $($User.Password) -force)  }     

Read More »

PowerShell – Setting Permissions for Office 365 using Powershell to user another users Mailbox

To configure a user to view another users mailbox, follow these steps:   1) This step will show you what your execution policy is on your computer. Depending on what execution policy you have will determine what scripts you can run. Theresfore, it is important that you do this step before starting so that you are sure […]

Read More »

PowerShell – How to Add and Remove Calendar and Contacts permission’s for Office 365 User’s via PowerShell

How to add, and remove, contacts and calendars permissions for users of Office 365 by using PowerShell. This can be useful should you have trouble trying to add permissions over Outlook. The first you need to connect to the Office 365 Exchange Powershell, open a Powershell session and enter these commands, providing your Office 365 admin account details […]

Read More »

Export List of Users from AD and all Proxy Addresses

If you need a list of users and their respective proxy addresses then the command below will do this 🙂   Get-ADUser –Filter * –Properties proxyaddresses | Select-Object Name, @{L = “ProxyAddresses”; E = { $_.ProxyAddresses -join “;”}} | Export-Csv –Path c:\temp\proxyaddresses.csv –NoTypeInformation

Read More »

FashionBuzz © 2015 | All Rights Reserved Theme by Flythemes