Posts

This Powsershell will set every OneDrive for Business quota to the minimum set below

# This Powsershell will set every OneDrive for Business quota to the minimum set below. # Quota's that are above the minimum are not changed. # Richard Artes January 2010 # # Set the location of the Log file here:  $LogFile = "c:\temp\quotaSetMinList.txt" # Set the new minimum GB quota here:  $minQuota = 100  $newQuotaMB= $minQuota * 1024 #Your Sharepoint/OneDrive URL goes here:  Connect-SPOService -Url "https://xxxxxxxxxxxxxxxxxxxxx.sharepoint.com/"  $oneDriveSites = Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/'"  $oneDriveSites | ForEach-Object {  $site = $_  $strUserDetails = Get-SPOSite –Identity $site  # If you want to see what every site's quota is before changes, uncomment this:  #Out-File -FilePath $LogFile -InputObject $strUserDetails -Encoding UTF8 -append $QuotaGB = ($strUserDetails.StorageQuota / 1024) If($QuotaGB -lt $minQuota) { Out-File ...

Restore a deleted OneDrive for Business account from Office365: "A site collection with the same Site Id or Path already exists."

If a user has left, their license gets removed and their OneDrive for Business account gets automatically deleted for a period of 93 days. If you try and restore a user, and un-delete their OneDrive, you run into a problem as restoring the account atomically creates a new empty OneDrive. Restoring gets you this error:- Restore-SPODeletedSite : A site collection with the same Site Id or Path already exists. You have to permanently delete the new empty OneDrive account, then restore then old deleted one back:- To delete permanently the newly created (empty) site:- Remove-SPOSite -Identity https://xxxxxx-my.sharepoint.com/personal/xxxxxxxxx To restore the automatically deleted (full) site:- Restore-SPODeletedSite -Identity https://xxxxxx-my.sharepoint.com/personal/xxxxxxxxx

IP address registered for server is wrong

Our server has several network cards. If you ping the server name, you get the wrong IP address (instead of the management IP you get the IP address of the internet facing address, which is not routed internally). First, I removed the "register this connection's address in DNS" option in the network card, and ipconfig /register DNS. This worked for 1 day, but after 1 day the old IP address came back again. Fix: In DHCP, make a reservation for the address lease. In properties, remove the tickbox "Enable DNS Dynamic updates".  Problem solved!

Cannot purge deleted mailbox Office 365

Problem. User left last year, account was disabled and Office 365 mailbox deleted. She comes back 1 year later, her A.D account is enabled and moved to the correct O.U. But….. a new mailbox cannot be created for in O365: error in creating a mailbox. Her old mailbox is still in the “deleted mailboxes” in Exchange Admin Center. Cannot delete the old mailbox. Error: The user mailbox couldn't be permanently deleted. The user mailbox has at least one type of hold or hold policy applied to it. Please remove the holds before trying to delete. LitigationHoldEnabled: true, ComplianceTagHoldApplied: false, Solution. ·          -  Set-Mailbox xxxx@contoso.com -LitigationHoldEnabled $false -InactiveMailbox ·          -  Remove-Mailbox -Identity "xxxx@contoso.com" -PermanentlyDelete -Confirm:$True After that the old mailbox is permanently removed. Re-create the license and let O365 create a new mailbox.

A.D. Group Policy "Delete user profiles older than a specified number days on system restart ” not working

Group policy for deleting old user profiles not working in Windows. We implemented the Active Directory Group Policy: “Delete user profiles older than a specified number days on system restart ” to clear old profiles older than 30 days from the PC. Unfortunately it doesn’t work, nothing gets deleted. I tracked this down to the setting it looks at for each profile: the “LastUseTime”. Something was changing the LastUseTime in NTUSER.DAT to today’s date for every user on the computer. Could be something in Windows or maybe our antivirus. Anyhow, it stopped the policy from working. You can check this with the PowerShell script: Get-WMIObject -class Win32_UserProfile | Where {(!$_.Special) -and ($_.ConvertToDateTime($_.LastUseTime) -lt (Get-Date).AddDays(-30))} (Thanks to Charlie Smith on Spiceworks for this) https://community.spiceworks.com/how_to/124316-delete-user-profiles-with-powershell Instead, use  the “LastDownloadTime” to check the date of profile download: Get...

Pointless dialog boxes

Image
Wouldn't it be great if programmers would create dialog boxes that actually meant something? And testers would refuse to let a piece of software out before it was tested? And we could give feedback directly to the person who wrote such a terrible dialog box? Whoever wrote this one should be shot. First, it doesn't tell you what software is asking you to choose. Second, a choice of 1 IS NOT A CHOICE!!!!

Security Checklist for busy people

Of course we have all heard the scare stories in the media about passwords being compromised and personal data accessed. Most of these are scare-stories that the media like to jump on for a headline. But there are some simple things you can do to help stop a hacker. And hackers are more common than you might think. If you use the internet for anything personal, just spend a few minutes tightening up your data, it could save you losing something valuable to you – money, photos, etc. The first thing to say is that security is not a 0 or 1, it is not on or off. Security is something that gets tighter according to what you are protecting, and where it is. When people ask “are your systems secure” what they really mean is “can a motivated hacker get in”? This is rather like leaving your bike unlocked. If someone is looking for an unlocked bike, they will steal it. But if no-one in your neighbourhood wants to steal your bike, it is “safe” to leave it outside your front door unlocke...