Kashif Nizam Qureshi

Leave a comment

Import Export Sub Site SharePoint

Use the following to export a subsite.

Export-SPWeb “http://server/sites/ClaimsPortal/SampleOrder/” -Path “E:\Kashif\Site Backup\SampleOrder.cmp” -IncludeVersions All -includeusersecurity

Use the following to import a subsite. If your backup was broken into several files, just use the command to import the main file as shown below.




Import-SPWeb “http://mthqspdev02:11631/sites/ClaimsPortal/SampleOrder/” -Path “C:\SampleOrder.cmp”  -includeusersecurity -UpdateVersions overwrite

Leave a comment

Running Code Without Visual Studio




C:\Windows\Microsoft.NET\Framework\v4.0.30319>csc /out:”C:\Users\kashif.nizam\Go
ogle Drive\Office Work\Documents\_Systems\Muntajat\ConvertToExcel\ConvertToExcel
.exe” “C:\Users\kashif.nizam\Google Drive\Office Work\Documents\_Systems\Muntaja
t\ConvertToExcel\converttoexcel.cs” /r:”C:\Users\kashif.nizam\Google Drive\Offic
e Work\Documents\_Systems\Muntajat\ConvertToExcel\Microsoft.Office.Interop.Excel


Double click on the following file

C:\Users\kashif.nizam\Google Drive\Office work\Documents\_Systems\Muntajat\ConvertToExcel\ConvertToExcel.exe

Leave a comment

Steps to Change Permission Mode of PWA 365

To change the permission mode of Project Online, Please follow the below steps.

Logged in with an Office 365 tenant admin account: Click Admin


Click SharePoint, that will take you to the SharePoint Admin Center:


From this page, select the PWA site collection (Link: https://PWATech.sharepoint.com/sites/pwa/) then click the Settings link under the Project Web App menu as displayed below


This will load the Settings page for the Project Web App site:


Select Project Permission Mode and press OK.

Leave a comment

Setting Project UID and Name in List Item Field

In a PDP we can have a list and clicking on new we would like to save Project UID and Name into list’s item fields. In the following code snippet, ProjUid and Owning Project are two SharePoint List Fields and they are being set by following js code.

<script src="/PWA/SiteAssets/jquery-1.10.2.min.js" type="text/javascript"></script><script type="text/javascript">

$(document).ready(function() {

 var Puid = window.parent.PDP_projUid;
 var project_name = window.parent.PDP_projName; 
 var subjectIDTextField1 = getElementByTitle("input","ProjUid");
 subjectIDTextField1.value = Puid; 
 var subjectIDTextField= getElementByTitle("input","Owning Project");
 subjectIDTextField.value = project_name; 
//Disabling field
 $(":input[title='Owning Project']").attr('disabled','disabled');

//Hiding field
var HidePUID = getElementByTitle("input","ProjUid");

function getElementByTitle(tagName,elementTitle)
	var list = document.getElementsByTagName(tagName);
	var elementTag;
	for (i=0;i!=list.length;i++) {
	if (list[i].title == elementTitle) {
	elementTag = list[i];
	return elementTag;