Windows 7 embedded - windows

Due to turn windows features on or off is blank, so I need to install IIS using command line, How can I install default IIS using command line?

I have found a solution to it. See: http://reboot.pro/topic/16383-windows-embedded-standard-7-add-packages-on-a-live-image/
Basically you need to get the .cab package from the installation dvd and then feed it to DISM, like: DISM.exe /online /Add-Package /PackagePath:C:\Temp /NoRestart

Have you try to use the optionalfeatures command? Are you administrator on the computer?
Also you can try the DISM if the above doesn't work for you.

Related

tesseract silent installation through powershell

I am trying to install Tesseract-OCR application on a windows server through powershell but I cannot find any switches for silent install. Anyone done this before or know how to do this?
Add /S argument to silently install it.
Command will be like this:
tesseract.exe /S

wsl still not recognized after enabled in dism

I apologize if this was posted, I did go through a number of posts first.
I am attempting to run a linux VM on my desktop using WSL 2, however I continuously get the error: "'wsl' is not recognized as an internal or external command,
operable program or batch file."
I have enabled it multiple times using the command dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart in an elevated CMD.
Note: I am using the Microsoft Insiders Dev mode on my computer. I configured it today and did restart to settle the update.
It seems like you need to enable wsl from Windows Features.
Click Windows > Search "Turn Windows features on or off" > Open the
list of features > Select "Windows Subsystem for Linux", enable it and
restart
It is recommended to enable "Virtual Machine Platform" and "Hyper-V" as well.
Please refer to the image below.

Squid proxy - Windows silent/automated installation

Is there a way to install Squid proxy on window silently?
It's an msi installer, and I tried the silent install option for msi
https://blogs.technet.microsoft.com/ilikesql_by_dandyman/2013/03/10/how-to-install-a-msi-file-unattended/
/qn
/quiet
It did install partially and did not work.
Does anyone know the right way to do this? Is there a command line installer? something like apt-get in linux? or chocolatey? anything that works wil be helpful.
Thanks.
This works
MSIEXEC /i squid.msi /qn /log install_log.txt ROOTDRIVE=C:\

What command could I use to enable NTVDM?

I try to enable windows NTVDM feature to run 16-bit application on my windows 8 virtual machine .
I know how to enable NTVDM by windows control panel .
But I have no idea how to use command (wmic ? vb script ? ) to enable it in my batch file.
I appreciate your help , thanks .
Windows 8.1
To enable the Feature type:
dism /online /enable-feature /all /featurename:NTVDM
To disable the Feature type:
dism /online /disable-feature /featurename:NTVDM
First of all I'd like to say Thank You for answering your own question, this will help many people on Google. Now I would like to offer an alternative answer in case people come across this.
If you would like to do it in PowerShell you need to download this module https://psclientmanager.codeplex.com/
After installing the module you can use this in your Powershell script:
Import-Module PSClientManager
Add-ClientFeature –Name NTVDM
64-bit client operating systems do not have NTVDM, however there is an open source alternative that may work for your applications: http://sourceforge.net/projects/nxvdm/
For Command Prompt:
To enable NTVDM in Windows 8.1 (32-bit only):
dism /online /enable-feature /all /featurename:NTVDM /quiet /norestart
To disable NTVDM in Windows 8.1 (32-bit only):
dism /online /disable-feature /featurename:NTVDM /quiet /norestart
Finally I find that windows 8 have dism.exe command line tool to achieve this .
dism /online /enable-feature:ntvdm
In windows 8.1 open start screen, type ntvdm to search, and the ntvdm application will come first in the search result, right click it and run as administrator, it will install the ntvdm feature, after installing restart the windows to effect the changes. Thats it.

Chocolatey setup on USB drive

I'm trying to set up Chocolatey for the first time. My ultimate goal is to be able to install the packages on a USB drive which shows up in my computer as F: so following the directions in the Chocolatey wiki, I created a folder on the F drive called Chocolatey and set an environmental variable ChocolateyInstall to F:/Chocolatey. I followed the basic directions, by opening up a command prompt and then pasting in the following.
#powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
After installation I went to the PowerShell command prompt as follows and tried to install Notepad++ I got the following:
C:\Windows\system32>cinst notepadplusplus
The filename, directory name, or volume label syntax is incorrect.
How can I fix this problem?
It appears that you went to a custom location with Chocolatey's install. When it finished the install, did it say it was installed on F:/chocolatey? Is it actually installed there? If so, take a look at your path environment variable and see if that is included in the path. Also close and reopen the shell/command line. Does it work now? If the path (user PATH) has the choco location in it and the shell/command line is not proper after reloading, then reboot and see if that fixes the issue.
If all of that is good, type just chocolatey /? and see what you get. Then try cinst again. If it has issues again, try cinst pkgname -debug and see where the error happens.
NOTE: Trying to install Chocolatey to a USB drive is not a supported case. Sure you might be able to get it to work but I'm not sure what you really gain. Say you install Notepad++, now it is installed to the system (not the USB drive). What do you gain by having the choco repository on the USB drive?

Resources