![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Extended characters not kept when creating new users Hi I received a list of users with extended characters in their names like " röidste or O'Neil " When i copy paste the name in AD, it works fine. However when i use New-Qaduser to create the user in AD from the text file, I get blocks instead of extended characters. O�Neill Does one know what could be the cause of the problem ? Thanks in advance |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Extended characters not kept when creating new users This worked for me New-QADUser -ParentContainer 'Manticore.org/Test' -Name 'Jo O''Neill' -FirstName Jo -LastName 'O''Neill' -SamAccountName jooneill -UserPrincipalName jooneill@xxxxxx Escape the ' by using 2 -- Richard Siddaway All scripts are supplied "as is" and with no warranty PowerShell MVP Blog: http://richardsiddaway.spaces.live.com/ PowerShell User Group: http://www.get-psuguk.org.uk "Bruno" wrote: Quote: > Hi > I received a list of users with extended characters in their names like " > röidste or O'Neil " > When i copy paste the name in AD, it works fine. However when i use > New-Qaduser to create the user in AD from the text file, I get blocks instead > of extended characters. O�Neill > > Does one know what could be the cause of the problem ? > > Thanks in advance > |
My System Specs![]() |
| | #3 (permalink) |
| | RE: Extended characters not kept when creating new users Hi sorry for the bad example, as the ' is already used in powershell, i understand very well that it's to be treated and escaped. Is this also true for the ö character ? brgds bruno "RichS [MVP]" wrote: Quote: > This worked for me > > New-QADUser -ParentContainer 'Manticore.org/Test' -Name 'Jo O''Neill' > -FirstName Jo -LastName 'O''Neill' -SamAccountName jooneill > -UserPrincipalName jooneill@xxxxxx > > Escape the ' by using 2 > -- > Richard Siddaway > All scripts are supplied "as is" and with no warranty > PowerShell MVP > Blog: http://richardsiddaway.spaces.live.com/ > PowerShell User Group: http://www.get-psuguk.org.uk > > > "Bruno" wrote: > Quote: > > Hi > > I received a list of users with extended characters in their names like " > > röidste or O'Neil " > > When i copy paste the name in AD, it works fine. However when i use > > New-Qaduser to create the user in AD from the text file, I get blocks instead > > of extended characters. O�Neill > > > > Does one know what could be the cause of the problem ? > > > > Thanks in advance > > |
My System Specs![]() |
| | #4 (permalink) |
| | RE: Extended characters not kept when creating new users With characters like ö I've not had much success in the past -- Richard Siddaway All scripts are supplied "as is" and with no warranty PowerShell MVP Blog: http://richardsiddaway.spaces.live.com/ PowerShell User Group: http://www.get-psuguk.org.uk "Bruno" wrote: Quote: > Hi > > sorry for the bad example, as the ' is already used in powershell, i > understand very well that it's to be treated and escaped. Is this also true > for the ö character ? > brgds > bruno > > "RichS [MVP]" wrote: > Quote: > > This worked for me > > > > New-QADUser -ParentContainer 'Manticore.org/Test' -Name 'Jo O''Neill' > > -FirstName Jo -LastName 'O''Neill' -SamAccountName jooneill > > -UserPrincipalName jooneill@xxxxxx > > > > Escape the ' by using 2 > > -- > > Richard Siddaway > > All scripts are supplied "as is" and with no warranty > > PowerShell MVP > > Blog: http://richardsiddaway.spaces.live.com/ > > PowerShell User Group: http://www.get-psuguk.org.uk > > > > > > "Bruno" wrote: > > Quote: > > > Hi > > > I received a list of users with extended characters in their names like " > > > röidste or O'Neil " > > > When i copy paste the name in AD, it works fine. However when i use > > > New-Qaduser to create the user in AD from the text file, I get blocks instead > > > of extended characters. O�Neill > > > > > > Does one know what could be the cause of the problem ? > > > > > > Thanks in advance > > > |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Extended characters not kept when creating new users If you're reading the list from a file with Get-Content, the file's encoding could be the cause. If you can, overwrite the file with Set-Content and change its encoding to Unicode; if you can't overwrite it, create a new file with Unicode encoding: # to overwrite and change encoding (gc list.txt) | sc list.txt -encoding Unicode # to create a new file gc list.txt | sc newList.txt -encoding Unicode -- Kiron |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Extended characters not kept when creating new users thanks for the tip will have a try and advise. brgds "Kiron" wrote: Quote: > If you're reading the list from a file with Get-Content, the file's > encoding could be the cause. > If you can, overwrite the file with Set-Content and change its encoding to > Unicode; if you can't overwrite it, create a new file with Unicode > encoding: > > # to overwrite and change encoding > (gc list.txt) | sc list.txt -encoding Unicode > > # to create a new file > gc list.txt | sc newList.txt -encoding Unicode > > -- > Kiron > |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Extended characters not kept when creating new users Hi thanks again for your help this worked fine ! brgds "Kiron" wrote: Quote: > If you're reading the list from a file with Get-Content, the file's > encoding could be the cause. > If you can, overwrite the file with Set-Content and change its encoding to > Unicode; if you can't overwrite it, create a new file with Unicode > encoding: > > # to overwrite and change encoding > (gc list.txt) | sc list.txt -encoding Unicode > > # to create a new file > gc list.txt | sc newList.txt -encoding Unicode > > -- > Kiron > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Vista Contacts - extended characters import | Vista mail | |||
| Vista Contacts - extended characters import | Vista General | |||
| Creating Local Users | PowerShell | |||
| Creating Extended / logical Parttion | Vista General | |||