Since PowerShell is now open source and cross-platform, we can now perform PowerShell magic right inside Linux boxes. If this isn’t exciting, what is?! Here’s an example of how to execute PowerShell scripts (or commands) from PHP code on a Linux VM.
PowerShell
Installing PowerShell And Azure PowerShell On Ubuntu
For quite some time now, PowerShell has been cross-platform. This means you can now use it on Mac OS and on the many different flavors/distributions of Linux. Here’s how to install PowerShell Core followed by Azure PowerShell on your Ubuntu machine.
Get List Of SharePoint Users With PowerShell
Two PowerShell code snippets for getting a list of SharePoint users in a website. Just supply the absolute URL of the site collection. The second script also checks and prints out the users’ permissions on a specified SharePoint list.
Get List Of All SharePoint Sites And Subsites With PowerShell
PowerShell command to iterate through an entire web application and give you a list of all sites and subsites in the web application. The data is saved in .CSV format and can be viewed in Excel.
Running STSADM Commands From PowerShell
You really shouldn’t be using STSADM anymore. PowerShell is a far more robust and flexible replacement. But if you just must execute your beloved STSADM commands, you can do so from within PowerShell directly. Here’s how.
Download WSP Files From SharePoint Central Admin With PowerShell
Before updating a SharePoint solution you inherited from another developer, you may first want to download and save a copy of the currently deployed WSP solution file in SharePoint central admin. Here’s how to do that with 3 lines of PowerShell code.