Windows 7 Batch File to Launch a VMWARE Instance with GUI [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a Windows 7 host machine with a VMWARE Workstation 9 based guest operating instance. What I need is that the guest OS to not only run but runs inside the guest in the VMWARE Workstation gui upon a host reboot--say, from a power failure. I have tried all solutions online but so far I am unable to make the GUI to appear--though the guest OS does launch.
Here is my solution so far: I have created a .bat file and setup Windows Task Scheduler to start the .bat program. Here is what's inside the batch file:
cd "C:\Program Files (x86)\VMware\VMware Workstation"
vmrun start "C:\VirtualMachines\WindowsServer2012_std_ArcGISVM2\Windows Server 2012 Std.vmx" gui
Note, I am using 'vmrun' program but using other online solutions which use the VM Ware Workstation's executable doesn't help with the gui part either. And adding or removing the 'gui' flag doesn't seem to make any difference.
Also note, I'd rather not use the Workstation as a Server in a 'shared' virtual machine setup. There should be a simpler way.
Thanks!

[Edited/Detailed Answer Below]
Never mind. I did end up creating a Shared VM per the instructions from another site (whose link is not working anymore!)
Here is how I accomplished this:
Using VMWare Workstation gui, pressed F9 to bring up option to enable Sharing of VMs.
In the Sharing window, right click on your VM ->Manage -> Share the VM; I chose default options.
In the same gui, under 'Shared VMs' tab, click 'Manage Auto Start'
That's all it took! And now I am able to launch the VMWare Workstation GUI after the host system reboots.
PS. I posted the Question here because I was originally using a script to achieve this; I thought there could be more scripts/programming solutions. Also, Expert Exchange maybe a competition but it provided me full solution yesterday without requiring any login; so, being a once paying member there, I had assumed that they have now become a 'free' site. But today their link doesn't work.

Related

Windows 10 Crash, cannot boot [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
So i have a challenge and question for you. My Windows 10 crashed itself yesterday evening with orange "bluescreen of death"(cursed be the guy or girl that designed cashing in Windows). I don't exactly remember the message but when laptop turned off... there was no longer detectable instance of Windows(cursed be the guy or girl designing boot part of Windows 10, only an idiot could do it like this).
Machine is Lenovo Y700 and Windows 10 x64.
That was the problem description part.
My troubleshoot part begins now. NONE OF THESE WORKED
I tried to check if that was hardware problem but all disks are detectable. Tried to reattach them. They all seem to be working fine.
Tried to change from UEFI boot to Legacy boot.
I created bootable repair USB and tried to chkdsk /r c:, nothing was corrupted there
Tried BOOTREC /SCANOS, BOOTREC /FIXMBR, BOOTREC /FIXBOOT, BOOTREC /REBUILDBCD.
Tried to automatic repair system. I knew it would not work as Windows troubleshoot tools are made by "dumb people" and they never work on Windows 10 but ok.(yes they are, in previous month my Windows 10 corrupted thanks to dumb system update cutting me from every program as they could not launch and menu start were frozen)
Tried revert to previous compilation but it cannot detect Windows Bootable Manager most probably, so no luck.
Cannot revert to base version as it does not see Windows at all.
Tried to install new Windows on top of the old one but it does not detect anything about it, so i don't even have the fricking WINDOWS KEY AS IT IS BUILT IN WINDOWS INSTANCE... GRRRRR
Now i need somebody to help me fix detection of Windows instance, so i can do anything about it. Please help.
You could try to remove the harddisk and conect is with an adapter to usb so it acts like an external drive, then install windows on it and place it back.
Or swap the disk in another laptop and do the same thing.
Or you could try to reinstall your bios (wich could cause even more headache)
Or perhaps your harddisk crashed and is not recoverable then replace your disk.
Or try to remove your RAM memory, perhaps that is corrupted..

Is "run as an adminstrator " the highest level? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm currently using a tool to modify hosts file ,and it said i should run it as administrator to replace hosts file, and i did so.
but ,it still failed.
And when i manually copy hosts file to etc folder, Windows will also ask me to provide administrator permission to copy to the folder.
This refresh my opinion about Windows administration.I also have wrote some programs that need to be run as administrator, and it works fine,i never though there is something you can't do even run as administrator.
So,if "run as administrator" isn't the highest level, how could a application request a higher level?(eg. replace hosts file on my computer)
Here is what i found after posting this question:
1.Thanks guys below, your opinions inspired me.
2.It's surely not related to safe mode.
3.I manually right click on the host tool and select "run as administrator", it works!It can replace the hosts file!You guys can try it,if you run notepad as administrator, it will also can write to hosts file.
so,here is what i guess:
The system do have two administrator level.
When double click on the my hosts tool, it only requires the lower level of administrator,so it failed to replace hosts file.
But manually right click and run as administrator, the system will give the tool highest level,and it can replace hosts file.
Explorer.exe only have a lower administrator level even you log in as administrator.That's why I need further permission when i paste hosts file manually.
What you did,I was trying to achieve the same manually,but I also faced the same situation. Actually,going into the permission related section,you will find that there are 3 users/groups at least assigned to each system :-
System
Administrator(includes all those accounts which are admin)
the logged in user-account.
So,basically,what Windows does I guess is that it takes special care about the systems file like C:/Windows/System32/driver/etc/hosts.file is a system-configuration related file which looks for mapping the hostnames to IP-Addresses!
The hosts file is one of several system facilities that assists in
addressing network nodes in a computer network. It is a common part of
an operating system's Internet Protocol (IP) implementation, and
serves the function of translating human-friendly hostnames into
numeric protocol addresses, called IP addresses, that identify and
locate a host in an IP network. // Taken from Wikipedia
Hence,you need to have a special permission for editing or configuring hosts file like editing it in safe mode. Though default settings are those which I mentioned, you can always manually configure the permissions.
But,the one line answer to your question is
Yes,System Configuration Files aren't editable manually by default,either they need editing to be done only if Windows is running in Safe Mode,or you need to change the settings manually for your administrator account...

Chroot equivalent utility for running program on offline windows installation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
Chroot is often assimiled to be a kind sandbox. But in Unix, it also allow use of programs on certain non-bootable installation.
When I search chroot for windows: I see things like sandbox. I don't want security, I want a way to rescue the system. By example, if I disabled syskey with ntpasswd, running C:\windows\system32\syskey.exe with a such utility would modify the registry entries of the of the offline installation, not the current one.
It could be called runon similar as runas for alternative users.
What chroot would means here for windows? Well, there is winre which allow having the same drive letters of your windows installation. There is an example: compact.exe is not present on winre installs. if you cd to \%Windir%\system32 (the directory of the offline install) and run compact, it won't work(except if you use it with /?). If you run
X:\sources\>path C:\Windows\System32\
You now use the files present in your offline windows. Base dlls such as ntdll.dll or eventually gdi.dll are those from C:\Windows\System32 instead of X:\%windir%\system32 and running compact will work.
But Programs runned by this way will use the current registry. The main keys (HKLM; HKCC; HKCR; HKCU; HKU; HKEY_PERFORMANCE_DATA) with their contents, are those of the current winre/pe installation, not those you have when you booted in your windows. So, if a program want to modify some registry entries, it will modify the Hives of X:\windows\system32\config not those of located in the C:\ systemdrive.
It is possible to mount the Hives of your offline windows under HKLM and edit them, but the programs which have their informations in HKLM\Software would still look at HKLM\Software and not at the name you mounted it.
The utility I am looking for would (partially?) hide the registry of winpe/re in favour of the one present in the offline install. The expected effect is that if you launch the registry editor with the utility, you will see the keys as if you would have booted into windows. (Maybe with some exceptions?)
The application would still use the Microsoft services of the current windows. I'd like launching services installed on the offline windows that are not installed on the current one. It would be nice to do this even for kernel ones. By this way, you would have the same behaviour when you launch sysv daemons in unix. Except here some mechanism for avoiding dual instances could be necessary, because the problems would be more critical on windows
The user access rights are an important part in the Microsoft systems. Specifying a user name and password in the parameters of the command line could be necessary. Some problems occurs with a bad User database configuration and prevent windows to boot. If want to enable syskey again, It would need to have the authentication informations which couldn't be used. But in some case like syskey problems, it make windows in endless reboots. I think one possibility would be to find a way to mount the user Hives by providing their path instead of login informations. Or if it is impossible, try to keep the user keys/informations of the current booted windows.
I don't know if a utility like this exist. I'd like help for programming it with mingw from linux (I can't have Visual Studio) . It would be good if it don't need to be installed. I would like it don't use .NET or the full windows API, because I would like to see it working under winre. I write for C/C++ under linux, but I never done it for windows. The only experience I have is provided by the fact I managed to build 7-Zip with winebuilder. I just know that the main function is called "main" for console programs and "WinMain" for windows ones. I am not familiar with WINAPI nor nt API. I just know there are not real equivalent to the chroot() of the Unix API.
I hope this is possible, thanks in advance.
The answer, after some review, is No. You can't do that. There are too many embedded references to HKEY_LOCAL_MACHINE in the various system DLLs; at the very best, you would end up with a very buggy system (since different parts of the system would be seeing different views of the machine configuration.)

How Do You Clone A VM Using VMware Fusion? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Is it possible to clone a virtual machine using VMware Fusion on Mac OS X? I'm trying the 30 day evaluation version but there doesn't appear to be a clone feature. I tried using the Finder to copy a VM's package structure but the copy didn't appear in the Virtual Machine Library.
Just use File->open to open the copy of the VM. It will probably ask you if you want to change the VM's unique ID. If you plan to run both the original and the clone at the same time, and it's not a Windows OS that needs activation, you should say yes.
In the Virtual Machine Library window select the add button (upper left)
Select "New"
Select "Continue without Disc" button
Select "Use an existing virtual disk:"
browse to where the Vm you want to clone is located. On the bottom half of the screen you have 3 options. To create a totally separate VM select the first one " Make a separate copy of the viral disk" and just follow the instructions.
just copy the folder cp -R folder newfolder (in your docs folder) Open the folder in Vmware and say you copied it Have a look on weblog.jamisburk.org, august 15
as there may be issues with networking
Justin
I don't know fusion in detail, but in VMWare Server you can just copy the files somewhere else.
Here are the instructions on VMware's site:
http://kb.vmware.com/kb/1001524
To copy the virtual machine:
Power off your virtual machine.
Note: Making a copy of a virtual machine while it is running or
suspended can create a copy that may not boot.
Find the virtual machine bundle. For more information, see Locating
the virtual machine bundle in VMware Fusion (1007599).
Drag the virtual machine bundle to the location where you want the
copied bundle to be. If you are copying it to the same folder or
somewhere else on your hard drive, hold down the option key -- this
tells Mac OS to copy the file rather than moving it. If you are moving
the bundle to another drive or a network share, Mac OS copies the file
automatically. The cursor is superimposed with a green circle and a
plus sign, indicating that a copy will be made.
Note: This does not affect your current virtual machine.
If you power
on the copied virtual machine, Fusion asks if you have moved the
virtual machine or copied it. Select that you Moved It (unless you
need to run the copied virtual machine at the same time as the
original). This indicates that it is the same virtual machine, just
starting from a new location, and keeps all of the settings the same.
Note: When you select the Copied It option, a new UUID and MAC address
are generated, which can cause Windows to require re-activation and
may cause network issues.

What are some good SSH Servers for windows? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Trying to setup an SSH server on Windows Server 2003. What are some good ones? Preferably open source. I plan on using WinSCP as a client so a server which supports the advanced features implemented by that client would be great.
I've been using Bitvise SSH Server and it's really great. From install to administration it does it all through a GUI so you won't be putting together a sshd_config file. Plus if you use their client, Tunnelier, you get some bonus features (like mapping shares, port forwarding setup up server side, etc.) If you don't use their client it will still work with the Open Source SSH clients.
It's not Open Source and it costs $39.95, but I think it's worth it.
UPDATE 2009-05-21 11:10: The pricing has changed. The current price is $99.95 per install for commercial, but now free for non-commercial/personal use. Here is the current pricing.
I agree that cygwin/OpenSSH is the best choice, but its setup can be involved to say the least. Here is a document to get you started though: Installing OpenSSH
I've been using Bitvise SSH Server for a number of years. It is a wonderful product and it is easy to setup and maintain. It gives you great control over how users connect to the server with support for security groups.
copssh - OpenSSH for Windows
http://www.itefix.no/i2/copssh
Packages essential Cygwin binaries.
OpenSSH is a contender. Looks like it hasn't been updated in a while though.
It's the de facto choice in my opinion. And yes, running under Cygwin is really the nicest method.
VanDyke VShell is the best Windows SSH Server I've ever worked with. It is kind of expensive though ($250). If you want a free solution, freeSSHd works okay. The CYGWIN solution is always an option, I've found, however, that it is a lot of work & overhead just to get SSH.
You can run OpenSSH on Cygwin, and even install it as a Windows service.
I once used it this way to easily add backups of a Unix system - it would rsync a bunch of files onto the Windows server, and the Windows server had full tape backups.

Resources