E
E
ENigma3712021-01-20 14:47:24
VMware
ENigma371, 2021-01-20 14:47:24

How to make a connection to a VM via VMRC without the right to choose?

How can I make sure that when I click on the Launch Remote Console in vSphere, this window does not open and VMRC starts immediately, if the user has a Workstation, he will start the VM in it, which we want to prevent.
60081a7915c33109903548.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Barbolin, 2021-01-20
@dronmaxman

https://blogs.windows.com/windowsdeveloper/2016/10...
Must read.

S
Stanislav Makarov, 2017-05-28
@mak_ufo

That's why (source: https://github.com/DefinitelyTyped/DefinitelyTyped... ):

interface NodeRequireFunction {
    (id: string): any;
}

interface NodeRequire extends NodeRequireFunction {
    resolve(id: string): string;
    cache: any;
    extensions: any;
    main: NodeModule | undefined;
}

declare var require: NodeRequire;

The result of the require operation is typed as any, and any can be put into a variable of any other type (this is done so that any works as a means of disabling strict typing).
To do type checking, you either need to include config.json not as json, but as a module, and do it using TypeScript, or parse JSON using tools that validate against JSON Schema.
You can check out this project: https://github.com/JohnWeisz/TypedJSON (requires decorators though).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question