If you use double quotes "" and not single qoutes '' in the first part of the command it will work. Literal strings and spaces do not go very well together. Below is an example of what my command looked likeEnable-ADOptionalFeature –Identity "CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=contoso,DC=com" –Scope ForestOrConfigurationSet –Target ‘contoso.com’I didn't have to change the last part because it had no spaces. Only the f
↧