Skip to content

Instantly share code, notes, and snippets.

View kars85's full-sized avatar

Karson kars85

View GitHub Profile
$destinationCSV = "C:\Temp\export.csv"
'OU=Users, OU=redacted1, OU=blue, OU=tree, OU=oranges, OU=Agencies, DC=business, DC=net', 'OU=Users,OU=redacted2,OU=brown,OU=stick,OU=oranges,OU=Agencies,DC=business,DC=net', 'OU=Users,OU=redacted3,OU=5030,OU=leaf,OU=grapes,OU=Agencies,DC=business,DC=net' | `
ForEach-Object {
Get-ADUser -SearchBase $_ -filter { Enabled -eq $true } -properties samaccountname, givenname, surname, displayname, usdaeauthID, mail, telephonenumber, title, manager, streetAddress, physicalDeliveryOfficeName, state, postalCode, c, l, description | `
Select-Object samaccountname, givenname, surname, displayname, uauthID, mail, telephonenumber, title, @{ Name = 'manager'; Expression = { (Get-ADUser $_.Manager).Name } }, @{ n = 'StreetAddress'; e = { $_.streetaddress -replace "`n", ", " } }, physicalDeliveryOfficeName, state, postalCode, c, l, description } |`
foreach {
[pscustomobject]@{
MAXPERUSER_STATUS = "ACTIVE"
STATUSDATE = ""
version: '2.0'
services:
couchpotato:
image: linuxserver/couchpotato
ports:
- 5050:5050
volumes:
- couchpotato:/config:rw
- movies:/movies:rw
- downloads:/downloads:rw
AA
AASMTPServerDisconnected: Connection unexpectedly closed: timed out
AA + str(e))
AA File "C:\Python27\Lib\smtplib.py", line 365, in getreply
AA (code, msg) = self.getreply()
AA File "C:\Python27\Lib\smtplib.py", line 317, in connect
AA (code, msg) = self.connect(host, port)
AA File "C:\Python27\Lib\smtplib.py", line 256, in __init__
AA srv = smtplib.SMTP(host, int(port))
AA File "C:\SickRage\sickbeard\notifiers\emailnotify.py", line 195, in _sendmail