• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Stephanos Constantinou Blog

PowerShell Scripting

  • Home
  • Blogs
    • PowerShell Tutorials
    • PowerShell Scripts
    • PowerShell Modules
      • Modules Cmdlets
    • Software Reviews
  • About
  • Contact
You are here: Home / Blogs

Email error variable PowerShell

05/01/2018 by Stephanos 12 Comments

Send Email using PowerShell

Email error variable PowerShell Scenario: Email error variable PowerShell. I run a lot of scripts on a schedule basis and I had to check manually of the scripts run successfully. Sometimes a  problem in the configuration of a user or group may result in an error while the script is ...

Read More

Filed Under: PowerShell Scripts Tagged With: Arithmetic Operators, Comparison Operators, ConvertTo-SecureString, Get-Content, Get-Date, Microsoft Office 365, New-Object, Send-MailMessage

Find users with password never expire using PowerShell

04/01/2018 by Stephanos Leave a Comment

Find users with password never expire using PowerShell

Find users with password never expire using PowerShell Scenario: Find users with password never expire using PowerShell. Some companies have policy that user should always change their password on a specified interval. If there are multiple locations with local IT Administrators on each ...

Read More

Filed Under: PowerShell Scripts Tagged With: Arithmetic Operators, Comparison Operators, ConvertTo-SecureString, Get-ADOrganizationalUnit, Get-ADUser, Get-Content, Import-Module, Microsoft Office 365, New-Object, PowerShell ForEach, PowerShell If, PowerShell Operators, Send-MailMessage

Send Email using PowerShell

03/01/2018 by Stephanos 10 Comments

Send Email using PowerShell

Send Email using PowerShell Scenario: Send Email using PowerShell. I use a lot of scripts on a schedule basis either to perform changes in Active Directory, Microsoft Exchange OnPremise and Exchange Online. I had to get report on what changes have been done by the script, if there are any, ...

Read More

Filed Under: PowerShell Scripts Tagged With: Arithmetic Operators, Comparison Operators, ConvertTo-SecureString, Get-Content, Get-Date, Microsoft Office 365, New-Object, PowerShell If, PowerShell Operators, Send-MailMessage

Encrypt password with key using PowerShell

28/12/2017 by Stephanos 9 Comments

Encrypt password with key using PowerShell

Encrypt password with key using PowerShell Scenario: Encrypt password with key using PowerShell. One major issue that I had to overcome, was to hide the password for the scripts that I will use them on schedule and there will be no need to include it as clear text. Using the below I was ...

Read More

Filed Under: PowerShell Scripts Tagged With: ConvertFrom-SecureString, Out-File, Read-Host

Change permissions on multiple folders using PowerShell

22/12/2017 by Stephanos 2 Comments

Change permissions on multiple folders using PowerShell

Change permissions on multiple folders using PowerShell Scenario: Change permissions on multiple folders using PowerShell. I needed to add permissions to a specific group of users on all folders under a specific directory. The problem that I had to overcome was that the inheritance was ...

Read More

Filed Under: PowerShell Scripts Tagged With: Comparison Operators, Get-Acl, Get-ChildItem, New-Object, PowerShell ForEach, Set-Acl

Counting in Microsoft Exchange using PowerShell

21/12/2017 by Stephanos 1 Comment

Counting in Microsoft Exchange using PowerShell

Counting in Microsoft Exchange using PowerShell Scenario: Counting in Microsoft Exchange using PowerShell. Get the number of the below in Microsoft Exchange: Number of mailboxes in Microsoft Exchange and separate them by UserMailbox, SharedMailbox and RoomMailboxNumber of contacts in ...

Read More

Filed Under: PowerShell Scripts Tagged With: Get-Contact, Get-DistributionGroup, Get-Mailbox, Get-MailContact, Import-PSSession, Microsoft Office 365, New-PSSession, Write-Host

Counting objects in Active Directory using PowerShell

21/12/2017 by Stephanos 2 Comments

Counting objects in Active Directory using PowerShell

Counting objects in Active Directory using PowerShell Scenario: The below basic script will deal only with counting objects in Active Directory using PowerShell. The commands in the script are able to perform the below. Get instant information about the below: Number of user objects in ...

Read More

Filed Under: PowerShell Scripts Tagged With: Comparison Operators, Get-ADComputer, Get-ADGroup, Get-ADUser, PowerShell Operators, Write-Host

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 12
  • Go to page 13
  • Go to page 14

Footer

Recent Posts

  • ICS Cube Product Review 26/04/2019
  • PowerShell Module SysInfo v1.2.0 15/03/2019
  • PowerShell Module SysInfo v1.1.2 13/11/2018
  • PowerShell Module SysInfo 24/10/2018
  • Get-VoltageProbe 24/10/2018
  • Get-VideoController 24/10/2018
  • Get-USBController 24/10/2018
  • Get-TrackPoint 24/10/2018
  • Get-TrackBall 24/10/2018
  • Get-TouchScreen 24/10/2018
Planet PowerShell

Categories

  • Modules Cmdlets (57)
  • PowerShell Modules (5)
  • PowerShell Scripts (38)
  • PowerShell Tutorials (35)
  • Software Reviews (2)

Archives

  • April 2019 (1)
  • March 2019 (1)
  • November 2018 (1)
  • October 2018 (56)
  • September 2018 (13)
  • August 2018 (9)
  • July 2018 (6)
  • June 2018 (8)
  • May 2018 (7)
  • April 2018 (9)
  • March 2018 (4)
  • February 2018 (6)
  • January 2018 (12)
  • December 2017 (4)
Top 10 PowerShell 2018

Blogroll

  • Planet PowerShell
  • Reddit – PowerShell
  • PowerShell Magazine
  • PowerShell.org
  • PowerShell Team Blog
  • Hey, Scripting Guy! Blog
  • Mike F Robbins
  • PowerShell Explained with Kevin Marquette
  • Mike Kanakos – Network Admin
  • The Lonely Administrator
  • AskME4Tech
PowerShell Blogs Sysadmin Blogs Banners for Top 20 Programming Blogs

© 2023 · Stephanos Constantinou Blog

  • Home
  • Blogs
  • About
  • Contact