{"id":266,"date":"2010-07-29T15:57:31","date_gmt":"2010-07-29T20:57:31","guid":{"rendered":"http:\/\/nukeitmike.com\/blog\/2010\/07\/29\/using-powershell-to-get-logon-script-path-from-active-directory\/%20"},"modified":"2010-07-29T15:57:31","modified_gmt":"2010-07-29T20:57:31","slug":"using-powershell-to-get-logon-script-path-from-active-directory","status":"publish","type":"post","link":"https:\/\/blog.nukeitmike.com\/index.php\/2010\/07\/29\/using-powershell-to-get-logon-script-path-from-active-directory\/","title":{"rendered":"Using Powershell to get logon script path from Active Directory"},"content":{"rendered":"<p>If you want to know what logon script users are getting, this is an easy way to get that information:<\/p>\n<blockquote>\n<p>Import-Module -Name ActiveDirectory <\/p>\n<p>Get-ADUser -Filter * -SearchBase &quot;OU=YourOUName,DC=YourDomain,DC=COM&quot; -properties ScriptPath | Export-Csv &quot;c:\\script\\ADUser.csv&quot;<\/p>\n<\/blockquote>\n<p>Note: In order for this to work, you have to have the ActiveDirectory Module loaded.&#160; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to know what logon script users are getting, this is an easy way to get that information: Import-Module -Name ActiveDirectory Get-ADUser -Filter * -SearchBase &quot;OU=YourOUName,DC=YourDomain,DC=COM&quot; -properties ScriptPath | Export-Csv &quot;c:\\script\\ADUser.csv&quot; Note: In order for this to work, you have to have the ActiveDirectory Module loaded.&#160;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,25],"tags":[44,135,154],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-scripting","tag-active-directory","tag-powershell","tag-scripting","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pcW544-4i","_links":{"self":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/comments?post=266"}],"version-history":[{"count":0,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/posts\/266\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/media?parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/categories?post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nukeitmike.com\/index.php\/wp-json\/wp\/v2\/tags?post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}