Changes

Jump to: navigation, search

Working with File Systems in Windows PowerShell 1.0

33 bytes added, 14:52, 15 May 2009
no edit summary
* '''UNIX/Linux sh command''' The UNIX/Linux shell equivalent command to help user migrate skills to Windows PowerShell.
The following table lists the key file system related cmdlets together with the alias, cmd and Unix UNIX shell alternatives:
<google>ADSDAQBOX_FLOW</google>
<table border="1" cellpadding="5" cellspacing="0" id="E3B" style="border-collapse: collapse; border-color:#cccccc; border-style: solid; border-width: 1px; margin-bottom:20px">
</pre>
== Getting Information About about Network Drives in PowerShell ==
In addition to obtaining information about disk drives attached to the local system, it is also possible to get information about mapped network drives from within Windows PowerShell. This is achieved by accessing the WMI win32_mappedlogicaldisk object. As with most objectobjects, this one provides a wealth of information so it is often best to select only those attributes which that are specifically needed. The following command, for example, displays the device ID, the name of the remote server on which the disk is physically located and the amount of remaining free space on the particular drive:
<pre>
== Windows PowerShell File System Directory Listings ==
A listing of the files and sub-folders in a directory may be obtained using the ''Get-ChildItems'' cmdlet, or the ''dir'' alias> with no parameters, the current directory is assumed. Alternatively, a path may be provided to the desired directory:
<pre>
PS C:\Users\Administrator> remove-item -recurse c:\tmp3
</pre>
 
 
<google>BUY_WPS_BOTTOM</google>

Navigation menu