Hi All, A quick powershell script, that if you update the path (either a network machine/server or local) and specifiy location to copy items, it will copy with a date range, current default is 01/01/2017 – 01/01/2019. Please feel free to copy and update to use accordingly. ################################## # )___/( # # {(@)v(@)} # # […]

Read more

Script I have updated and can send alerts when servers hit below a certain space threshold. Please feel free to copy and edit the variables as needed. Use task scheduler to run daily. [cc lang=”Powershell”] ################################## # )\___/( # # {(@)v(@)} # # {|~~~|} # # {/^^^\} # # `m-m` # ################################## # WiseOwl Scripts […]

Read more

From time to time, I found that when trying to get to windows updates in the GUI via Settings for Server 2016 can hang and be unresponsive. Microsoft have also updated their commands for Server 2016 & Windows 10. Which I have listed below: Example Command: usoclient startscan – Will trigger a scan for available […]

Read more

Prerequisites prior to installing Exchange 2016 Ensure all patching is completed and the CU level has met the requirements (See Requirements for Exchange 2016 if unsure) If you have the media extracted to a location,  lunch Command prompt with Admin rights, and run the following from the Exchange Setup folder location. Setup /PrepareAD /IacceptExchangeServerLicenseterms – […]

Read more

As our base OS is Windows Server 2016, we will need to install ADK For Windows 10. You can Install the ADK Setup via command line using Powershell as per below: .\adksetup.exe /features OptionId.DeploymentTools OptionId.WindowsPreinstallationEnvironment OptionId.UserStateMigrationTool OptionId.ImagingAndConfigurationDesigner /q You can remove /q switch to install using GUI but have feature selection done for you. Alternatively […]

Read more
Exchange 2016 Requirements for Installation

Looking to move away from Exchange 2010/2013 to 2016 here is what required to get started. Requirements: Operating System for Exchange 2016: Windows Server 2016 Standard or Datacenter* Windows Server 2012 R2 Standard or Datacenter Windows Server 2012 Standard or Datacenter. Caution: When installing Exchange 2016, ensure the DVD Drive is on E:\ and not […]

Read more

List all Local Accounts on a Server Copy the following Below into text pad and save as a .ps1, run script accordingly. Update network path if required. Echo “Input computer name: ” $Computer = Read-Host $Credential = Get-Credential Get-WmiObject -Class Win32_UserAccount -Filter  “LocalAccount=’True’” | Select PSComputername, Name, Status, Disabled, AccountType, Lockout, PasswordRequired, PasswordChangeable, SID | […]

Read more

Disabled Users with LastLogOnDate and OU Structure Copy the Script below it will produce an output file with the results where you have ran the script, you can add a network path if preferred. Script will show Disabled accounts with Last login Date and location of the account. Echo “Input computer name: ” $Computer = […]

Read more

Very small and basic script that pulls last logon times. Copy the code and save as a .ps1 “Get-ADUser -Filter * -Properties * | Select-Object Name, @{Name=”Last Successful Logon”;Expression={[datetime]::FromFileTime($_.’lastLogonTimeStamp’)}} | Sort-Object “Last Successful Logon””  

Read more

Installing The Prerequisites Run Powershell with Admin Permissions and run the following Commands, this will lay down the foundation for the Server and SCCM to be Installed. Get-Module ServerManager Install-WindowsFeature Web-Windows-Auth Install-WindowsFeature Web-ISAPI-Ext Install-WindowsFeature Web-Metabase Install-WindowsFeature Web-WMI Install-WindowsFeature BITS Install-WindowsFeature RDC Install-WindowsFeature NET-Framework-Features -source \\servername\source\sxs Install-WindowsFeature Web-Asp-Net Install-WindowsFeature Web-Asp-Net45 Install-WindowsFeature NET-HTTP-Activation Install-WindowsFeature NET-WCF-HTTP-Activation45

Read more