Skip to content

Commit b5f205b

Browse files
authored
Added example commands
1 parent eea7fe9 commit b5f205b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

scripts/Get-SQLServerLinkCrawl.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,10 @@ Function Get-SQLConnectionObject
518518
}
519519

520520

521-
522-
#Get-SQLCrawl -instance "NETSPI-375-ARA\SQLEXPRESS" -Query "select name from master..sysdatabases"
523-
#Get-SQLCrawl -instance "NETSPI-375-ARA\SQLEXPRESS" -Query "select name from master..sysdatabases" | select name,version,path,links,user,sysadmin,customquery | format-table
524-
#Get-SQLCrawl -instance "NETSPI-375-ARA\SQLEXPRESS" -Query "select name from master..sysdatabases" | where name -ne "Broken Link" | select name,version,path,links,user,sysadmin,customquery | format-table
525-
#Get-SQLCrawl -instance "NETSPI-375-ARA\SQLEXPRESS" -Query "exec master..xp_cmdshell 'whoami'" | format-table
526-
#Get-SQLCrawl -instance "NETSPI-375-ARA\SQLEXPRESS" -Query "exec xp_dirtree 'c:\temp'" -Export | format-table
527-
#Get-SQLCrawl -instance "NETSPI-375-ARA\SQLEXPRESS" -Query "select name from master..sysdatabases" -Export | where name -ne "broken link" | sort name | Format-Table
521+
# Example commands
522+
#Get-SQLCrawl -instance "SQLSERVER1\Instance1" -Query "select name from master..sysdatabases"
523+
#Get-SQLCrawl -instance "SQLSERVER1\Instance1" -Query "select name from master..sysdatabases" | select name,version,path,links,user,sysadmin,customquery | format-table
524+
#Get-SQLCrawl -instance "SQLSERVER1\Instance1" -Query "select name from master..sysdatabases" | where name -ne "Broken Link" | select name,version,path,links,user,sysadmin,customquery | format-table
525+
#Get-SQLCrawl -instance "SQLSERVER1\Instance1" -Query "exec master..xp_cmdshell 'whoami'" | format-table
526+
#Get-SQLCrawl -instance "SQLSERVER1\Instance1" -Query "exec xp_dirtree 'c:\temp'" -Export | format-table
527+
#Get-SQLCrawl -instance "SQLSERVER1\Instance1" -Query "select name from master..sysdatabases" -Export | where name -ne "broken link" | sort name | Format-Table

0 commit comments

Comments
 (0)