1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #Get the office 365 credential $AzureAdCred = Get-Credential Connect-MsolService -Credential $AzureAdCred Connect-AzureAD -Credential $AzureAdCred # Below powershell command is used to set the PasswordNeverExpires to True. Set-MsolUser -UserPrincipalName sanjiv@softpoc.com -PasswordNeverExpires $true # Below powershell command is used to Get the PasswordNeverExpires status for individual user. Get-AzureADUser -ObjectId sanjiv@softpoc.com | Select-Object UserprincipalName,@{ N="PasswordNeverExpires";E={$_.PasswordPolicies -contains "DisablePasswordExpiration"} } |
Tuesday, May 21, 2019
Office 365 Password never expire change for Single user
Thursday, May 9, 2019
Get SharePoint Online all site collection details using power shell
# If you find error related with Connect-SPOService . You need to download and install the SharePoint Online Management Shell : DOWNLOAD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 $SPOModulePath = 'C:\Program Files\SharePoint Online Management Shell\' $adminUPN = 'Admin.User@softPOC.com' $orgName = 'SOFTPOC' $userCredential = Get-Credential -UserName $adminUPN $Env:PSModulePath = '{0};{1}' -f $Env:PSModulePath, $SPOModulePath Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking $uri = "https://$orgName-admin.sharepoint.com" Connect-SPOService -Url $uri -Credential $userCredential $sites = Get-SPOSite -Limit All $sites | select url,owner # Create a folder with name Temp in C:\ drive $CSVpath = "C:\Temp\SharePoint-SiteCollection-Report-New.csv" $sites | Export-CSV -Path $CSVpath -Append -NoTypeInformation
Saturday, December 8, 2018
rewrite_2.0_rtw_x64.msi Skype for business 2015 installation error on Windows server 2016
While installing Skype for business 2015 on windows server 2016 throws
Prerequisite installation failed: RewriteModule error.
Resolution : open registry file start-> Run -> Regedit -> search for InetStpComputer\HKLM\Software\Microsoft\InetStp
change the Reg_DWORD "Major version" value from 10 to 7 , This is a bug of Skype for business where rewrite_2.0_rtw_x64.msi installation is looking for IIS7 , As Windows 2016 server has IIS 10 , This throws an error.
Once the Skype installation gets done change the Reg_DWORD vaue back to 10
Thursday, October 4, 2018
Friday, September 21, 2018
How to host multiple subdomain sharepoint website under Godaddy
Scenario : I do have multiple wild card sharepoint sites need to be hosted under single domain ,
in my case i have domain name "SoftPOC.com"
1) SoftPOC.com is a static company site and hosted under different domain hosting provider freehostia.com.
x
x
2) I need to host a sharePoint site my.softpoc.com , sg.softpoc.com , I have added a "A" record and pointed this to my Loadbalncer IP or my Static IP of the sharepoint WFE azure server.
Wednesday, July 25, 2018
Change SP2016 WFE as WFE with Distributed cache (2 WFE +1SQL +1 Search)
I have 2 WFE and 1SQL and 1 Search server in single farm, As per the requirement both the WFE now needs to change the role from WFE to WFE+Distributed cache.
1) Run the below command in both the WFE
Add-SPDistributedCacheServiceInstance -Role WebFrontEndWithDistributedCache
2) Wait for few minutes and go to
go to CA -> System
Settings > Convert
server role in this farm
Select the role under New Role drop down and change this to
Front end with Distributed cache, Click Apply .
3)V erify that the Distributed Cache service is started. To do this, in the SharePoint Central Administration website, click Application Management. In the Service Applications section, click Manage services on server.
Search Service configuration to Single server under (2 WFE+1 SQL+1Search)
Run the below commands to SP 2016 Search server
$App1 = "MCMYPSPA01"
$SearchAppPoolName = "SharePoint Search Application pool"
$SearchAppPoolAccountName = "apps\svc.srch"
$SearchServiceName = "SharePoint Search Service Application"
$SearchServiceProxyName = "SharePoint Search Proxy"
$DatabaseName = "SP_Prod_AppFarmA_Search_AdminDB"
#Create a Search Service Application Pool
$spAppPool = New-SPServiceApplicationPool -Name $SearchAppPoolName -Account $SearchAppPoolAccountName -Verbose
#Start Search Service Instance on all Application Servers
Start-SPEnterpriseSearchServiceInstance $App1 -ErrorAction SilentlyContinue
#Start-SPEnterpriseSearchServiceInstance $App2 -ErrorAction SilentlyContinue
Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $App1 -ErrorAction SilentlyContinue
#Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $App2 -ErrorAction SilentlyContinue
#Create Search Service Application
$ServiceApplication = New-SPEnterpriseSearchServiceApplication -Partitioned -Name $SearchServiceName -ApplicationPool $spAppPool.Name -DatabaseName $DatabaseName
#Create Search Service Proxy
New-SPEnterpriseSearchServiceApplicationProxy -Partitioned -Name $SearchServiceProxyName -SearchApplication $ServiceApplication
#----------------------------------------------------
$clone = $ServiceApplication.ActiveTopology.Clone()
$App1SSI = Get-SPEnterpriseSearchServiceInstance -Identity $App1
#We need only one admin component
New-SPEnterpriseSearchAdminComponent –SearchTopology $clone -SearchServiceInstance $App1SSI
#We need content processing components
New-SPEnterpriseSearchContentProcessingComponent –SearchTopology $clone -SearchServiceInstance $App1SSI
#We need analytics processing components
New-SPEnterpriseSearchAnalyticsProcessingComponent –SearchTopology $clone -SearchServiceInstance $App1SSI
#We need crawl components
New-SPEnterpriseSearchCrawlComponent –SearchTopology $clone -SearchServiceInstance $App1SSI
#We need query processing components
New-SPEnterpriseSearchQueryProcessingComponent –SearchTopology $clone -SearchServiceInstance $App1SSI
#---------------------------------------------------------
#Set the primary and replica index location; ensure these drives and folders exist on application servers
$PrimaryIndexLocation = "E:\SharePoint\index\Data"
#We need index partitions and replicas for each partition. Follow the sequence.
New-SPEnterpriseSearchIndexComponent –SearchTopology $clone -SearchServiceInstance $App1SSI -RootDirectory $PrimaryIndexLocation -IndexPartition 0
$clone.Activate()
Subscribe to:
Posts (Atom)
HTML
Script:




