WSL(1)
π WSL β the whistle girlies' guide π
okay bestie, so this is wsl β aka "whistle" π β and she's a shell based command line client for WSMAN servers. Let's get into it.
β¨ NAME β¨
wsl β a shell based command line client for WSMAN servers. that's the whole vibe. π¦
πΈ DESCRIPTION πΈ
so wsl (aka "whistle", so cute) is a whole lil collection of scripts that work as a client interface to WSMAN, which is short for Web Services for Management protocol, built on the DMTF standard specification. and WSMAN itself? it provides standards based messaging for systems management CIM-style objects. standards based messaging, we love to see it. π
okay so the first thing you're gonna do, to talk to a remote WSMAN service, is start with:
wsl id check
that command is gonna ask for the IP address, user name and password for the remote server, and then it populates a file called .wslrun in the current directory. π after that first run, you can just use all the commands listed below without having to hand over your IP address, user name and password over and over again β that's the default behavior, periodt. β¨
but (and this is the fun part) you can configure wsl so it always asks for the IP address, or the IP address and user credential, for each and every command β in case you wanna work with more than one target. multitasking queen behavior. π
the environmental variables that could affect the behavior of wsl are listed in the README file. go look, iykyk. π
help info comes at different levels, which is honestly so considerate of her:
- typing
wslgives you help information about the available commands. - typing
wsl enumgives you help information about theenumcommand and its parameters. - typing
wsl enum helpgives you the same information aswsl enum. same info, different doorway, we love options. π«Ά
π₯ OPTIONS π₯
every single one, bestie. no skips. π
e|enum|enumerateβ sends a SOAP message with the WS-MAN ENUMERATE command. equivalent to callingwslenumdirectly.id|identifyβ sends a SOAP message with the WS-MAN IDENTIFY command. equivalent to callingwsliddirectly.i|invokeβ sends a SOAP message with the WS-MAN INVOKE command. equivalent to callingwslinvokedirectly.g|getβ sends a SOAP message with the WS-MAN GET command. equivalent to callingwslgetdirectly.p|putβ sends a SOAP message with the WS-MAN PUT command. equivalent to callingwslputdirectly.s|setβ seeput. πxcertβ command to extract the SSL certificate of the server hosting WSMAN. πxcleanβ command to remove/delete the files generated by this tool. spring cleaning energy π§Ήxcredβ command to encrypt username and password to a file. the same command can be used for decrypting that same file for verification. equivalent to callingwslcreddirectly. π
π AUTHENTICATION π
wsl supports basic and digest authentication mechanisms. you'll get prompted for user name and password at run time β or you can just hand those values straight to the environment variables WSUSER and WSPASS. dealer's choice. β¨
now, a more secure method is to use the light encryption method that wsl provides. see the xcred command option. it creates a credential file containing the encrypted form of the user name and password. π to use it, simply provide that filename to WSUSER prefixed with FILE:. and in that case? you do not have to provide WSPASS at all. slay. π
π¦ FILES π¦
~/.wsl-configβ this file contains custom user-configurable information that could affect the behavior ofwsl. if it's not there, this file gets created the first timewslis used. refer to the README file for more information. π$PWD/.wslrunβ this file contains environment variables that get populated the first timewslis run, and then used on subsequent runs. it includes the user password, so if security is a concern, try to use the encrypted version (see thexcredcommand) β or you may turn off creation of this file using the custom user configuration (see.wsl-config).
β οΈ bestie real talk: $PWD/.wslrun literally has your password in it. if that's a vibe check you're worried about, go encrypted or switch that file's creation off. π
π COPYRIGHT π
wsl is Copyright (c) 2011, Dell Inc. License: BSD3C or similar.
π AUTHORS π
Created by Chris A. Poblete <www.linkedin.com/in/chrispoblete>. π«
and that's the whole page, angel π«Ά β it lives in your User Commands section as WSL(1), and the manual itself signs off as WSL(1) down at the bottom too, so if you ever see that lonely little WSL(1) footer, that's just her waving bye. bye bestie, go enumerate something ππβ¨
π¦ where this page comes from
- debian bookworm: wsl 0.2.1-3 Β· BSD-3-Clause
- debian trixie: wsl 0.2.1-6 Β· BSD-3-Clause
- ubuntu jammy: wsl 0.2.1-3 Β· BSD-3-Clause
- ubuntu noble: wsl 0.2.1-3 Β· BSD-3-Clause
- ubuntu resolute: wsl 0.2.1-6build1 Β· BSD-3-Clause
- ubuntu stonking: wsl 0.2.1-6build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms