ws

display the name of the current workstation or desktop 

Command


SYNOPSIS

ws [-d]


DESCRIPTION

The ws command (for Window Station) displays the name of the current workstation or desktop. This command can be used to generate an object-name argument for chacl command when changing the Access Control Lists on remote window stations using facilities such as telnet.

If no options are specified, ws returns the name of the current windowstation. If you are logged onto the console, this is always

WinSta0

Options

-d 

returns the current desktop name. If you are logged onto the console, and are not using a desktop switcher, this option always returns

Default


EXAMPLES

To give permissions for user to access your window station and desktop, use the following command:

chacl -t w -g user:f $(ws) $(ws)/$(ws -d)

DIAGNOSTICS

Possible exit status values are:

0 

Successful completion.

>0 

An error occurred.


PORTABILITY

Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
chacl, tty


PTC MKS Toolkit 10.1 Documentation Build 15.