Tips

Tips SharePoint

Christian Lyck.


Setting up PowerShell ISE for SharePoint 2010

http://www.shillier.com/archive/2010/01/18/setting-up-powershell-ise-for-sharepoint-2010.aspx

     Scot Hillier - rocks


The SPSite, SPWeb can be a little confusing, but here is the deal.

 
Taxonomy
 
Get current page from managed metadata navigation SharePoint 2013
 
TaxonomyNavigationContext tnx = TaxonomyNavigationContext.Current;
               
                 if (tnx.HasFriendlyUrl)
                {
                    TermTitle = tnx.FriendlyUrlTerm.Title.ToString();
                }

Retrieve or Decrypt a Password of an Application Pool in IIS

Right-click Command Prompt and click - Run as Administrator

Run the following %systemroot%\system32\inetsrv\APPCMD list apppool "Site_App_Pool" /text:* or Browse to C:\Windows\System32\inetsrv and run APPCMD list apppool "Site_App_Pool" /text:*
Replace "Site_App_Pool" with the App Pool name of which you want to retrieve the password.
Under the [processModel] section you will get your password which is in Clear text.

Same with PowerShell

Add-WindowsFeature Web-WMI | Format-List

Get-CimInstance -Namespace root/MicrosoftIISv2 -ClassName IIsApplicationPoolSetting -Property Name, WAMUserName, WAMUserPass |
select Name, WAMUserName, WAMUserPass

Hide Site Action / sitesettings   when there is anonymous access

stsadm -o activatefeature -url [siteUrl] -filename ViewFormPagesLockDown\feature.xml










Ingen kommentarer:

Send en kommentar