简体   繁体   中英

vssadmin execute from Cygwin shell, class not registered

Copying the Original question from here , as some genious decided to close it.

I am using VSS for a Windows 2008 R2 machine.

I can execute "vssadmin List Shadows" and other commands successfully in Windows Cmd shell.

But I need to execute it through a Cygwin shell, for remote access purpose.

I always got " Class not registered." error in the Cygwin shell, I checked the path and variables. The variables are the same. The Cmd shell paths are all in the Cygwin shell.

Thanks!

Just take care that the cygwin build ist the proper arch. When installing cygwin one can either user the x86 or the x86_64 installer (or the -a x86[_64] command line switch). By calling a 32bit cygwin bash from inside a 64bit cmd on a 64bit Windows, the environment will be switched to 32bit and inside that vssadmin will have no access to the 64bit libraries/services it requires.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM