1
vote
1answer
419 views

Full Information from Terminal Services Manager (tsadmin.msc) via command line

I would like to get the full session information that is presented in the Terminal Services Manager via the command line or PowerShell (so that it can be used in automation) or at the very least the ...
0
votes
1answer
63 views

CLI package to replace Plesk [closed]

Myself and another programmer are tasked with maintaining a few webservers. I prefer CLI tools, she prefers Plesk. However, I am adamant about not installing Plesk for quite a few reasons. I have ...
1
vote
3answers
1k views

Using command line to see if a given computer's local guest account is disabled

I need to generate a report that shows the guest account is disabled for a given list of computers. How can I use net user, powershell, or any other commonly used tool for this purpose?
3
votes
1answer
492 views

Removing a file whose name is the backslash character

I've somehow created a file called \ in a directory (yes, backslash character). I've tried all sorts of sed, find and grep fu but I just can't delete it! I know I could just delete the directory, but ...
2
votes
2answers
1k views

Power Shell does not like command

Any ideas what I did wrong here? I copied this script from a tutorial and get this error.... PS C:\Windows\system32> Get-Service | Where-Object ($_.status -eq "running") Where-Object : Cannot ...
3
votes
13answers
1k views

How can I manage a list of frequently accessed hosts?

How can I quickly select and log in to the multiple hosts that I need to access via ssh? I'm building a shell script like the one below that uses dialog to show a menu of hosts from the command line ...
6
votes
19answers
2k views

Do you prefer to administrate servers through a GUI or CLI? [closed]

Do you prefer to admistrate servers through a GUI or CLI? Please state which system OS's you are answering for.
34
votes
30answers
5k views

Command line safety tricks [closed]

Command line and scripting is dangerous. Make a little typo with rm -rf and you are in a world of hurt. Confuse prod with stage in the name of the database while running an import script and you are ...