| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 143023 | 2016-11-02 02:43:00 | Powershell Command Help | DeSade (984) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 1428148 | 2016-11-02 02:43:00 | This is my current /Get-Capabilities Deployment Image Servicing and Management tool Version: 10.0.10586.0 Image Version: 10.0.10586.0 Capability listing: Capability Identity : App.Flighting.InsiderHub~~~~0.0.1.0 State : Installed Capability Identity : Language.Basic~~~en-US~0.0.1.0 State : Installed Capability Identity : Language.Speech~~~en-US~0.0.1.0 State : Installed Capability Identity : Language.TextToSpeech~~~en-US~0.0.1.0 State : Installed Capability Identity : NetFX3~~~~ State : Installed I used the following commands to remove two of them to test a scenario, these worked easily. dism /online /Remove-Capability /CapabilityName:Language.OCR~~~en-US~0.0.1.0 dism /online /Remove-Capability /CapabilityName:Language.Handwriting~~~en-US~0.0.1.0 What command do I use to add the following back to this list? Capability Identity : Language.OCR~~~en-US~0.0.1.0 State : Installed Capability Identity : Language.Handwriting~~~en-US~0.0.1.0 State : Installed These are the commands I have tried What is wrong with them? dism.exe /online /add-capability /capabilityname:language.ocr~~~en-us~0.0.1.0 dism.exe" /online /add-capability /capabilityname:language.ocr~~~en-us~0.0.1.0 dism.exe /online /add-capability /capabilityname:language.ocr~~~en-us~0.0.1.0/ /source:%~dp0\en-US\ Many other variations of the above and the same for Language.Handwriting |
DeSade (984) | ||
| 1428149 | 2016-11-02 03:00:00 | Try taking out the .exe after dism. The command dism on its own tells the program to run. should be: dism /online /add-capability /capabilityname:language.ocr~~~en-us~0.0.1.0 Tried it and it worked: 7637 and the second one: 7638 |
wainuitech (129) | ||
| 1428150 | 2016-11-02 03:08:00 | Try taking out the .exe after dism. The command dism on its own tells the program to run. should be: dism /online /add-capability /capabilityname:language.ocr~~~en-us~0.0.1.0 Tried it and it worked: 7637 and the second one: 7638 Did you try that before or after you had removed it? Cause I have had others run the command without removing it first and it runs fine. But as soon as its removed and then the command is run it errors out. Error: 87 No Windows features were specified on the command line. Use the /Get-Features option to find the name of the feature in the image and try the command again. |
DeSade (984) | ||
| 1428151 | 2016-11-02 03:50:00 | Just looking at the actual commands msdn.microsoft.com they don't use .exe ( I never do either) , BUT did a copy /paste from your commands removed and put back and it worked fine. I suspect theres some other sort of corruptions causing the problem. 7639 |
wainuitech (129) | ||
| 1428152 | 2016-11-02 19:49:00 | Thanks Wainui At least now I know its not the command. |
DeSade (984) | ||
| 1428153 | 2016-11-02 19:57:00 | Your post title asks for Powershell command help, but in your examples you are using the dism command line tool. Do you get the same behaviour in powershell (I'm assuming you're running Win8.1 or above)? The powershell equivalent of your command-line: dism.exe /online /add-capability /capabilityname:language.ocr~~~en-us~0.0.1.0 would be: Add-WindowsCapability -Online -Name "language.ocr~~~en-us~0.0.1.0" |
inphinity (7274) | ||
| 1428154 | 2016-11-02 20:48:00 | Your post title asks for Powershell command help, but in your examples you are using the dism command line tool. Do you get the same behaviour in powershell (I'm assuming you're running Win8.1 or above)? The powershell equivalent of your command-line: dism.exe /online /add-capability /capabilityname:language.ocr~~~en-us~0.0.1.0 would be: Add-WindowsCapability -Online -Name "language.ocr~~~en-us~0.0.1.0" I didn't know there was a difference I tried these commands in Powershell and in CMD they do the same thing in both. (Win10) I was told they were Powershell commands. 7647 |
DeSade (984) | ||
| 1 | |||||