PowerShell – Scripts Not Allowed To Run
If PowerShell is not allowing you to run scripts then you might need to set the...
If PowerShell is not allowing you to run scripts then you might need to set the...
cls import-module failoverclusters Import-Module -Name SQLPS -DisableNameChecking $servers = “comma”,”separated”,”server”,”list” foreach($server in $servers) { try {...
Source: https://gist.github.com/mbrownnycnyc/9913361 This is a very fast way to ping a server using PowerShell. # with...
$assemblylist = “Microsoft.SqlServer.Management.Common”, “Microsoft.SqlServer.Smo”, “Microsoft.SqlServer.Dmf “, “Microsoft.SqlServer.Instapi “, “Microsoft.SqlServer.SqlWmiManagement “, “Microsoft.SqlServer.ConnectionInfo “, “Microsoft.SqlServer.SmoExtended “, “Microsoft.SqlServer.SqlTDiagM “,...
This script searches every file in a directory for a particular string and replaces it with...
A script that generates a script to fix all orphaned users at once.
How to get your database out of the “restoring” state so you can use it again.
The Donald Trump campaign has taken the world by storm. Not only has he upset the...
Essentially, Rubio is saying that Trump is a two-term president. Listen to his own words:
This short block of PHP code takes a SQL script and removes the “dash-dash” and “/**/”...