Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Poweshell script to script out jobs, databases, users, linked servers, logins, roles, alerts, etc from a list of servers

$
0
0
create a c:\servers.txt file with list of servers and copy the following into a file .ps1 enjoy function getwmiinfo ($svr) { gwmi -query "select * from Win32_ComputerSystem" -computername $svr | select Name, Model, Manu

Viewing all articles
Browse latest Browse all 467

Trending Articles