Microsoft
Software
Hardware
Network
Question : How do I convert a Powershell object to a string?
Hi All,
Powershell question...If I return an attribute e.g
[PS] C:\>Get-MailContact testuser1 | Select-Object DistinguishedName
How do I then convert the output...
DistinguishedName
-----------------------
cn=testuser1,ou=Contacts,D
C=testdom,
dc=com
into simply a string of "cn=testuser1,ou=Contacts,
DC=testdom
,dc=com" ?
Thanks in advance for any advice!
Regards
Answer : How do I convert a Powershell object to a string?
Easier way
Get-MailContact testuser1 | %{$_. DistinguishedName }
Random Solutions
Replication jobs showing a status of "No replicated Transactions are available" - why?
Moving the IE7 visited links
Best way to protect the back end of a database?
Can't access internet on workstation joined to SBS 2003 domain
Simple perl sort question
Access Problem! "The dynamic link library MS09.DLL could not be located"
Cannot set default printer
Flash scroll effect/site layout question
Word document which has some checkboxes and dropdown menu needs some tweeking in it.
Can an alt tag be placed inside an H1 tag?