Posted by: Preetam | May 5, 2008

Re-Fresh to Powershell

image

CODE

$Strg=Read-Host “insert string”
$Strg.toupper()

 


image

CODE

Get-WmiObject -List | where{$_.name -like “win32_B*”}


 

image

CODE

Get-WmiObject win32_bootconfiguration | fl



PS C:\newpowershell> Get-WmiObject -Class win32_share

Name                                    Path                                    Description
—-                                    —-                                    ———–
E$                                      E:\                                     Default share
IPC$                                                                            Remote IPC
G$                                      G:\                                     Default share
F$                                      F:\                                     Default share
ADMIN$                                  C:\WINDOWS                              Remote Admin
C$                                      C:\                                     Default share

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: