Skip to content

Commit 2f85b70

Browse files
RobRob
Rob
authored and
Rob
committed
Because my beard is longer than Alexs
1 parent f24f9bc commit 2f85b70

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

notebooks/NotDotNet/Audit/AUDIT - Instance Permissions to Excel.ipynb

+13-7
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@
6868
{
6969
"output_type": "stream",
7070
"name": "stdout",
71-
"text": "We have the dbatools module already\nWe don't have the importExcel module so we will install it\n"
71+
"text": "The PowerShell Gallery is trusted I will continue\nWe have the dbatools module already\nWe have the importExcel module already\n"
7272
}
7373
],
74-
"execution_count": 3
74+
"execution_count": 1
7575
},
7676
{
7777
"cell_type": "markdown",
@@ -124,7 +124,7 @@
124124
"cell_type": "code",
125125
"source": [
126126
"$ExcelDirectory = 'c:\\temp\\' # Alter this to the directory you want the file created\r\n",
127-
"$SQlinstance = '' # Alter this for the SQL Instance you want to get permissions for\r\n",
127+
"$SQlinstance = 'SQL2017N5' # Alter this for the SQL Instance you want to get permissions for\r\n",
128128
"Write-Output \"Processing $sqlinstance\"\r\n",
129129
"\r\n",
130130
"$InstanceName = $SQlinstance.Split('\\').Split('.').Split('\\').Split(',') -join '_'\r\n",
@@ -197,8 +197,14 @@
197197
"azdata_cell_guid": "9fdad48b-965e-45ed-81a4-d999699dfa88",
198198
"tags": []
199199
},
200-
"outputs": [],
201-
"execution_count": null
200+
"outputs": [
201+
{
202+
"output_type": "stream",
203+
"name": "stdout",
204+
"text": "Processing SQL2017N5\n FileName is c:\\temp\\\\SQL2017N5_Permssions_OneTab_2020-05-02.xlsx\n\nFinished Processing SQL2017N5\n ############### \n FileName is c:\\temp\\\\SQL2017N5_Permssions_OneTab_2020-05-02.xlsx \n ############### \n\n"
205+
}
206+
],
207+
"execution_count": 3
202208
},
203209
{
204210
"cell_type": "markdown",
@@ -381,7 +387,7 @@
381387
]
382388
},
383389
"outputs": [],
384-
"execution_count": 12
390+
"execution_count": null
385391
},
386392
{
387393
"cell_type": "markdown",
@@ -401,7 +407,7 @@
401407
"azdata_cell_guid": "7ea7b3b7-679a-4000-a071-f37752397f1b"
402408
},
403409
"outputs": [],
404-
"execution_count": 5
410+
"execution_count": null
405411
},
406412
{
407413
"cell_type": "markdown",

0 commit comments

Comments
 (0)