categories

PowerShell

182 entries

Tags
Categories

20 entries

Office 365 – Using Import-PSSession from separate module

Office 365 – Using Import-PSSession from separate module

Recently I’ve been working on a little code allowing me to connect to Office 365. It’s not a really big deal,…

import-pssessionoffice 365powershell
Out-HtmlView – HTML alternative to Out-GridView

Out-HtmlView – HTML alternative to Out-GridView

One of the most comfortable output’s in PowerShell to work and analyze data is Out-GridView. It’s handy as you can search, sort and have th…

cross-platformpowershellpowershell 6powershell 7powershell core
Outlook – The primary account cannot be removed unless it is the only account in the profile

Outlook – The primary account cannot be removed unless it is the only account in the profile

Last few months I’m responsible for the migration of Office 365 to Office 365. While doing so, we came into a situation where users have th…

errorexchangeoutlookwindows
PowerBGInfo – PowerShell alternative to Sysinternals BGInfo

PowerBGInfo – PowerShell alternative to Sysinternals BGInfo

When I created ImagePlayground, I thought about how to show its usefulness to the general community. On how to deliver what PowerShell can…

bginfodesktop managermodulepowerbginfopowershellwallpaper
PowerShell Core – The type initializer for Gdip threw an exception.

PowerShell Core – The type initializer for Gdip threw an exception.

While working on PSWriteExcel on Ubuntu / Mac OS I’ve noticed that my -AutoFit method for ConvertTo-Excel was crashing. I couldn’t…

powershellpowershell coreubuntu
PowerShell modules I worked on in 2018

PowerShell modules I worked on in 2018

We’re a few days in 2019, and from a time perspective, I can say I had a busy 2018. I must say I’ve never expected that but in 2018 I’ve cr…

modulepowershellgallerywindows
PowerShell Modules I worked on in 2019

PowerShell Modules I worked on in 2019

It’s year 2020 and 365 days passed since my last year blog post about PowerShell modules I worked on in 2018. I thought it would be a good…

office 365powershellpowershell modulessummary
PowerShell way to get all information about Office 365 Service Health

PowerShell way to get all information about Office 365 Service Health

Office 365 is an excellent cloud service. But like any service, there’s some infrastructure behind it that has to be cared for. Since this…

healthoffice 365powershellpswindocumentation
Powershell – Change DNS IP Addresses remotely

Powershell – Change DNS IP Addresses remotely

Sometimes you need to update multiple computers with proper DNS settings. Instead of doing this one by one manually you…

dnspowershellwindowswindows servers
PowerShell – Comparing advanced objects

PowerShell – Comparing advanced objects

Two years ago, I wrote a blog post on how you can compare two or more objects visually in PowerShell that works on Windows, Linux, or macOS…

comparehtmlpowershellpssharedgoodspswritehtml
PowerShell – Converting advanced object to flat object

PowerShell – Converting advanced object to flat object

PowerShell language allows you to work and build complicated objects. There are multiple ways to save them, such as XML or JSON, but someti…

convertexport-csvoffice 365powershellpswritehtml
PowerShell – Environment Path is missing or overwritten

PowerShell – Environment Path is missing or overwritten

I had a strange issue today when I was doing some development where suddenly my scripts would report inability to…

autoitenvironmentparameterspowershellpsmodulepathvariables
PowerShell – Everything you wanted to know about Event Logs and then some

PowerShell – Everything you wanted to know about Event Logs and then some

If you feel this title is very familiar to you it’s because I actually have stolen the title from Kevin Marquette. I’m in awe of his posts…

event logseventsget-eventlogget-wineventmicrosoft windowwindows
PowerShell – Few tricks about HashTables and Arrays I wish I knew when I started

PowerShell – Few tricks about HashTables and Arrays I wish I knew when I started

I’ve been working with PowerShell for a while now and like with most things I do I’ve learned it by doing and not by reading. I had a job t…

arrayarraylistgenericlisthashtablepowershelltricks
PowerShell – How to check response code from a website

PowerShell – How to check response code from a website

There are times when you need to verify websites availability to be able to tell if it’s up or not….

powershellresponse codesscriptswebsite
PowerShell – How to find users without default quota set on Microsoft Exchange

PowerShell – How to find users without default quota set on Microsoft Exchange

During Exchange 2010 times for one of our Clients some users had special quota set for multiple users that was different…

default quotaecpexchangeexchange 2013exchange 2016mailboxes
PowerShell – How to format Write-Host with multiple colors

PowerShell – How to format Write-Host with multiple colors

When you begin to write PowerShell scripts you usually just want it to do some simple tasks and automations. But…

colorsformattingpowershellscriptingscriptswrite-color
PowerShell – Returning one object from a function as an Array

PowerShell – Returning one object from a function as an Array

Few weeks had passed since I’ve initially written PowerShell – Few tricks about HashTables and Arrays I wish I knew when I started. I was h…

arrayforeachforeach-objectgoot-to-knowpowershell
PowerShell – Single PSM1 file versus multi-file modules

PowerShell – Single PSM1 file versus multi-file modules

I’ve been working with PowerShell Modules for a while now, and most of my knowledge about them came from Warren F (psCookieMonster) blog ab…

powershellps1psm1
PowerShell – Working with Format-Table in Verbose, Debug, Output Streams

PowerShell – Working with Format-Table in Verbose, Debug, Output Streams

As you may know, PowerShell has multiple streams. Write-Output, Write-Error, Write-Warning, Write-Verbose, Write-Debug, and Write-Informati…

powershellwrite-debugwrite-hostwrite-verbose