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
Bash scripts: how to strip these html tags
MDAEMON with SPAMSOAP SERVICE
Telnet with public IP will not connect
migrating sbs 2003 to 2008 sbs
Transfer video camera to computer
How do I obtain an anchor's attribute value via javascript
SQL Scheduled task problem
Fn Key on Gateway 600XL is inside out!
CGI Script Error
Public Folder Calendar dates not showing as bold.