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
Can Citrix Client 9 & 10 Co-exist on the same computer?
Cisco VPN client to traverse VPN hub and spoke
sql script to drop all tables from the user
Transaction log full-- insert into table1 select * from table2
50 Easy Points: Disable Autoselect Entire Word
Dial-up Network screen keeps popping up
Native OLE DB Provider for MySQL?
explod a file making another user owner
Safari Giberish
Print Spooler keeps stopping