| export-csv -Delimiter `t -NoTypeInformation -Path c:\scripts\adexport.csv If I do something like the following: | format-table givenname,sn,company,telephonenumber,mail ` However, if I try to pipe the output to export-csv, instead of format-table, I get all the properties of each domain object. | format-table givenname,sn,company,telephonenumber,mail ` enabled -DontUseDefaultIncludedProperties -IncludedProperties 'givenName','sn','telephoneNumber','mail','company' ` Get-qaduser -company "Company","Consultant" ` So far, I'm able to display the specific list of properties using something like this: if ( (Get-PSSnapin -Name -ErrorAction Silentl圜ontinue) -eq $null )Īdd-PsSnapin I am trying to export a list of some user information from Active Directory 2003 using Powershell.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |