Center a DIV which uses position Absolute using CSS

All,

The below CSS snippet would make your absolutely positioned DIVs to come up in center.

Continue reading “Center a DIV which uses position Absolute using CSS”

Advertisements

Run Powershell as Admin with another user account

Have you ever wanted to run the Powershell window impersonating another user?

You can easily do that using Shift + R-Click on the Powershell.exe. But this opens up the window in non-admin mode.

So, to combine both impersonation and admin capabilities, use below inside your current PS1 window:

Start-Process powershell.exe -Credential “domain\anotherUser” -NoNewWindow -ArgumentList “Start-Process powershell.exe -Verb runAs”

I do not remember from where I got the above command, but you have it.

Constructing a refiner click for search

Ever wondered if there was a way to have a link which would open up the search page with predefined refiners?

Option 1:

Inside search page, select all the refiners and copy the url and use it. But this is a kind of hard coding.

Option 2:

What if you had to dynamically construct the anchors with search link. This is the article for you.

Original Source here.

Continue reading “Constructing a refiner click for search”

SharePoint REST API – for lists.getAll Items() limited to 100 rows

The limit is due to server-driven paging. It protects against developers inadvertently making a request that returns large result sets.

You can use $top if you really want a large result set to be returned.

Continue reading “SharePoint REST API – for lists.getAll Items() limited to 100 rows”

Display Site Usage & Quota Information in SharePoint

View story at Medium.com

This article describes how to display Site Usage & Quota Information in SharePoint using default SharePoint REST Services (SP.UsageInfo object) and a simple JavaScript. Continue reading “Display Site Usage & Quota Information in SharePoint”

Add Organization Browser Web Part In SharePoint Online

What is organization Browser?

This Web part is used to display the company organization chart and the user can easily search for the people within the organization and display the additional information for those people.

By default, providing the organization Browser Web part, it is available under the site collaboration Category Continue reading “Add Organization Browser Web Part In SharePoint Online”