Monthly Archive for July, 2007

Network Hardware Auditing and Comparison

I’ve looked for countless hours for a program that will audit my network and give me the comparison reports i require and to track hardware changes.

I googled and googled but nothing out there is quite the same. Out of desperation i started writing a WMI PowerShell script to audit my network. Then, my boss found a link to SpiceWorks. Man this thing is awesome and FREE! I dont work for SpiceWorks or anything, I just want to spread the word. My only warning is that this sends out a huge huge flood of SNTP packets, but then again, what audit program wont, right?


Spiceworks Desktop Screenshot

Get Spiceworks & Set IT Free!

Free PowerShell Stickers

Just browsing some PowerShell meaterials and I noticed a site where you can get free WPS stickers. Neato!
That site is here.

Three Freeware Lists

TheFreeGeek
EConsultant
PCWorld

Who dosen’t love sorting through freeware?

Browse to Remote Passworded Shares

Have you ever tried to use PowerShell to browse to a remote hard drive by typing ‘cd \\server\c$’? Well, unless a lot of things are in line, that just wont work so easily. I found a simple way to ‘open the session’ with the remote computer, allowing you to set-location right over to the drive. All you have to do is set your credentials in the .ps1 file, then run it with a server specified.

Example:
Unlock-Server IISServ
Unlocks IISServ and browses to C$ (by default settings)

Here’s the difference:

PS C:\PowerShell> cd \\iisserv\c$
Set-Location : Cannot find path ‘\\iisserv\c$’ because it does not exist.
At line:1 char:3
+ cd < <<< \\iisserv\c$
PS C:\PowerShell> .\Unlock-Server.ps1 iisserv
The command completed successfully.

PS Microsoft.PowerShell.Core\FileSystem::\\iisserv\c$>

Here’s the simple file:
Unlock-Server.ps1

#unlock server and start share session
#ericgreer@gmail.com

$user = “YourAdminUserHere”
$password = “YourPasswordHere”
$drive = “c$”

net use \\$args /user:$user $password
set-location \\$args\$drive

If you just want the script to ‘unlock’ the server and prepare it for any location you want to specify, remove the line that browses to the location ( set-location \\$args\$drive ).

I hope someone else finds this as useful as I have for running commands on remote hard drives from your PowerShell session.