Posts

Microsoft Lingering Object Liquidator (LoL) "Failed to create event log subscription to target DC".

I am trying to run the Lignering Object Liquidator (LoL) on my Domain Controllers. But some DC's are Server Core and don't have .Net installed. So I have to run it on a DC with a GUI and connect to the DC with server core. But then I found this error message:  "Failed to create event log subscription to target DC". win rmquickonfig reports WinRM is already set up for remote management on this computer. So I tried turning off the firewall altogether:- Set-NetFirewallProfile -Profile Domain,Public,Private - Enabled True And run the LOL again.  That worked! Of course don't forget to turn the firewall back on again immediately afterwards.

Azure Windows Server: the Serial console (SAC) - changing IP address

 If you have a server running in Azure you cant log into anymore. You can use the Serial Console to get into the server. But there are not many commands, espeically if you can't log into a command prompt. I wanted to set the network adapter, as it had lost the Gateway. Here is the command to see the network adapters config: SAC>i Net: 4, Ip=172.22.10.9  Subnet=255.255.255.0  Gateway=0.0.0.0 As you can see, the Gateway has been set to 0.0.0.0 To set a new Gateway, issue the command: i 4 172.22.10.9 255.255.255.0 172.22.10.1 Where the number 4 is the identified for the network adapter. Now I can ping my VM again!

Updates may be available for your Azure AD trust. Update your trust now to ensure you have the latest recommended settings.

Updates may be available for your Azure AD trust.  Update your trust now to ensure you have the latest recommended settings. Don't Panic!

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.