Cisco VPN client and Windows 10 Problems (Solved)

After I am install windows 10 I was problem with Cisco VPN connection. This is some fix that I am found:

First error:
"Error: Secure VPN connection terminated by Peer. Reason 433 (Reason not specified by peer)"
To solve this error you must first uninstall at all CiscoVPN client and restart your computer.
After that download CiscoVPNpack from this site and extract pack from zip file.
1. first run winfix.exe and after one minute and message about restart you must RESTART computer
2. install file from sonic32 or depend your sistem and RESTART computer.
3. install CiscoVPN client x32 or x64 depend your sistem and RESTART your computer.

Files neaded for this solution: winfix.exe, GVCInstall32 or 64.msi (from sonic32 or, vpnclient-win-msi- or version for 64bit system.
After this few step try to configure your client and connect to site.

Second error:
"Reason 442: Failed to Enable Virtual Adapter"
Open your Windows Registry Editor by typing regedit in the Run prompt and browse to the Registry Key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CVirtA

Select and right-click on DisplayName and choose Modify from the menu. In opened box write:
"Cisco Systems VPN Adapter" -for 32bit system
"Cisco Systems VPN Adapter for 64-bit Windows" -for x64 system

Below is default value in DisplayName box:
@oem8.inf,%CVirtA_Desc%;Cisco Systems VPN Adapter” to "Cisco Systems VPN Adapter"
@oem54.inf,%CVirtA_Desc%;Cisco Systems VPN Adapter

If you have any of this problems when install Cisco VPN client like error 1720, error 1721, error 1722 you can try to solve that problem on this page.

Find hard disk bad sectors (error 7) if exist on remote computers - Script 2017

This is one great script to find bad sectors if exist on remote computers list.

#Format Excel sheet

[System.Threading.Thread]::CurrentThread.CurrentCulture = New-Object "System.Globalization.CultureInfo" "en-US"
$objExcel = New-Object -comobject Excel.Application
 $objExcel.visible = $True
 $objWorkbook = $objExcel.Workbooks.Add()
 $objSheet = $objWorkbook.Worksheets.Item(1)
 $objSheet.Cells.Item(1,1) = "Server"
 $objSheet.Cells.Item(1,2) = "LogName"
 $objSheet.Cells.Item(1,3) = "EventID"
 $objSheet.Cells.Item(1,4) = "Date"
 $objSheet.Cells.Item(1,5) = "Message"
 $objSheetFormat = $objSheet.UsedRange
 $objSheetFormat.Interior.ColorIndex = 19
 $objSheetFormat.Font.ColorIndex = 11
 $objSheetFormat.Font.Bold = $True

$row = 1

$servers = gc C:\Users\YOUR USERNAME\Desktop\machines.txt

foreach ($server in $servers)
 $row = $row + 1
 $objSheet.Cells.Item($row,1).Font.Bold = $True
 $objSheet.Cells.Item($row,1) = $server
$AppLog = Get-EventLog -LogName System -EntryType Error -computer $server -Newest 30 | Where-Object {$_.EventId -eq ’7’}
$row = $row + 1
 $objSheet.Cells.Item($row,1).Font.Bold = $True
 $objSheet.Cells.Item($row,2) = 'System'
 foreach ($AppEvent in $AppLog)
 $row = $row + 1
 $objSheet.Cells.Item($row,3) = $AppEvent.EventID
 $objSheet.Cells.Item($row,4) = $AppEvent.TimeGenerated
 $objSheet.Cells.Item($row,5) = $AppEvent.Source
 $objSheet.Cells.Item($row,6) = $AppEvent.Message

$objSheetFormat = $objSheet.UsedRange
 $objSheetFormat.RowHeight = 15

User can change values in this place in script:

{$_.EventId -eq ’7’}  - number 7 is event number for bad sectors and user can replace this number with any event number from event viewer which means that the script can be used to retrieve any problems - only for errors (red event logs).

User must be local administrator on all remote computers in computer list.
If user with this script don't find anything that is great news but if result in excel contains event 7 logs that is problem for single computer.

Slow android mobile - Clean your android tips and tricks 2016

Well, I was use mobile with android for many years and one of problems with android is that becomes slower after some time - month or year of use. I have some helpful tips for android users.

Android is like windows require maintain like any other os. There are some useful stuff that we can do.  When I was bay new mobile with android first that I was do I am disabled some apps. Go to settings - General - Apps and scroll from right to left for All apps list and disable if you don't need:

1 Android System WebView
2 Chrome
3 Drive
4 Google App
5 Google Play Games
6 Google Play Movies & TV
7 Google Play Music
8 Google Play Newsstand
9 Google +
10 Hangout
11 Internet (default browser)
12 Maps

Just click on any of this app then click uninstall updates, force stop and button Disable.

I was disable all of this google apps and I have more free space on mobile, more memory. I was disable all of this apps but user can leave some apps like chrome...
I was replace chrome with CM browser because I can move CM browser to SD card and it is smaller and faster then chrome.

It is preferably that user manually clean cache every week in Settings - Storage and tap to Cached data.

When press Home button we get all running apps - tap Clear all if mobile was slow.
"CM Lite" is great app for temporary clear memory and junk files from mobile phone and antivirus protection.

Just one more suggestion - don't root your mobile if there is no great need for that.
In many case after mobile was rooted it is slower or has other problems from my experience. 

If mobile was still very slow after all of this steps then user must check storage space on mobile, messenger apps(drain too match memory) like facebook apps or any other apps that is all time in memory. Last action if mobile was unusable is factory restart for mobile phone. Before factory restart user must make Full mobile backup with factory or some other tools because factory restart delete all user data.

Factory restart option is on Settings - General - Backup & reset and Factory data reset tab.

That is all.

Share it here If someone know any other useful trick for android.

Determine what service pack is installed on remote computers.

This is script with you can determine which service pack is installed on remote computers:

$Catalog = GC "C:\scripts\computers_list.Txt"
ForEach($Machine in $Catalog)
{$QueryString = Gwmi Win32_OperatingSystem -Comp $Machine
Write-Host $Machine ":" $QueryString.caption "Service Pack: " $querystring.servicepackmajorversion}

PowerShell to export desired Active Directory Group Members to a CVS File

This is simple script for choose some Active Directory group and export members that belong selected AD group to CSV file.

 Get-ADGroupMember “YOUR GROUP” | Select Name, SamAccountName | Export-Csv -Path “C:\Temp\Output.csv” -NoTypeInformation

Domain user password expire check with script

This is very simple script for pasword expire check :

@echo "____________________________________________________"
@echo "| Password expire checker by Amir |"
@echo "|__________________________________________________|"
@echo ""
@echo ""
@echo off
set /p input=Type input:
net user %input% /domain

Script for remote cancel all print job

This is simple scripts for cancel all print job with psexec tool on remote computer without log in on remote computer.
You must be local administrator on remote mashine.

@echo "____________________________________________________"
@echo "| Remote Print cancel           V1.0 by Amir |"
@echo "|                                                  |"
@echo "|To finnish session, type 'EXIT'!                  |"
@echo "|__________________________________________________|"
@echo ""
@echo ""
@echo off
set /p input=Type input:
c:\pstools\psexec.exe -s \\%input% -c \\YOURPATH\CleanSpooler.cmd -u YOUR USERNAME -p YOUR PASSWORD
Save script above like: RemotePrintCancel.cmd
Download psexec tool from Sysinternals.

Clean spooler script is:

net stop spooler
del %systemroot%\system32\spool\printers\*.shd
del %systemroot%\system32\spool\printers\*.spl
net start spooler
Save above script as CleanSpooler.cmd and copy on some shared location(YOURPATH) where all users have access. Thats it just run first script with corect path for second script.