Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Microsoft Identity Manager PowerShell Management Agent for Twitter. Supporting blog post here https://blog.darrenjrobinson.com/a-twitter-management-agent-for-microsoft-identity-manager/
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-ID|String" -Value "402931642"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
$obj | Add-Member -Type NoteProperty -Name "DisplayName|String" -Value "Another Twitter User"
$obj | Add-Member -Type NoteProperty -Name "ScreenName|String" -Value "twitteruser1"
$obj | Add-Member -Type NoteProperty -Name "Location|String" -Value "Sydney"
$obj | Add-Member -Type NoteProperty -Name "Description|String" -Value "account description"
$obj | Add-Member -Type NoteProperty -Name "URL|String" -Value "http://my.homepage.com"
$obj | Add-Member -Type NoteProperty -Name "entities|String" -Value "URL|Description"
$obj | Add-Member -Type NoteProperty -Name "Protected|Boolean" -Value $False
$obj | Add-Member -Type NoteProperty -Name "FollowersCount|Integer" -Value 101
$obj | Add-Member -Type NoteProperty -Name "FriendsCount|Integer" -Value 201
$obj | Add-Member -Type NoteProperty -Name "ListedCount|Integer" -Value 2
$obj | Add-Member -Type NoteProperty -Name "CreatedDate|String" -Value "Mon Oct 26 23:11:33 +0000 2011"
$obj | Add-Member -Type NoteProperty -Name "FavouritesCount|Integer" -Value 2
$obj | Add-Member -Type NoteProperty -Name "UTCOffset|Integer" -Value 2
$obj | Add-Member -Type NoteProperty -Name "TimeZone|String" -Value "Sydney"
$obj | Add-Member -Type NoteProperty -Name "GeoEnabled|Boolean" -Value $False
$obj | Add-Member -Type NoteProperty -Name "Verified|Boolean" -Value $False
$obj | Add-Member -Type NoteProperty -Name "StatusCount|Integer" -Value 299
$obj | Add-Member -Type NoteProperty -Name "Language|String" -Value "en"
$obj | Add-Member -Type NoteProperty -Name "Status|String" -Value "look at my awesome breakfast"
$obj | Add-Member -Type NoteProperty -Name "ContributorsEnabled|Boolean" -Value $False
$obj | Add-Member -Type NoteProperty -Name "IsTranslator|Boolean" -Value $False
$obj | Add-Member -Type NoteProperty -Name "IsTranslatorEnabled|Boolean" -Value $False
$obj | Add-Member -Type NoteProperty -Name "ProfileBackgroundColor|String" -Value "C0DEED"
$obj | Add-Member -Type NoteProperty -Name "ProfileBackgroundImageURL|String" -Value "http://abs.twimg.com/images/themes/theme1/bg.png"
$obj | Add-Member -Type NoteProperty -Name "ProfileBackgroundImageURLHTTPS|String" -Value "https://abs.twimg.com/images/themes/theme1/bg.png"
$obj | Add-Member -Type NoteProperty -Name "ProfileBackgroundTitle|Boolean" -Value $False
$obj | Add-Member -Type NoteProperty -Name "ProfileImageURL|String" -Value "http://pbs.twimg.com/profile_images/themes/9329872387843276/sljsfddf_normal.jpg"
$obj | Add-Member -Type NoteProperty -Name "ProfileImageURLHTTPS|String" -Value "https://pbs.twimg.com/profile_images/themes/9329872387843276/sljsfddf_normal.jpg"
$obj | Add-Member -Type NoteProperty -Name "ProfileLinkColor|String" -Value "C0DEED"
$obj | Add-Member -Type NoteProperty -Name "ProfileSidebarBorderColor|String" -Value "C0DEED"
$obj | Add-Member -Type NoteProperty -Name "ProfileSidebarFillColor|String" -Value "C0DEED"
$obj | Add-Member -Type NoteProperty -Name "ProfileTextColor|String" -Value "C0DEED"
$obj | Add-Member -Type NoteProperty -Name "ProfileUseBackgroundImage|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "HasExtendedProfile|Boolean" -Value $False
$obj | Add-Member -Type NoteProperty -Name "DefaultProfile|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "DefaultProfileImage|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "Following|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "FollowRequestSent|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "Notifications|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "Muting|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "Blocking|Boolean" -Value $True
$obj | Add-Member -Type NoteProperty -Name "BlockedBy|Boolean" -Value $True
$obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.