Azure custom reporting

My team had a few Azure projects in the past couple of weeks and as for every good project, we had to create a documentation. This gave me an opportunity to write a script (ended as a function) that we could use in the future. Let’s see what we get out-of-the-box. If we run “Get-AzureRMVM”…

Read More

SharePoint migration

This was my first SharePoint migration – from On-Premise to O365. You can, of course, use SharePoint Migration Tool but I decided to find out how to do it with PowerShell 🙂 This task consist of 2 parts: # SharePoint 2013 Management Shell side (On-Premise) Export-SPWeb -Identity “https://SHAREPOINT_SITE_ROOT” -ItemUrl “SITE/LIST/LIBRARY_2Export” -Path c:\migration\export.cmp -NoFileCompression # SharePoint Online Management Shell side…

Read More

Migrating Exchange to O365 – Small headaches

I have done a couple of those in the past for different clients – from just a few users to a couple of hundreds of users. My team already has the best practice workbook and we don’t have issues in the process. This weekend I managed to have two different problems with one customer o.O First issue –…

Read More

PowerShell connecting to O365 services

This one is more a reminder for my self, but may come in handy for you too 🙂 When you want to manage O365 subscription with Powershell you first need to login to it: Connect-MsolService This command will open a new window for you to sign in to your subscription: After logging, you may execute…

Read More

AD heavy changes – Powershell 2 the rescue

Recently I have been assigned a task to populate/change AD users attribute called ProxyAddresses. Generally, that’s not so hard – a few clicks and a bit of writing. But this time, it had to be done for a couple of hundreds of users. It was time to spend some time and create a PowerShell script that…

Read More

How to create custom name self signed certificate using PowerShell

Hello, Few days ago, one of my clients start with implementation of ASP.NET application in three different environment (Dev, QA and Prod). Their request was pretty same as usual, except one condition. They want self-signed SSL certificate on IIS server with custom name for each application. I said “OK”, but when I tried to create…

Read More

How to install PowerShell v4

Hello everyone, long time no see 🙂 Today, I’ll give quick tutorial how to install PowerShell version 4. By default PowerShell version 2 is available in 2008 R2 & Windows 7, and there are many reasons to upgrade PowerShell to version 4. The process is simple and shouldn’t take you a lot of time. But,…

Read More

Auto-confirm deleting files in Powershell

Have you ever tried to remove a bulk of files from Powershell with command Get-ChildItem “Path” -Recurse | Remove-Item, but you received message: Get-ChildItem E:\Test -Recurse | Remove-Item The item at Microsoft.PowerShell.Core\FileSystem::E:\Test\001 has children and the Recurse parameter was not specified If you continue, all children will be removed with the item. Are you sure you want…

Read More