Skip to content
SteveHardie.com Logo
Steve Hardie
Its Me. Online.
  • Home
  • About
  • Categories
    • Aviation
    • How To
    • Microsoft
    • Programming

Category: Powershell

Intune: Use Powershell to Syncronise all Intune Managed Devices

October 31, 2020 Steve Hardie

Use PowerShell and Microsoft Graph to forcefully synchronise all Intune managed devices.

Continue Reading →

Posted in: Intune, Powershell

Powershell: Delete Folder if Exists

April 27, 2013 Steve Hardie 1 Comment

Powershell script to delete a folder or directory if it exists: $strFolderName=”c:\temp\” If (Test-Path $strFolderName){ Remove-Item $strFolderName } See Also:…

Continue Reading →

Posted in: Powershell Filed under: power shell

Powershell: Check If File Exists

April 26, 2013 Steve Hardie 8 Comments

Powershell script to check if a file exists $strFileName=”c:\filename.txt” If (Test-Path $strFileName){ # // File exists }Else{ # // File…

Continue Reading →

Posted in: Powershell Filed under: power shell

Powershell: Delete File if Exists

September 25, 2012 Steve Hardie 6 Comments

Powershell script to delete a file if it already exists: If (Test-Path $strFileName){ Remove-Item $strFileName } See Also: Powershell: Check…

Continue Reading →

Posted in: Featured Articles, Powershell Filed under: power shell

Exchange 2010: Set Work Hours for Room Mailbox

August 16, 2012 Steve Hardie 2 Comments

In Exchange 2010, when you create a room or resource mailbox, the Resource Policy tab gives you the option to…

Continue Reading →

Posted in: Exchange, Powershell Filed under: exchange, microsoft, power shell

Exchange 2010: Remove disconnected mailbox

June 26, 2012 Steve Hardie

After you delete a user from Acrive directory or Exchagne their mailbox is kept in the Exchange database for a…

Continue Reading →

Posted in: Exchange, Powershell Filed under: exchange, power shell

Exchange 2010: Register custom functions in console

Steve Hardie

If you have defined custom functions in a .ps1 file, to register them in Exchange Command Shell all you need…

Continue Reading →

Posted in: Exchange, Powershell Filed under: exchange, power shell

Exchange 2010: Purge Dumpster

May 23, 2012 Steve Hardie 5 Comments

This article outlines how to force empty the deleted items / recoverable items dumpster in a users mailbox. To view…

Continue Reading →

Posted in: Exchange, Powershell Filed under: exchange, microsoft, power shell

Exchange 2010: The Term “Search-Mailbox” Is Not Recognized as the Name of a cmdlet

Steve Hardie 7 Comments

Problem: When using Powershell to run the Search-Mailbox command the following error is generated: Search-Mailbox” Command in Powershell: The Term…

Continue Reading →

Posted in: Exchange, Powershell Filed under: exchange, microsoft, power shell

Exchange 2010: View available space in database

May 22, 2012 Steve Hardie

To view how much database white space you have on your databases run the following cmdlet: Get-MailboxDatabase -Status | Sort-Object…

Continue Reading →

Posted in: Exchange, Powershell Filed under: exchange, microsoft, power shell

Post navigation

Page 1 of 2
1 2 Next →

Search

Categories

  • .NET
  • Aviation
  • Cisco
  • Cyber Security
  • Data
  • Exchange
  • Featured Articles
  • How To
  • Intune
  • JavaScript
  • Microsoft
  • Other
  • Powershell
  • Programming
  • Uncategorized

Tags

.NET Access Active Directory Asterisk Aviation Certificate Cisco Cyber Security Data Database E-Mail exchange File Size GoDaddy How To IGEL Intune JavaScript jquery Little Bay microsoft Milroy Ave MSSQL Network Novell Office Outlook power shell SBS 2011 server 2008 SQL SSL T-SQL Thin Client troubleshoot Troubleshooting ts VB.NET VFR Flight Video VPN win 7 windows win xp Workstation
Copyright © 2026 Steve Hardie