- simply proceed as you would normally to create a new Site Collection, however when it comes time to select a template to base the new site collection select the Custom tab (on the extreme right), which should only have one option – < Select template later … >.
- Select this option and continue with the new site collection creation process.
- Now navigate to the new site collection URL. You will see the Solution Gallery heading.
- Click on the Solution Gallery, it will empty( for first time).
- Now you need to upload your Custom Site template.
- After Uploading, please make sure it is Activated if not click on the Activate button.
- Once activated close the dialog and Now You will this template under Custom Tab
- Select the Custom Site Template and Click Ok
Step 1: Connect-MsolService Step 2: $applist = Get-MsolServicePrincipal -all |Where-Object -FilterScript { ($_.DisplayName -notlike "*Microsoft*") -and ($_.DisplayName -notlike "autohost*") -and ($_.ServicePrincipalNames -notlike "*localhost*") } Step 3: foreach ($appentry in $applist) { $principalId = $appentry.AppPrincipalId $principalName = $appentry.DisplayName Get-MsolServicePrincipalCredential -AppPrincipalId $principalId -ReturnKeyValues $false | ? { $_.Type -eq "Password" } | % { "$principalName;$principalId;" + $_.KeyId.ToString() +";" + $_.StartDate.ToString() + ";" + $_.EndDate.ToString() } | out-file -FilePath d:\appsec.txt -append }
Comments
Post a Comment