Skip to content

Tag: PowerShell

Search for Disabled Users and Move to Disabled Ou using PowerShell

Search for Disabled Users and Move to Disabled Ou using PowerShell Created this script to search a ‘OU’ for disabled users and move them to a different ou . I have added the ‘WhatIf’ option by default . Once you run the script it will prompt for ‘Search OU’ and ‘Target OU’ .

Leave a Comment

Get all Failed Move-Requests (Exchange 2013)

To quickly get all ‘Failed Move-Requests’ you can run the following one liner.

To Remove all ‘Failed Move-Requests’ you can run the following:  

  #ThatLazyAdmin    

Leave a Comment

Using Active Directory to meet Regulatory Compliances

Using Active Directory to meet Regulatory Compliances   When it comes to meeting compliance, many Administrators settle for simply auditing event logs. By default, Event Viewer records all events that are generated on a Windows Server. However, is simply storing logs an efficient way to meet compliance? Most compliance mandates require a particular report to…

Leave a Comment

Enable Remote Desktop Using PowerShell

Enable Remote Desktop Using PowerShell Open an elevated Windows PowerShell session and run the following commands. This first one creates the fDenyTSConnections value and sets it to 0 (off). This makes sense, because we don’t want to deny Terminal Services (TS) connections.

Set Network Level Authentication for Remote Desktop

Setting Firewall Rules :…

Leave a Comment

Get and Connect a Disconnected Mailbox Using PowerShell

Get and Connect a Disconnected Mailbox Using PowerShell   To quickly find all disconnected Mailboxes in your Exchange environment launch EMC and run the following one liner.

The Results will look as follow: Now that we have the results lets refine the search to find a specific “Disconnected Mailbox”

The Results will look…

Leave a Comment

Exchange 2010 MessageTrackingLog: Failed to write log..Error Access Denied

Exchange 2010 MessageTrackingLog: Error Access Denied Message Tracking in Exchange 2010 Stopped and you received the following Error in EventViewer. “MessageTrackingLogs: Failed to write logs because of the error: Access to the path ‘MSGTRK20170329-8.LOG’ is denied..” Let’s Start by reviewing the Current configuration for Message Tracking.

Now that you have your current configuration lets…

Leave a Comment

Deploy Active Directory Domain Using PowerShell

Deploy Active Directory  Domain using PowerShell Let’s start by Setting the PowerShell Execution Policy to Unrestricted

Next we will rename the server and install Prereq features.

After the script has run successfully the sever will restart , once restarted launch the #PowerShell Console again and run the second script. This will install all…

Leave a Comment

User Account has been Disabled :Exchange 2010 OWA

Exchange 2010 OWA : User Account has been Disabled. After a users account has been disabled for some time and re-enabled , they might be faced with the below error in Outlook and OWA. Outlook Error OWA Error To resolved this issue you can open ‘Exchange PowerShell’ and the the following #OneLiner

  Once…

Leave a Comment