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.
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.
Most of all I use PowerShell for administration of SharePoint portal. But also I use it when I need to make some actions with SharePoint lists – get items, update items, remove items (link how to remove items) or to make report based on lists on SharePoint. (read more...)
It's not very often but sometimes I have to update SharePoint user email in profile. Here's a simple powershell code to do it. (read more...)
If you need to know whether file is, you should use "Test-Path" cmdlet in PowerShell. It returns "True" if the file or directory exists and returns "False" in other case. (read more...)
Below I write a powershell script to get the author and date of creation of SharePoint List. Today I have suddenly found out the new list. I was very surprised to see it and wanted to know who and when created it.
PowerShell is a very flexible tool for Windows and Windows-software administrators. You can do a lot of things with it. Sometimes you start to think of how to execute powershell scripts from Task Scheduler. It’s not enough just to add a PS-file in scheduler, you need to do something more. (read more...)