IT

Recover a SharePoint Online Site

In SharePoint Online, it’s easy to delete an entire site or documents in a site.

Recovering documents is also quite easy, go to the site’s recycle bin which is normally located at https://contoso.sharepoint.com/sites/sitename/_layouts/15/RecycleBin.aspx – replacing ‘contoso’ with your tenant name, and ‘sitename’ with the actual site name. Deleted items can be selected and restored to their original location.

How long are deleted items kept in the Recycle Bin?

In SharePoint Online, the default retention time is 93 days for both site recycle bin (first stage) and site collection recycle bin (second stage). The site recycle bin storage counts against your site collection storage quota and the List View Threshold. The site collection recycle bin retention starts at the same time for both recycle bins when the item is first deleted, so the total maximum retention time is 93 days for both recycle bins. The default amount of space for the site collection is 200% of the site collection quota.”

However, I had some issues when trying to recover an entire site. My top level recycle bin https://contoso.sharepoint.com/_layouts/15/RecycleBin.aspx showed nothing. I’m unsure if there’s another way of viewing deleted sites via the web interface, and gave up after a lot of clicking around and Googling, but it’s easy to do with PowerShell.

After installing the SharePoint Online Management Shell, and connecting to SharePoint Online with the ‘Connect-SPOService‘ cmdlet (and don’t forget to use HTTPS rather than HTTP when connecting to your SharePoint Online instance or you’ll get a rather generic error: connect-sposervice : Could not authenticate to SharePoint Online http://contoso-admin.sharepoint.com/ using OAuth 2.0), you can see what your deleted sites are with this command:

Get-SPODeletedSite

Simple, you’ll then be presented with a list of all sites that are deleted and waiting in the recycle bin along with when they were deleted, and how many days are remaining before they disappear from the recycle bin. Sites deleted seem to sit in that recycle bin for 30 days, rather than site collection items but I couldn’t find any documentation supporting this.

To restore a deleted site, just use the following command with the URL of the site to restore, which you can see from the ‘get’ command above

Restore-SPODeletedSite -identity https://conotos.sharepoint.com/sites/oops

That’s it. Your site is back.

From what I’ve read, there is no way to change the retention values of SharePoint Online recycle bins.

Updating the Country Field in Active Directory

Wanting to have all users to have the country ‘Australia’ in Active Directory, I thought it would be a simple PowerShell command. Get all the users you want and set a field to ‘Australia’. However, it’s more complicated than that.

As you can see from the above, the Country/region field is a dropdown, where you can select the country. If you look in PowerShell using ‘get-aduser username -properties *’, there’s 4 fields that get populated with this setting:

c : AU
co : Australia
Country : AU
countrycode: 36

Trying to just change one of these fields will result in an error such as:

Set-ADUser : A positional parameter cannot be found that accepts argument ‘Au’.
Set-ADUser : A positional parameter cannot be found that accepts argument ‘Australia’.
Set-ADUser : A value for the attribute was not in the acceptable range of values

The answer is that all fields need to be set at the same time. The C and Country fields are based on ISO 3166 codes, with Australia being AU and 36.

The resulting command would end up being:

set-aduser adam.fowler -Replace @{c="AU";co="Australia";countrycode=36}

Of course this can be done on a boarder scale by using ‘get-user’ with a larger scope, and piping that into the set-aduser command:

get-aduser -filter "company -eq 'Contoso'" | foreach {set-aduser $_ -Replace @{c="AU";co="Australia";countrycode=36}}

That’s all that’s required to change the field.

Hide Edge Button from IE11 Tab

A feature that’s popped up in IE11, is the little Edge icon next to the new tab icon. Not something I’d want in the enterprise space:

Thankfully, it’s easy to disable. There’s a group policy policy called “Hide the button (next to the New Tab button) that opens Microsoft Edge” which can be found in User Configuration\Administrative Templates\Windows Components/Internet Explorer\Internet Settings\Advanced Settings\Browsing\ . 

If you can’t see this policy, make sure you have the latest ADMX files from Microsoft – Windows 10 1703. If you haven’t had much to do with adding ADMX files to your environment before – they should be centralised, and Microsoft have a great guide you can follow.

Bonus tip – If you have internal sites that use a single word (e.g. intranet) you can enable the policy “Go to an intranet site for a one-word entry in the Address bar” which will check for an internal site starting with that name before using the word in your default search engine. This one’s actually an old policy that I hadn’t noticed before!

Lenovo Yoga 910 Review

Just over a year ago, I received the Lenovo Yoga 900 laptop to review. Since then, an unfortunate accident occurred when I closed the laptop onto the end of a USB cable, creating a horrible crunching sound and cracking the screen.

Lenovo Australia have come to the rescue and provided me a newer Yoga 910 to review instead! How does it compare to the Yoga 900?

The new boxed Lenovo Yoga 910

For starters, here’s the specs with the red options matching what my laptop has:

Processor
• 7th Gen Intel® Core™ i5-7200U Processor (3 MB Cache, 2.5 GHz, 3.1 GHz max)
• 7th Gen Intel Core i7-7500U Processor (4 MB Cache, 2.7 GHz, 3.5 GHz max)

Operating system Windows 10 Home 64-bit Display
13.9″ FHD (1920 x 1080) IPS
• 13.9″ UHD (3840 x 2160) IPS

Graphics
Intel HD Graphics 620 in processor

Memory
8 / 16 GB DDR4 2133MHz

Webcam
Integrated 720p HD Camera

Storage Solid State Drive (SSD), via PCIe NVME:
256GB / 512 GB / 1TB

Dimensions (W x D x H)
323 x 224.5 x 14.3 mm

Weight
Starting at 1.38 kg

Case colour
• Champagne Gold
• Gunmetal Grey
• Platinum Silver

Case material
Aluminium

Battery life
• FHD model: 15.5 hours

Keyboard
Full-size keyboard, backlight, 6-row, multimedia Fn keys

Touchpad
One-piece multi-touch touchpad

Fingerprint reader
Yes, Hello support

Audio
HD audio, 2 x JBL® stereo speaker with Dolby® Audio Premium certification dual array microphone combo audio/microphone jack

Wireless LAN
11ac, 2×2, Wi-Fi + Bluetooth® 4.1

Ports
• 2 x USB 3.0 (1 x Type-C with video-out, 1 x Type-A)
• 1 x USB 2.0 (support DC-in function)
• Combo audio/microphone jack

Specs on the box

The Yoga 910 is another high end consumer laptop, following in the steps of laptops such as the Yoga 900S, 900, 3 Pro and 2 Pro. It feels very solid, and is slightly heavier than the Yoga 900, probably due to the aluminium chassis. Eric Xu did a great writeup comparing the two which is worth reading if you’re deciding which one to get.

Lenovo Yoga 910 Ready to go

While looking incredibly sleek and professional (especially in this gunmetal grey version, which to me is just black), it is a fingerprint magnet. That’s the price you pay to look this nice it seems. Another point that stands out is the bezel around the screen – very thin on all edges apart fro the bottom. At first this looks a little strange, but I quickly got used to it.

I’m happy with the 1920 x 1080 screen resolution this particular laptop has, and the screen quality itself was high with great viewing angles – so don’t feel that you have to go for the 4K res option unless you really want it.

The watch hinges are back again, and they seem even sturdier than previous models. They allow the laptop to bend all the way around (as all Yogas do), and I didn’t experience any screen wobble at all when typing.

Lenovo Yoga 910 Keyboard and Trackpad

The keyboard buttons are nicely laid out, with full size arrow keys. Home and End require the Fn button, but they’re easy to reach. The trackpad itself is quite large, with the single clicky style rather than being a solid no-click style that’s found on most of the X1 series, such as the X1 Yoga. The backlit keys also work well to see in the dark, and the addition of the fingerprint reader combined with Windows Hello allows for a very quick and effortless login.

Test

Lenovo Yoga 910 Right Side

Lenovo Yoga 910 Left Side

As you can see in the above side shots, there’s very few ports. Power is provided by the new standard USB-C which was also on the X1 Tablet, and will probably be standard on all laptops eventually. Beyond that, there’s one USB-C out and one USB 3.0 port. Of course a USB hub will give you more ports if you need it, or you can look into a USB-C dock that will provide a bunch of connection types. Yes, we still call them ‘docks’ even though we don’t dock them anymore.

The battery life is impressive – 15.5 hours. It’s hard to test and keep track of that time to see how accurate it is. Windows 10 thinks there’s still over 10 hours left on 50% remaining, and I’ve been using it sporadically in the last few days next to me.

Performance wise, there is nothing lacking in what you’d expect from this laptop. High end gaming or running several virtual machines isn’t what this laptop (nor most laptops) can do, but it’ll serve most purposes for years.

The Yoga 910 contains some small benefits and improvements over the Yoga 900 – price being equal, the 910 is the laptop to pick. There’s no reason to upgrade from a 900 to a 910 though, and anything older is a decision you’ll need to make for yourself. If you have a laptop that works for you and isn’t slow, then stick with what you have.

JB Hifi’s display on the flagship Dell, HP and Lenovo consumer laptops

If you’re looking to compare similar laptops, Dell and HP have their own offerings. Dell has the XPS 13 while HP has the Spectre x360. As I haven’t used either, I can’t comment on which I think is better, so check them out for yourself.

For myself, the Yoga 910 will be my new main laptop for personal use. It’s powerful, sleek and really nice to use. I can’t really fault anything about it – maybe more USB ports would be nice but I’m generally only going to use one for a USB memory stick occasionally, so that doesn’t bother me.  While on a recent cruise, the laptop was used in tent mode to watch some movies – the long battery life meant I didn’t need to worry about having it plugged in while watching. Warning: If you do go on a cruise, watch out for those towel animals. They get up to a lot of mischief!

EveryCloud Mailflow Monitor – Free!

Update 9th May 2017:

Worth noting that I received a couple of what I’d consider pushy emails from Manage Protect, beware of this if you decide to sign up.

Original Post:

I get a lot of sales emails asking me to blog about a product, which usually I ignore. However, EveryCloud’s email sounded interesting:

EveryCloud has launched a Free Mail Flow Monitor, that checks an 

organisations Email is flowing 24/7 and alerts users to problems.

Current services like this cost around $30 Per Month ($360 Per Year) Per Domain.

Free for Partner and End Users.

This will be the only free service of it’s kind.

You can watch a video here

You can view the full release here.

This is discussion about Free Mail Flow Monitor in Reddit

Free is a good price, but often these deals are too good to be true. I found their FAQ page to hopefully answer what catch there was:

OK, so it’s actually free, and it makes sense why they’re doing this. It’s simple and light, and alerts you if an email doesn’t go in and out of your organisation that’s sent every 5 minutes.

I decided to test this on my personal Office 365 instance. After signing up, you’re given the instructions on what’s required. The main part is to set up a mail address that forwards emails back to them.

Not wanting to use up an Office 365 license, I found a guide on “How To Forward Office 365 Email Address To External Address Without A Mailbox” which is very simple to do, it’s just setting up a mail user contact that goes to an external email address . As the guide points out, you’ll need to wait hours before it works. For me, I had another step to do as I had a catchall on my domain. I added an exception to the catchall rule for the address set up, waited a bit, and it started working. There’s a nice ‘test’ button that will send an email on demand while you wait, and confirm if the round trip works or not.

Once that’s done, you can then access the dashboard.

Beyond the uptime information, you can also create a policy on how to receive alerts when there’s a mail flow problem – email, sms or call.

I’ll keep this running because it’s free and handy to know when your mail flow breaks (even if it’s something out of your control). As with any free service though, it shouldn’t be the only way to rely on finding out if you’ve got an outage; how do you know if the service is working?

Still, it seems to be a clean and well designed solution to a problem that all email admins face, and I can’t see any downside to using this handy service.

* Monitor picture source
** This is not a sponsored post, I just liked the product.