Search This Blog

Saturday, 7 December 2019

Time to get this blog updated

Hi

I have not been active for a long long time.
Looking at some Freelance sites and there is one that requires a portfolio for Consultants.

Yip, IT Consultant that needs a portfolio. Anyway, a blog should be the perfect spot.

Lately, I have been busy with the following technologies. Mostly Architecture and Planning.
very excited about all the possibilities around RPA.

  • SharePoint 2007 (Yes, a client actually still have 2007) 
  • SharePoint 2013
  • SharePoint 2016
  • SharePoint 2019
  • SharePoint Online
  • Nintex 
  • Robotic Process Automation Business Analyses. (RPA)
    • UIPath
    • Automation Anywhere
    • OpenRPA (Investigating)
  • Office365
    • Teams Rollout and Governance
    • Planner
    • PowerBI

    • Flow / Power Automate
    • PowerApps
  • Azure AD
    Anyway, planning to start posting some more content on here if there is anything interisting. (:

Thursday, 17 May 2018

Site Design and Site Script

My notes for creating a template with a Site Design and Site Script
Another good method for creating templates is the PnP Framework

Prerequisites:
Win 10 (Win 7 is suppose to work but i had issues)

SharePoint Management Shell
https://www.microsoft.com/en-us/download/details.aspx?id=35588

Then you need to create a JSON file.
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-json-schema

Open Powershell
Connect to O365
then run:

Get-Content 'C:\Site Design\POCComplexus\POCCom.JSON' -Raw | Add-SPOSiteScript -Title “POC SiteDesign”

When done there will be a ID….Copy that and past in the following command:
Add-SPOSiteDesign -Title “POC SiteDesign” -WebTemplate "64"  -SiteScripts “ed892e28-6b4b-46dc-a2cf-7107d45a1602”  -Description "POC SiteDesign"



The JSON file (At this moment, 2018-05-17) can include:
  • Creating a new list or library (or modifying the default one created with the site)
  • Creating site columns, content types, and configuring other list settings
  • Applying a theme
  • Setting a site logo
  • Adding navigation
  • Triggering a Microsoft Flow
  • Installing a deployed solution from the app catalog
  • Setting regional settings for the site
  • Setting external sharing capability for the site
Full List of supported Actions


Friday, 13 April 2018

Periodic Table for O365

These Periodic Tables can be very handy.
Thanks icanSharePoint

Update: 2018/06/27
Found a site with a brilliant interactive Periodic table:
https://app.jumpto365.com/










Tuesday, 29 November 2016

Stop and Remove Azure Ad Sync users from O365

I had a POC where i configured Azure AD Sync and wanted to remove all the users from O365 and stop the sync.

To get the users removed i did the following:

Uninstalled Azure AD Connect from the AD Server.
Then i installed to apps to connect to O365 Powershell

Install Microsoft Online Services Sign-in Assistant:
http://go.microsoft.com/fwlink/?LinkID=286152

Install the Windows Azure AD Module for Windows PowerShell
http://go.microsoft.com/fwlink/p/?linkid=236297

Once installed open and run:
Connect-MsolService
Somewhere it asks for a password. Type a O365 Global admin password.

Set-MsolDirSyncEnabled -EnableDirSync $false

Once done you can confirm the setting with:
(Get-MSOLCompanyInformation).DirectorySynchronizationEnabled


Now give it some time. 20min or so.
You can go to O365 Users and delete all your synced users.

To enable your AD Sync you can run this command again:
Set-MsolDirSyncEnabled -EnableDirSync $true
Now you will need to give it some more time. Was told 72 hours then it should start Sync again.
Mine took about 4 hours when i noticed the users are back on O365.

Now i opened Powershell on my Onprem AD Server and ran the following:
Start-ADSyncSyncCycle -PolicyType Initial
This will synchronize the objects back from AD to Office 365.


To check if the sync completed you can open "Synchronization Service"

This can give you some more info on your sync.




Thursday, 28 July 2016

"Access Denied" error when a user tries to view the Access Requests list in SharePoint 2010 ,2013

Granting access to user to approve a access request.
This permissions get configured when you create a site. If you edit afterwords your users might not be able to grant this access.


http://rambabuinsharepoint.blogspot.co.za/2014/10/access-denied-error-when-user-tries-to.html

This is a straight copy and paste from Rambabu's site.

To resolve this issue, change the Access Request list permissions. To do this, follow these steps:
  1. As a user who has the Manage Permissions Permission Level on the affected site and who also has access to the Access Requests list (for example, a Site Collection administrator), browse to the Access Requests list in Internet Explorer.
  2. Press F12 to open the F12 developer tools in Internet Explorer.
  3. Click the Network tab in the Developer Tools window, and then press F5 to enable network traffic capturing.
  4. Refresh the Access Requests page in Internet Explorer. After the page has loaded, press Shift+F5 to stop capturing network traffic.
  5. In the Developer Tools window, double-click the first result in the URL list. This URL will end with "pendingreq.aspx."
  6. In the Developer Tools window, click Request body.
  7. In the search box, type pagelistid: and then press Enter.
  8. The search will highlight the pageListId text. Following this text, copy the GUID after pageListId:. The GUID will be inside an opening { brace character and a closing } brace character as follows: {GUID

    Include the opening and closing brace character when you copy the GUID. This GUID is the identifier for the SharePoint Online Access Requests list for your organization.
  9. In the browser address bar, enter https://<URL of affected site or site collection>/_layouts/15/ListEdit.aspx?List=<{GUID}>, and then press Enter.

    Note The <URL of affected site or site collection> placeholder represents the URL for the site collection where you are trying to change the access requests—for example, https://contoso.sharepoint.com. And <{GUID}> represents the GUID that you copied in step 8.
  10. On the Settings page, click Permissions for this list.
  11. Make the necessary changes to the permissions for the list to enable users other than those who are members of the Site Owners group to make changes to the Access Requests list.

Friday, 1 July 2016

IE Crashes when opening sites containing the calendar web part

Had this issue where i access sites and immediately my IE Crashes.

Application Log:
Faulting application name: IEXPLORE.EXE, version: 11.0.9600.18315, time stamp: 0x571ae616
Faulting module name: ucrtbase.DLL, version: 10.0.10586.9, time stamp: 0x5642c5f8
Exception code: 0x40000015
Fault offset: 0x0008469a
Faulting process id: 0x1a80
Faulting application start time: 0x01d1d369b4b31b47
Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\WINDOWS\system32\ucrtbase.DLL
Report Id: fb7462f7-3f5c-11e6-90c9-00a0c6000017

Turns out to be a IE Addin.
Go to your "Manage Add On" in Internet explorer.
Find the "SharePoint Export Database Launcher" Add on and disable it.


Thursday, 12 May 2016

Stop-SPDistributedCacheInstace -Graceful is not graceful!!

Came across this when i posted on a forum regarding appFabric and Nauplius pointed out to me that the command that everyone is using is not truly graceful...

Edit the server name in the script below.
Prob savest if you copy the code from the link provided below.

## Settings you may want to change for your scenario ##
$startTime = Get-Date
$currentTime = $startTime
$elapsedTime = $currentTime - $startTime
$timeOut = 900

try

{

Use-CacheCluster
Get-AFCacheClusterHealth

Write-Host "Shutting down distributed cache host."
$hostInfo = Stop-CacheHost -Graceful -CachePort 22233 -HostName sp2013App.contoso.com

while($elapsedTime.TotalSeconds -le $timeOut-and $hostInfo.Status -ne 'Down')
{
Write-Host "Host Status : [$($hostInfo.Status)]"
Start-Sleep(5)
$currentTime = Get-Date
$elapsedTime = $currentTime - $startTime
#Get-AFCacheClusterHealth
$hostInfo = Get-CacheHost -HostName SP2013app.contoso.com -CachePort 22233
}

Write-Host "Stopping distributed cache host was successful. Updating Service status in SharePoint."
Stop-SPDistributedCacheServiceInstance
Write-Host "To start service, please use Central Administration site."
}
catch [System.Exception]
{
Write-Host "Unable to stop cache host within 15 minutes."
} 

https://technet.microsoft.com/en-us/library/jj219613.aspx?f=255&MSPPError=-2147217396#graceful

Steps when upgrading AppFabric:

  • Do one server at a time.
  • Run Script above on the server before you install the CU. At the moment, CU7 is the latest.
  • I wait 15min, not sure how long it takes to transfer everything to the other server.
  • Run the CU.
  • Edit DistributedCacheserver.exe for Garbage collection feature.
  • Start AppFabric on Central Admin

It is best practice to do it on all the servers running SharePoint if you decide to move app fabric around in the future.