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 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.


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.4 Documentation Build 39.