Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x

Microsoft Legacy OS

55K

Solutions

42K

Contributors

The Microsoft Legacy Operating System topic includes legacy versions of Microsoft operating systems prior to Windows 2000: All versions of MS-DOS and other versions developed for specific manufacturers and Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions, and Windows Mobile.

Share tech news, updates, or what's on your mind.

Sign up to Post

hello experts
i am using below powershell script to telnet my network device and do some automatic task, for example change WIFI password and send email out daily, while i test it connect to network devices such as router and switch, it works, but when i try to using this script connect to Cisco WLC it failed because WLC do not support raw telnet mode any more so it drop the telnet connection come from my script. for i am new for powershell, could you help me do some modify for my script so that it not using raw telnet mode while connecting to network device?
thank you

Function Get-Telnet
{   Param (
        [Parameter(ValueFromPipeline=$true)]
        [String[]]$Commands = @("username","password","disable clipaging","sh config"),
        [string]$RemoteHost = "HostnameOrIPAddress",
        [string]$Port = "23",
        [int]$WaitTime = 1000,
        [string]$OutputPath = "\\server\share\switchbackup.txt"
    )
    #Attach to the remote device, setup streaming requirements
    $Socket = New-Object System.Net.Sockets.TcpClient($RemoteHost, $Port)
    If ($Socket)
    {   $Stream = $Socket.GetStream()
        $Writer = New-Object System.IO.StreamWriter($Stream)
        $Buffer = New-Object System.Byte[] 1024 
        $Encoding = New-Object System.Text.AsciiEncoding

        #Now start issuing the commands
        ForEach ($Command in $Commands)
        {   $Writer.WriteLine($Command) 
            $Writer.Flush()
            Start-Sleep -Milliseconds $WaitTime
       

Open in new window

0
Receive 1:1 tech help
LVL 11
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Hi,

i am using Microsoft OMS for getting logs from Azure VM's and based on the logs i want to generate alerts. I want to get "Disk Names" from the logs which are generated when the disk space gets exhausted. Does anyone have a idea on how to get disk names in Microsoft OMS ?

Regards,
Mahesh
0
Hi,

we have a user that has a lock on his profile and does not have permissions.  He is receiving permission errors when trying to open excel and pdf's.  We tried repairing his office and reinstalled it as well.  windows 7

Thanks,
jenn
0
I have a unique situation and nobody in our team have seen it before. Please feel free to ask if you need clarification.
I have a windows2003 AD and WinXP as clients-
I want to create a separate OU for Win7 clients and be able to push GP for Win7 instead of the default domain policy meant for XP.  The current GP is for XP and that will not support Win7 clients.
Questions- How do I create a separate GP for Win7 machines and apply but still keep XP group policy?
My security officer must generate a report (SCAP) and it must have Win7 GP applied in order to determine the baseline.
0
Teredo server set in client type ,  it can not enable it to be online , ISP is having an enterprise IPv6 dhcp for earlier-catch clients under it . The right type is enterprise of Teredo ?  If then, there is no IPv6 can be seen from my computer later afterward ?


enable teredo
0
We have defined a VPN boundary group for our remote employees in single site, single server SCCM current branch (1706) setup. Our company's setup is very simple - one server is the site server, DP, and MP. We're all in one building. However we need to define the "VPN" boundary group to be a "slow" link for those that connect remotely.

I cannot find a way to do this in SCCM 1706. Does anyone know how to do this?

KH
0

Microsoft Legacy OS

55K

Solutions

42K

Contributors

The Microsoft Legacy Operating System topic includes legacy versions of Microsoft operating systems prior to Windows 2000: All versions of MS-DOS and other versions developed for specific manufacturers and Windows 3/3.1, Windows 95 and Windows 98, plus any other Windows-related versions, and Windows Mobile.