Powershell Invoke-Commad in VB .Net?

QuaziBee

Daemon Poster
Messages
661
Location
Calgary, AB
Is there a feature in VB .Net like Powershell's Invoke-Command?

I have to access logs on a ton of terminals that are on my WAN but not on the domain. GP permissions do not allow me to simply add credentials to my PC so I can gain access, and the only way I know how to gain access while using VB is to map a drive to each machine.

Invoke-Command allows me to easily pass creds for access and is very fast; however, I have only started learning Powershell and was wondering if there was something like this in VB.

I haven't tried setting up Impersonation yet as it seems pretty involved.
 
can you use vb to execute a shell command?

the dos command 'net use ' can map a drive

Code:
C:\Windows\system32>net use /?
The syntax of this command is:

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [/SMARTCARD]
        [/SAVECRED]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]
 
Back
Top Bottom