Link to home
Create AccountLog in
Avatar of beardog1113
beardog1113Flag for China

asked on

get-telnet command not found under powershell

hello experts
while i am trying to using get-telnet command via powershell, but looks like there is not such command by default, does it necessary to import some module like activedirectory or other steps to make it out?

thank you
Avatar of footech
footech
Flag of United States of America image

Get-Telnet is not a default cmdlet or included in any Microsoft modules.
There could be many Get-Telnet functions or scripts written by people on the internet, but this is the first one I found in a search - https://community.spiceworks.com/scripts/show/1887-get-telnet-telnet-to-a-device-and-issue-commands

In the posted script, the Get-Telnet function is defined, and you would have to run that code to create the function.  Then you could call it like in the examples at the end.
The get-telnet appears to be some custom script from somewhere.

Not Microsoft. Not Linux. Not OSX.

You'll have to locate this script somewhere + make a local copy + get it working locally for your specific runtime environment.
Avatar of beardog1113

ASKER

hello
actually i just need a powershell script,put into windows schedule task, so that it could telnet network device such as wireless AP, to change WIFI network password daily, is there any other easy way to do this? for i am new for powershell script and need more detail help.
thank you
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
thanks, your post really helpful and i have done build my script base on the example.