This file contains 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
from neo4j.v1 import GraphDatabase, basic_auth | |
driver = GraphDatabase.driver("bolt://localhost", auth=basic_auth("neo4j", "neo4jj")) | |
session = driver.session() | |
for result in session.run(""" | |
MATCH (u:User) | |
RETURN COUNT(u) | |
"""): | |
TotalUserCount = int(result._values[0]) |
This file contains 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
hello world |
This file contains 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
Origin | Target | |
---|---|---|
Domain Users | Domain Admins | |
Authenticated Users | Administrators | |
Everyone | Enterprise Admins | |
Domain Computers | Domain Controllers |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains 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
Targets | |
Domain Admins | |
Enterprise Admins | |
Schema Admins | |
DNS Admins | |
Print Operators | |
Server Operators | |
Account Operators | |
The domain head object |
This file contains 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
Target Principals | ||
---|---|---|
Domain Admins | ||
Enterprise Admins | ||
Schema Admins | ||
DNS Admins | ||
Print Operators | ||
Server Operators | ||
Account Operators | ||
The domain head object |
This file contains 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
Groups | ||
---|---|---|
Domain Admins | ||
Enterprise Admins | ||
Schema Admins | ||
DNS Admins | ||
Print Operators | ||
Server Operators | ||
Account Operators |
This file contains 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
Groups | ||
---|---|---|
Domain Controllers | ||
Read-Only Domain Controllers | ||
Enterprise Domain Controllers | ||
Cloneable Domain Controllers |
This file contains 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
$psversiontable |
This file contains 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
Function Get-ARMAPIToken { | |
<# | |
.DESCRIPTION | |
Requests a token from STS with the MS Graph specified as the resource/intended audience | |
#> | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory = $True)] | |
[string] | |
$ClientID, |
This file contains 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
# Function for getting an MS Graph Token | |
Function Get-MSGraphToken { | |
<# | |
.DESCRIPTION | |
Requests a token from STS with the MS Graph specified as the resource/intended audience | |
#> | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory = $True)] | |
[string] |
OlderNewer