Skip to main content
Question

Script to unhide Cisco Secure Client VPN module

  • March 28, 2024
  • 1 reply
  • 172 views

Forum|alt.badge.img

Hi all, 

 

I'm looking for PowerShell to unhide the Cisco Secure Client VPN Module. Cisco Secure Client is already on our machine, but the VPN module is hidden. I want to unhide it. 

 

 

1 reply

Forum|alt.badge.img
  • Novice
  • 19 replies
  • March 28, 2024

Try this.

 

# Check if the file exists
$fileToDelete = "C:\ProgramData\Cisco\Cisco Secure Client\VPN\Profile\VPNDisable_ServiceProfile.xml"

if (Test-Path $fileToDelete) {
    # Delete the file
    Remove-Item $fileToDelete -Force

    # Restart Cisco Secure Client - AnyConnect VPN Agent service
    Restart-Service "vpnagent" -Force
    Write-Host "File deleted and Cisco Secure Client - AnyConnect VPN Agent service restarted."
} else {
    Write-Host "File does not exist. No action taken."
}
 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings