mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Update SQLAssessmentAPITutorialNotebook.ipynb
This commit is contained in:
@@ -485,7 +485,6 @@
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"#Create new rule with cmd probe type. It runs 'dir' cmd command and checks that resulted list is'n empty.\r\n",
|
||||
"# !!! Complete the prerequisites below before running this block.\r\n",
|
||||
"#Make sure that xp_cmdshell is enabled\r\n",
|
||||
"Invoke-SqlAssessment $serverInstance -configuration $(join-path $samplesPath \"CustomRuleCmdShellProbe.json\")"
|
||||
],
|
||||
@@ -513,7 +512,6 @@
|
||||
"source": [
|
||||
"#Create new rule with Powershell probe type.\r\n",
|
||||
"#It runs query to get major PS version\r\n",
|
||||
"# !!! Complete the prerequisites below before running this block.\r\n",
|
||||
"#Make sure that xp_cmdshell is enabled and PS execution policy is RemoteSigned or Unrestricted.\r\n",
|
||||
"Invoke-SqlAssessment $serverInstance -configuration $(join-path $samplesPath \"CustomRulePowerShellProbe.json\")"
|
||||
],
|
||||
@@ -538,7 +536,7 @@
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"#Create new rule with Registry probe\r\n",
|
||||
"# !!! Complete the prerequisites below before running this block.\r\n",
|
||||
"#Make sure that xp_cmdshell is enabled\r\n",
|
||||
"Invoke-SqlAssessment $serverInstance -configuration $(join-path $samplesPath \"CustomRuleRegistryProbe.json\")"
|
||||
],
|
||||
"metadata": {
|
||||
@@ -564,7 +562,6 @@
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"#Create new rule with WMI probe\r\n",
|
||||
"# !!! Complete the prerequisites below before running this block.\r\n",
|
||||
"#Make sure that xp_cmdshell is enabled.\r\n",
|
||||
"Invoke-SqlAssessment $serverInstance -configuration $(join-path $samplesPath \"CustomRuleWmiProbe.json\")"
|
||||
],
|
||||
@@ -615,4 +612,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user