I found it is not so special to run vbs (Visual Basic Script) in Windows PowerShell because most of the time you can do that using cscript with command prompt (cmd.exe).
But what I guarantee you cannot do is to change directory to a remote machine using command prompt for example, as can see from the picture below I have a machine with IP address 192.168.1.26 so I can change the directory to c root of this machine by cd \\192.168.1.26\c$. I can perform other file operation directly in the remote machine such as make directory, copy file(s), delete directory and more.
In the past in order to manipulate files in between two or more machines you might need to map a network drive with a local drive letter. Windows Powershell gives me a better way to do this today.
In order to get to know more about Windows PowerShell go to script center :http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx.
Please feedback if you have other tips.
Comments (4)
Hi, this is a nice feature for people who work on windows a lot. I have a question on the security/authentication related to the remote machine. If I log on to my local PC with my ID and to the remote with a different ID, am I able to specify my username/pswd (for remote login) in the command line as well (for wxample by "cd \\remotehostname\c$ -user myID2 -password mypswd" on unix)? Thank you in advance.
Posted by Judy | November 4, 2008 2:49 AM
Posted on November 4, 2008 02:49
Of course you can change the directory to a remote machine, you just use the pushd command to map a drive and then popd to unmap it.
You could also do netuse, but pushd is faster.
Posted by Jason | December 13, 2008 2:45 AM
Posted on December 13, 2008 02:45
Nice app. Please come and see my blog and make me some money by clicking the ads, please I beg on you sir... please
Posted by renceman | February 13, 2009 9:45 AM
Posted on February 13, 2009 09:45
he's nut
Posted by js | February 16, 2009 3:51 PM
Posted on February 16, 2009 15:51