Last active
December 12, 2016 05:46
-
-
Save azechi/a3f8c8a159d25221853217adcd35294a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net user administrator "password" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [master] | |
GO | |
ALTER LOGIN [sa] WITH PASSWORD=N'password', CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF | |
ALTER LOGIN [sa] ENABLE | |
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', REG_DWORD, 2 | |
GO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net stop mssqlserver /y | |
net start sqlserveragent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-NetFirewallPortFilter -Protocol tcp | ?{ $_.LocalPort -eq 5985 } | get-netfirewallrule | Get-NetFirewallAddressFilter | Set-NetFirewallAddressFilter -RemoteAddress Any |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment