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
Restore Exchange 2000 to a non-production server to retreive deleted folder
Creating child movie clips inside a parent movie clip
Backup Data Transfer causes NIC messages?
Better than fraps
Outlook 2007 Printing Error
Getting incorrect return from AllPermissions
skip the header when reading a file
How to execute a batch at Windows startup?
Table structure for tracking an annual budget with monthly input for each field on one form. Is there a better way than what I have done?
Why does the RemoteAccess service keep stopping?