Use -DeleteContent with Search-Mailbox in Exchange 2013
article #936, updated 3301 days ago

Search-Mailbox is a great method in Exchange 2013/365 to do searches, moves, cleanups, etc., but in Exchange 2013 one does have to have special privileges to use -DeleteContent, and they are not built-in. Info is here:

http://blogs.technet.com/b/exchange/archive/2010/03/26/3409621.aspx

Once you set up the permissions, you can delete all of the recoverable email (the emails deleted from Deleted Items still being held):

Search-Mailbox -Identity username -SearchDumpsterOnly -DeleteContent

To set up the permissions, do the below:

New-RoleGroup -Name "Exchange Mailbox Import Export" -Roles "Mailbox Import Export" -Members "<domain\groupname>" -DisplayName "Exchange Mailbox Import Export" -Description "This group will provide access to mailbox import and export cmdlets within entire Exchange Organization."

New-RoleGroup -Name "Exchange Support Diagnostics" -Roles "Support Diagnostics" -Members "<domain\groupname>" -DisplayName "Exchange Support Diagnostics" -Description "This group will provide access to support diagnostics cmdlets within entire Exchange Organization."

Categories:      

==============

A great new web discussion platform: Discourse
article #940, updated 3311 days ago

Just saw this. Looks very good, though haven’t built one yet. If I ever move to a Docker-based platform, will probably use it!

https://www.discourse.org/faq/

Categories:      

==============

Write an ISO to USB stick using 'dd' in Linux
article #942, updated 3311 days ago

A great command in Linux is:

dd bs=4M if=file.iso of=/dev/sd<letter> status=progress && sync

where <letter> is the letter for your flash drive. Do be careful finding it, because your hard drive(s) and CD/DVD drive(s) are also among these; you can get the list with ls /dev/sd*, and also all mounted drives can be listed with mount.

Also, it does have to be run as root, so sudo as a prefix may be very helpful.

Categories:      

==============

Secondary email addresses with LAN-synched EOL
article #941, updated 3312 days ago

If one has one’s LAN Active Directory synchronized with EOL/Azure, one cannot add secondary email addresses in the EOL console. In this situation:

  1. Open ADSIedit from the domain controller
  2. Open up the OU containing the user
  3. Open the Properties of the user
  4. Open the Properties for the item “proxyAddresses”.
  5. The primary (the “reply”) email address for the user needs to be specified thus, with caps in the prefix:
    SMTP:user@domain.xyz
  6. Secondary email addresses for the user need to be specified thus, with lowercase prefix:
    smtp:alias@domain.xyz
  7. Then run the sync or wait for the automatic run, and it’s done!

Also, as a bonus, after the above is done once, user objects in Active Directory Users and Computers get a new tab, “Attributes”, from which the above can be done for other users.

Categories:      

==============

Disable WSUS in SBS 2011
article #910, updated 3321 days ago

Completion of these steps will free up a lot of resources on an SBS. You will need to have a different method (e.g., Labtech, many others) to keep client machines up to date.

  1. Run (install first if not present) the SQL Server Management Studio.
  2. Connect the Studio, to type Database Engine, server name \\.\pipe\mssql$microsoft##ssee\sql\query
  3. In the Studio, under Databases, you will find an item “SUSDB”.
  4. If you don’t know where the database files are held, find them using the properties of that item.
  5. Run an SQL query to get a list of connections: EXEC sp_who2
  6. Run SQL query/ies to kill all connections to DBName SUSDB only, using the SPIDs, e.g., KILL 999
  7. Right-click SUSDB, “Delete” SUSDB, and close the Studio.
  8. Delete the database files and all of the update files.
  9. Disable the WSUS-related items in services.msc and IIS.

The above is digested from the following:

https://social.technet.microsoft.com/Forums/en-US/d7f5d5bb-6623-4d46-80e6-421674a46829/remove-wsus-from-sbs2011-server?forum=smallbusinessserver

http://blog.mpecsinc.ca/2011/07/sbs-2011-wsus-sql-memory-usage-is-very.html

Categories:      

==============

Fix Microsoft's Windows 10 upgrade hacks
article #938, updated 3328 days ago

Microsoft is pushing all of its favorite customers very hard to upgrade to Windows 10, to the point that many are hurting themselves accidentally. Here we have a tool which eliminates the problem:

https://www.grc.com/never10.htm

Categories:      

==============

Exchange Mailbox Size Report
article #937, updated 3334 days ago

Here’s a great way to get one:

https://github.com/cunninghamp/Get-MailboxReport.ps1

Categories:      

==============

Script/Macro capability won't enable in VBA
article #934, updated 3336 days ago

If all of your settings are correct but you still get the popup saying that macros are disabled, your OTM file — the VBA project file — is corrupt. In the case of Outlook:

  1. Export your modules to .BAS files
  2. Exit Outlook
  3. Go here in Explorer:
    C:\Users\[user]AppData\Roaming\Microsoft\Outlook
  4. Delete the OTM file
  5. Restart Outlook
  6. Import your exported .BAS files into the new VBA project which it created for you.

Categories:      

==============

SSH login without password
article #356, updated 3337 days ago

Here’s a bash script! Works very nicely. Once run on one side and specifying a destination, one does not need a password to open that SSH link in the future.

#!/bin/bash
echo "setup-autossh by Jonathan E. Brickman, jeb@ponderworthy.com"
if [ $# = 0 ]; then
	read -p "Please enter the SSH destination in the format user@host : " sshdest
elif [ $# = 1 ]; then
	sshdest=$1
else
	echo "Usage: setup-autossh [user@destination]"
	exit 1
fi
if [ ! -f ~/.ssh/id_rsa ]; then
	echo "Creating RSA key for authorization..."
	ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
fi
echo "Copying authorized RSA key to $sshdest ..."
remotecmd="cat > authorized_keys ; mkdir -p .ssh ; cat authorized_keys >> .ssh/authorized_keys ; rm authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh $sshdest $remotecmd

Categories:      

==============

Give all users full delegation to a single Exchange account in PowerShell
article #933, updated 3338 days ago

When a business needs a truly public calendar simply editable by all, it is not clear what best to do in Exchange or especially Exchange Online. Shared mailboxes and room calendars look like they should do it but don’t. One way is to create an ordinary user mailbox and then give all users full delegation rights in Powershell:

Get-Mailbox | foreach-object { Add-MailboxPermission -Identity "Public Calendar" -User $_.SamAcc
ountName -AccessRights FullAccess }

The only catch is that this does require a license.

Categories: