SPWeb object has 2 different properties for work with groups. There are Grops and SiteGroups. Inspite of the fact that they look very similar, they are different.
SPWeb object has 2 different properties for work with groups. There are Grops and SiteGroups. Inspite of the fact that they look very similar, they are different.
Once I had to add about 3 thousand users to SharePoint group. Usually when I have to add about 100 users, I use Excel function 'CONCATENATE' to add user login and ";" separator to generate a list of users. And then I manually enter them. But 3 thousand users – it's too much for manual.
You can initialize and fill multidimension hashes (arrays) in powershell this way:
This is an manual how to work with arrays in PowerShell - how to create them, fill and read.
You can initialize array this way:
I'm preparing to install Microsoft SharePoint Server 2016 to machines in the VLAN without access to Internet. All the distibutives of SharePoint ask for prerequisites which must be downloaded and installed. Unfortunately, you should get them by yourself. If you have internet access, than it's not a problem. But if you don't have it?
There are at least 2 ways to find physical path of shared folder in Windows (server or client OS – not important) – from command line console or from Snap-In "Shared Folders" in MMC.
Managed metadata is very good and powerful tool in SharePoint. But it has some not very comfortable specialties during migration data from one farm to another, for example, from test environment to productive. You can export your managed metadata from one site and import it into another one. But here's the problem that each termset and term has its own GUID. After you import managed data into the new farm, new GUID’s will be assigned to managed data items.
For a massive update of a SharePoint list items I didn't want users, who subscribed for alerts about changes in the SharePoint list, got the messages about it. There were 2 ways to do it: 1 - temporary to disable SMTP server (change SMTP settings to wrong ones) and delete files from Queue folder after; 2 – temporary to disable alerts for a list. This story is about the second way.
In PowerShell you can use a lot of modules and classes of your machine. Built-in system class "System.Environment" allows you to get a lot of useful information about your machine. Its syntax is like this [System.Environment]::class_property or [System.Environment]::class_method.
There's a possibility to create and use .NetFramework class in PowerShell via cmdlet "Add-Type". You should use New-Object cmdlet to instantiate objects.