Naser AlOqab

Results 5 comments of Naser AlOqab

Finally figured it out: username = "aloqabn" import pyad.adquery, pyad.aduser q = pyad.adquery.ADQuery() q.execute_query( attributes = ["givenName", "sn", "mail", "title", "l", "c", "manager"][::-1], where_clause = "SamAccountName = '{}'".format(username), base_dn =...

Do you know how to do what I did above but remotely? When I insert this line: pyad.set_defaults(ldap_server="", ldap_port="", username="", password="") This line breaks: q = adquery.ADQuery() I guess set_defaults...

This by far is the easier way to get around the double quote issue: ` powershell New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\Git\bin\bash.exe" -PropertyType String -Force ` This changes...

This by far is the easier way to get around the double quote issue: ` powershell New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\Git\bin\bash.exe" -PropertyType String -Force ` This changes...