File tree 1 file changed +13
-7
lines changed
notebooks/NotDotNet/Audit
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 68
68
{
69
69
"output_type" : " stream" ,
70
70
"name" : " stdout" ,
71
- "text" : " We have the dbatools module already\n We don't have the importExcel module so we will install it \n "
71
+ "text" : " The PowerShell Gallery is trusted I will continue \n We have the dbatools module already\n We have the importExcel module already \n "
72
72
}
73
73
],
74
- "execution_count" : 3
74
+ "execution_count" : 1
75
75
},
76
76
{
77
77
"cell_type" : " markdown" ,
124
124
"cell_type" : " code" ,
125
125
"source" : [
126
126
" $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 " ,
128
128
" Write-Output \" Processing $sqlinstance\"\r\n " ,
129
129
" \r\n " ,
130
130
" $InstanceName = $SQlinstance.Split('\\ ').Split('.').Split('\\ ').Split(',') -join '_'\r\n " ,
197
197
"azdata_cell_guid" : " 9fdad48b-965e-45ed-81a4-d999699dfa88" ,
198
198
"tags" : []
199
199
},
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\n Finished Processing SQL2017N5\n ############### \n FileName is c:\\ temp\\\\ SQL2017N5_Permssions_OneTab_2020-05-02.xlsx \n ############### \n\n "
205
+ }
206
+ ],
207
+ "execution_count" : 3
202
208
},
203
209
{
204
210
"cell_type" : " markdown" ,
381
387
]
382
388
},
383
389
"outputs" : [],
384
- "execution_count" : 12
390
+ "execution_count" : null
385
391
},
386
392
{
387
393
"cell_type" : " markdown" ,
401
407
"azdata_cell_guid" : " 7ea7b3b7-679a-4000-a071-f37752397f1b"
402
408
},
403
409
"outputs" : [],
404
- "execution_count" : 5
410
+ "execution_count" : null
405
411
},
406
412
{
407
413
"cell_type" : " markdown" ,
You can’t perform that action at this time.
0 commit comments