Posts RDP sessions with PowerShell
Post
Cancel

RDP sessions with PowerShell

Windows PowerShell ISE editor - http://www.powertheshell.com/

the script itself from commandline :

http://irisclasson.com/2015/12/03/saving-rdp-sessions-with-posh/

make script, scriptfile :

-at windows explorer create a new file yourname.ps1 -edit yourname.ps1

1
2
3
4
5
6
7
8
9
10
11
$target = "ThePC" #use computer name or IP

$pdw = "12345"

$logon = "administrator"

cmdkey /generic:$target /user:$logon #/pass:$pwd

cmdkey /list

mstsc /v:$target

now, when left-click Snap437

execute the script by PowerShell

snap448

You can run a script via : snap449

1
2
3
4
5
6
7
8
<!--
http://windowsitpro.com/powershell/running-powershell-scripts-easy-1-2-3
http://ss64.com/ps/syntax-run.html
 -->

Set-ExecutionPolicy RemoteSigned

script.ps1

The Modules Directory, By Default exists at :

1
C:\Windows\System32\WindowsPowerShell\v1.0\Modules

Why PowerShell?

https://ramblingcookiemonster.wordpress.com/2013/12/07/why-powershell/

PowerShell Resources

http://ramblingcookiemonster.github.io/Pages/PowerShellResources.html

PowerShellJS

https://github.com/klumsy/PowerShellJS

Set of commands to install PowerShell modules from local file or from the web.

http://psget.net/ https://github.com/psget/psget/

origin - http://www.pipiscrew.com/?p=2732 rdp-sessions-with-powershell

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags