1. Open the email where your email is mentioned in BCC
2. Go to File -> Properties -> Internet headers
3. You can find the BCC entry at the end. Usually it would be X-MS-Exchange-Organization-Recipient-P2-Type:
Bcc
4. Now create a Rule of type "with specific words in message header"
Wednesday, July 1, 2015
Thursday, February 5, 2015
Powershell- Create folders and sub-folders in sharepoint library
The below script creates multiple folders within a document library; Each folder will have one single subfolder within it.
$webUrl
= "http://<siteURL>"
$listName
= "Library_Name"
$numberFoldersToCreate
= 5;
$folderNamePrefix
= "folder";
$web =
Get-SPWeb $webUrl
$list
= $web.Lists[$listName]
$StartDateFolder = get-date
for($i=1;
$i -le $numberFoldersToCreate; $i++)
{
$folder = $list.AddItem("",
[Microsoft.SharePoint.SPFileSystemObjectType]::Folder,
"$folderNamePrefix$i")
$folder.Update()
Write-Output "Folder created "
$folder.Url
# // Creating One subfolder within the folder
$subFolderURL=$list.ParentWebUrl
+"/" + $folder.Url;
#// if your site is a root site collection, then $list.ParentWebUrl will return "/"
#so use the line as $subFolderURL=$list.ParentWebUrl + $folder.Url;
$folder2 = $list.AddItem($subFolderURL,
[Microsoft.SharePoint.SPFileSystemObjectType]::Folder, "Subfolder")
$folder2.Update()
Write-Output "Sub Folder created = "
$folder2.Url
}
$EndDatefolder=get-date
$foldercreationtime=NEW-TIMESPAN –Start
$StartDateFolder –End $EndDatefolder
$f=[string]::Concat("Folder creation time
= " , $foldercreationtime.Hours ,
":" , $foldercreationtime.Minutes,
":" , $foldercreationtime.Seconds )
Write-Output
$f
$web.Dispose()
Sunday, January 18, 2015
ULS viewer is showing blank data when we use RealTime option
If your ULS viewer (download from here ) shows blank data when you use "RealTime" as below
then try the following.
Option #1: Clear everything from logs folder
1. Go to Services.msc
2. Stop the "Sharepoint Tracing Service"
3. Navigate to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS and clear everything.
4. Start the "Sharepoint Tracing Service"
5. Try to open ULSViewer and check for real-time logs
In case, if you still face the issue, try the next option
Option #2 : Change the default location of ULS log
1. Go to Central admin site
2. Got to Monitoring -> Configure Diagnostic logging
3. Change the "Trace Log Path" to any folder, say C:\ULSLogs
4. Try to open ULSViewer and check for real-time logs
Hope it helps !!
then try the following.
Option #1: Clear everything from logs folder
1. Go to Services.msc
2. Stop the "Sharepoint Tracing Service"
3. Navigate to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS and clear everything.
4. Start the "Sharepoint Tracing Service"
5. Try to open ULSViewer and check for real-time logs
In case, if you still face the issue, try the next option
Option #2 : Change the default location of ULS log
1. Go to Central admin site
2. Got to Monitoring -> Configure Diagnostic logging
3. Change the "Trace Log Path" to any folder, say C:\ULSLogs
4. Try to open ULSViewer and check for real-time logs
Hope it helps !!
Subscribe to:
Posts (Atom)