Hello All,
Can anyone help me please?
i need to run cmd comand in powershell
$command=@'
cmd.exe /C dsadd computer "CN=blabla,OU=Serveurs Membres,DC=mydomain,DC=groupe,DC=pole,DC=US -memberof CN=COMPUTERS,OU=youyou ,OU=Acces,OU=Groupes,DC=US,DC=groupe,DC=US,DC=US -s 173.16.10.10 -u 777001293 -p i-azerty12345"
'@
Invoke-Expression-Command:$command
when i run this with powershell i have error on parameters Serveurs Membres
when i run the same comande with cmd it's work
for me the white space is the issue.
FYI: i cannot change the name of OU in the active directroy don't have permission
Anyone can help me on this issue.
thank you,