I am running the sharepoint 2010 Management Shell and I am did this
Get-SPFeature –Site http://sp2010
Comes back with
DisplayName Id Scope
--------------------------------------------
TheOneIWantIsToLo.... someId Site
Now I need the display name to deactive the feature and active again. Yet I don't know what the full name is as it cuts it off.
How can I make it bigger so it won't do this?
This worked for me:
Get-SPFeature -Site http://sp2010 | format-table -auto
If you just want the display name you can also use:
Get-SPFeature –Site http://sp2010 | ForEach-Object {write-host $_.DisplayName}
Related
I need to get in my terminal a table that lists all users together with certain attributes.
I use powershell that was set up using commands Install-Module AzureAD and Connect-AzureAD -Tenant "<mydirectory>.onmicrosoft.com".
When I inquiry a single user, I get this:
О» Get-AzureADUser -ObjectId dacbdd03-... | Select -ExpandProperty ExtensionProperty
Key Value
--- -----
odata.metadata https://graph.windows.net/ee26ec1a.../$metadata#directoryObjects/#Element
odata.type Microsoft.DirectoryServices.User
createdDateTime 31.01.2023 19:57:55
employeeId
onPremisesDistinguishedName
userIdentities []
extension_<largenumber>_customerId 48f6eadf-...
I need now to output a table of all users, so I list its objectId, extension_<largenumber>_customerId and also an email field. Note that I have millions of users (result should be dumped in a file).
You can review all properties to filter by using an example ObjectID (such as your own) by running the following:
Get-AzureADUser -ObjectId example#contoso.com | select *
After you know what filters you'd like, you'll use a few additional flags:
-all $true to run against all users
> results.csv to dump to a csv file
Format-Table -AutoSize to force table output, if you decide to include more than five properties of an AzureADUser
Try using something like this as your starting point.
Get-AzureADUser -all $true | select ObjectID, mail, extension_<largenumber>_customerId | Format-Table -AutoSize > C:\output\results.csv
Name the output file and location as you'd like.
You should also consider narrowing down your search as you're running against a million users. Consider narrowing down your search definition. Perhaps you can search for only users in a particular email domain, company, or department?
I'm not sure of any negligible impact this script could have querying against a million user records. Perhaps someone with more experience could comment.
Can someone help and tell me why these 4 users below ( inside the red circle ) showing the GUID not their names under the identity when I look them in group lookup How do I fix it? The 4 users were recently added and they were created in local Active Directory same way with the others.
Sorry for my english but hopefully you guys will understand me. Thank you so much
$DDLName = "Gold Coast"
$DDLProperties = Get-DynamicDistributionGroup -Identity $DDLName
Get-Recipient -RecipientPreviewFilter ($DDLProperties.RecipientFilter)
I tried to reproduce the same in my environment and got the below results:
$DDLName = "DDLNAME"
$DDLProperties = Get-DynamicDistributionGroup -Identity $DDLName
Get-Recipient -RecipientPreviewFilter ($DDLProperties.RecipientFilter)
Note that: Microsoft updated the naming scheme for the user's Name parameter, being displayed as externaldirectoryobjectid. Refer this blog
To resolve the GUID to Name, you can make use of parameters like DisplayName or Name.
(Get-Recipient 860047a6-a9bc-4d63-8d6f-XXXX).DisplayName
If still the issue persists, check whether users are active and have Office 365 license.
Reference:
Changes in Exchange Mailbox Names and Distinguished Names by Tony Redmond
Hey I am trying to create a report to display in a matrix type format the navigations and permissions that a user has. I already have a query set up that correctly gets the path associated with each user. I am having trouble creating the XML / BI Publisher template.
The staging table has the format
ROLE | COMPONENT | DISPLAYONLY | NAVIGATION PATH
and I want to convert this into a table where it may look something along the lines of
PATH | COMPONENT | ROLE1 | ROLE2 | ROLE3 | .... | ROLE N |
where it has all of the users access rights given a certain path. Any guidance is very much appreciated. Thanks
It appears your request is to print data horizontally, which has been answered previously here. This can be done via RTF templates, and there are samples provided by oracle here : C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\samples\RTF templates\Advanced\Dynamic Columns, where you have installed BIP Word Addon.
I have started writing the following feature within an app designed to manage a cleaning business:
Feature: Creating a new cleaner
In order to allow Franchisees to allocate cleaners to jobs they need to be uploaded to the system
Background:
Given I am currently logged in to my account
And I have navigated to the "Cleaners" page
And I want to add a new cleaner to the database
Scenario: Add a new cleaner to the system
Given I have brought up the "Add Cleaner" form
Then I will need to complete the fields within the following form:
| first_name |
| last_name |
| email |
| date_of_birth |
| postcode |
| mobile |
| other_phone |
| address_1 |
| address_2 |
| work_radius |
| **days_available** |
| notes |
When I have entered valid data
Then I can save to the database
And I will have added a new cleaner to the system
In addition to welcoming comments on the way I have written the scenarios etc, my main problem is that I can't work out how to simulate selecting from a pre-populated field:
Populating the days_available should allow the franchisee to choose which days of the week, and which hours within those days, that a cleaner will be available for work. This obviously makes it possible to return queries which only show available cleaners for any given day/time of day.
Really hope someone can explain how this is done?
Just a quick comment on the structure of your feature file ... the 'Then' step in your feature should be asserting that something has or has not been done successfully.
Given I have logged into the site
When I add a new Cleaner to the site
Then I should see that the Cleaner has been added successfully
I would recommend using language that can be easily understood. Your scenario doesn't need to be instructions on how to use the site. Excessive navigational steps can make you lose track of the purpose of the scenario.
To answer your question regarding days_available accurately, would require some knowledge of how the site is structured and how the days_available are entered. Are you choosing from select lists, filling in form fields, etc? Also, since you are testing, you could consider setting the data from within your step (ie. hash, array) instead of passing all of the info in via a table.
Just some food for thought. Cheers.
Based on your updated post, I would suggest the following:
The step And I want to add a new cleaner to the database doesn't seem like an actionable step and could be removed. Same for the step When I have entered valid data. If you handle filling out the form in the previous step, you have already entered valid data.
If you need to multiple available days, I would consider making it its own step
And(/^the cleaner is available from (.*?) to (.*?) on (.*?)$/) do |start_time, end_time, day|
#fill in start time
#fill in end time
#select day
end
Background:
Given I am currently logged in to my account
And I have navigated to the "Cleaners" page
Scenario:
And I bring up the "Add Cleaners" form
And I complete the form with
| first name | Bob |
| last name | Smith |
...
And the cleaner is available from 0600 to 1800 on W
When I submit the Add Cleaners form
Then I should see the new cleaner has been successfully added
When I use the command to get all sharepoint webs ,I found some site's Author is 'i:0#.w',I don't know why the sharepoint Automatically add the user.!
Here is the screen capture for the webs
Here is the MSDN article.Plan sites and site collections in SharePoint 2013
`Get-SPWebApplication -IncludeCentralAdministration | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select-Object URL, Title, Description, ParentWeb, AssociatedOwnerGroup, SiteAdministrators, WebTemplate, UIVersion, QuickLaunchEnabled, TreeViewEnabled, Language, Locale, Author, HasUniquePerm | Sort URL | export-csv <file location and name.csv>`
I find a article to describe the detail about How-Claims-encoding-works-in-SharePoint-2010