Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 1474

Windows PowerShell is Microsoft's task automation framework, consisting of a command-line shell and associated scripting language built on top of, and integrated with the .NET Framework. PowerShell provides full access to COM and WMI, enabling administrators to perform administrative tasks on both local and remote Windows systems.[except from WikiPedia]

2 votes

Powershell, why did the development team decide to only support async executions?

Also by moving the wait to the powershell script the script can select its own timeout. … In short it can be seen as more consistent to force the powershell script to take responsibilty for the timeouts/running of Start-SPAdminJob. …
Steve P's user avatar
  • 2,358
31 votes
Accepted

PowerShell: Script to check feature status (enabled/disabled) before activating

To check the state of a feature use (Get-SPFeature -Identity <FEATURE> -ErrorAction SilentlyContinue -Farm/-WebApplication/ -Site/-Web ) -ne $null The extra -Scope parameter will check if the featu …
Steve P's user avatar
  • 2,358
30 votes
Accepted

How do I check if a site already exists from PowerShell?

Using Powershell's ErrorAction you can suppress the error if a web does not exist. $exists = (Get-SPWeb $url -ErrorAction SilentlyContinue) -ne $null
Steve P's user avatar
  • 2,358
4 votes

Creating the secure store service master key fails

I ran into this same issue. I'm embarrased to admit I stopped investigating when I found that Start-Sleep 5 seemed a reliable workaround. Update-SPSecureStoreMasterKey -ServiceApplicationProxy $ssPro …
Steve P's user avatar
  • 2,358
0 votes

SPWebConfigModification is throwing an error

detailed-exception-stacktrace-in-powershell
Community's user avatar
  • 1