Quantcast
Channel: Powershell – Dom's I.T. Humdrum
Browsing latest articles
Browse All 16 View Live

Exchange 2007 | EMC Powershell

Open “Exchange Management Shell” Shortcut refs to: (C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile “C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1″ -noexit...

View Article


Exchange 2007 | Autodiscover.xml | EMC PowerShell

Want to see where the autodiscover is pointed? Open the exchange command shell and enter: Get-ClientAccessServer -Identity servername | FL

View Article


Forward mail to a Public Folder | EMC PowerShell

This will forward mail to the public folder Set-Mailbox "NAME.SURNAME" -ForwardingAddress "email@domain.com" Set-Mailbox "NAME.SURNAME" -ForwardingAddress "email@domain.com" -DeliverToMailboxAndForward...

View Article

BACKUP!

DO A STANDALONE BACKUP NOW! This is something we all overlook and it makes life so much easier if you have a copy just dumped to a network share! GPO Backup: GPO...

View Article

Exchange 2010 | OWA Blank page (“HTTP 500” error)

Scenario: OWA web address shows login prompt and the user is able to logon, but a blank page or “HTTP 500″ error displays once logged in. The page may also be blank depending on browser settings and if...

View Article


List Domain Users using Script | PowerShell

This is custom made code to output all users listed in Active Directory. This code was rewritten using Powershell in order to make the output more clear and “visually pleasing” Powershell Option...

View Article

Windows Commands | Powershell

A few random PowerShell commands in Windows to help complete tasks: Create New AD User: Displays if “Desktop Experience” is installed: Installs “Desktop Experience” Feature: Remove Windows Patches...

View Article

Windows Server Role via CLI | PowerShell

Windows Dedup CLI

View Article


Windows Server 2016 | Remove WSUS (Completely)

Trying to completely remove WSUS isn’t as straight forward as uninstalling the role. These steps are based on WSUS using the WID database (Not SQL) In Summary: Remove Windows Update Servers (WSUS) role...

View Article


SQL Firewall Rules | PowerShell

Add Windows Firewall exclusions for Microsoft SQL using PowerShell

View Article

VMware ESX 6.0 to 6.5 Upgrade | vSphere CLI commands

I’ve been working on a project to upgrade vCentre from 6.0 to 6.5. This meant that multiple Dell (R530, R630, R730) hosts required an update of ESX (using Update Manager). Unfortunately these upgrades...

View Article

Migrate Folder Shares | PowerShell

Basic objective, we’ve got a ton of shares which we need to move to a new server. The data has already been replicated but we need to re-share. There are methods of doing this by exporting the registry...

View Article

Remove “Windows.old” using Cleanmgr CLI | Windows 10

PowerShell Script for removing the “Windows.old” folder using cleanmgr.exe command line Great post on the syntax of “Cleanmgr.exe”...

View Article


Windows Dedup | Cheat Sheet

Get dedup status: Get dedup status formatted & additional info: Get dedup status for specified volumes: Show Dedup Metadata (How deduplication is being used) on the server: Show Dedup Metadata for...

View Article

Windows | DHCP PowerShell Options (Cheatsheet)

Managing DHCP on DHCP server: Managing DHCP on remote host: Powershell DHCP Module: Get all DHCP servers in AD Get DHCP scope configuration Get DHCP reservations on scope: Import/Export DHCP Scopes...

View Article


Windows | Increase System Partition Size Remotely PS

After increasing a virtual machine VMDK size you need to also resize this partition in Windows. This can be completed remotely using PowerShell. There are various methods to run this but I prefer to...

View Article
Browsing latest articles
Browse All 16 View Live