Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Remote administration examples

Reply
 
Old 09-29-2007   #1 (permalink)
Marco Shaw


 
 

Remote administration examples

I'm going to be putting on a PSH demo for a local .NET user group (and
maybe university students). As far as remote administration with PSH,
I want to show some code for some cool examples to get their
attention.

Obviously, the examples will be WMI (get-wmiobject) and ADSI based
(I'll likely use the Quest AD cmdlets). Anyone have any other
interesting examples/suggestions?

I could use some .NET remoting to perhaps start a remote process for
example. Also to view a remote event log...

Examples with WMI: get remote cpu usage, get remote patches installed,
get a listing of the usage of RAM (list slots and ones used/not used), etc.

Anyone have some cool ideas/things I can demo?

Marco


--
----------------
PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com

My System SpecsSystem Spec
Old 09-29-2007   #2 (permalink)
Brandon Shell


 
 

Re: Remote administration examples

For Processes
http://blogs.msdn.com/powershell/arc...owershell.aspx

I would also show them WMI Explorer... that is super cool
http://thepowershellguy.com/blogs/po...er-part-1.aspx

I used .NET and WMI for my Backup-EventLog if you want to show the
difference between .NET and WMI
http://bsonposh.com/modules/wordpress/?p=41

Also... a common request is get installed apps
Get-InstalledApps from http://bsonposh.com/modules/wordpress/?page_id=22
would be cool (bottom)

"Marco Shaw" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:up0mJ%23qAIHA.5980@xxxxxx
Quote:

> I'm going to be putting on a PSH demo for a local .NET user group (and
> maybe university students). As far as remote administration with PSH,
> I want to show some code for some cool examples to get their
> attention.
>
> Obviously, the examples will be WMI (get-wmiobject) and ADSI based
> (I'll likely use the Quest AD cmdlets). Anyone have any other
> interesting examples/suggestions?
>
> I could use some .NET remoting to perhaps start a remote process for
> example. Also to view a remote event log...
>
> Examples with WMI: get remote cpu usage, get remote patches installed, get
> a listing of the usage of RAM (list slots and ones used/not used), etc.
>
> Anyone have some cool ideas/things I can demo?
>
> Marco
>
>
> --
> ----------------
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 09-29-2007   #3 (permalink)
pooradmin


 
 

Re: Remote administration examples

On Sep 29, 1:04 pm, "Brandon Shell" <tshell.m...@xxxxxx> wrote:
Quote:

> For Processeshttp://blogs.msdn.com/powershell/archive/2007/01/16/managing-processe...
>
> I would also show them WMI Explorer... that is super coolhttp://thepowershellguy.com/blogs/posh/archive/2007/03/22/powershell-...
>
> I used .NET and WMI for my Backup-EventLog if you want to show the
> difference between .NET and WMIhttp://bsonposh.com/modules/wordpress/?p=41
>
> Also... a common request is get installed apps
> Get-InstalledApps fromhttp://bsonposh.com/modules/wordpress/?page_id=22
> would be cool (bottom)
>
> "Marco Shaw" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
>
> news:up0mJ%23qAIHA.5980@xxxxxx
>
>
>
Quote:

> > I'm going to be putting on a PSH demo for a local .NET user group (and
> > maybe university students). As far as remote administration with PSH,
> > I want to show some code for some cool examples to get their
> > attention.
>
Quote:

> > Obviously, the examples will be WMI (get-wmiobject) and ADSI based
> > (I'll likely use the Quest AD cmdlets). Anyone have any other
> > interesting examples/suggestions?
>
Quote:

> > I could use some .NET remoting to perhaps start a remote process for
> > example. Also to view a remote event log...
>
Quote:

> > Examples with WMI: get remote cpu usage, get remote patches installed, get
> > a listing of the usage of RAM (list slots and ones used/not used), etc.
>
Quote:

> > Anyone have some cool ideas/things I can demo?
>
Quote:

> > Marco
>
Quote:

> > --
> > ----------------
> > PowerGadgets MVP
> >http://www.powergadgets.com/mvp
>
Quote:

> > Blog:
> >http://marcoshaw.blogspot.com- Hide quoted text -
>
> - Show quoted text -
Working in a higher ed evnoirnment the ability to (usually) find the
servicetag/serial number, manufacturer, and model of computer has help
me out quite a bit when troublshooting pc's remotely since we usually
have a set number of models on campus.

computersystemproduct, computersystem classes in wmi

just a thought.

-J
www.pooradmin.com

My System SpecsSystem Spec
Old 09-29-2007   #4 (permalink)
RichS


 
 

Re: Remote administration examples

Don't forget SMO, Exchange and the other PowerShell enabled apps
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"pooradmin" wrote:
Quote:

> On Sep 29, 1:04 pm, "Brandon Shell" <tshell.m...@xxxxxx> wrote:
Quote:

> > For Processeshttp://blogs.msdn.com/powershell/archive/2007/01/16/managing-processe...
> >
> > I would also show them WMI Explorer... that is super coolhttp://thepowershellguy.com/blogs/posh/archive/2007/03/22/powershell-...
> >
> > I used .NET and WMI for my Backup-EventLog if you want to show the
> > difference between .NET and WMIhttp://bsonposh.com/modules/wordpress/?p=41
> >
> > Also... a common request is get installed apps
> > Get-InstalledApps fromhttp://bsonposh.com/modules/wordpress/?page_id=22
> > would be cool (bottom)
> >
> > "Marco Shaw" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
> >
> > news:up0mJ%23qAIHA.5980@xxxxxx
> >
> >
> >
Quote:

> > > I'm going to be putting on a PSH demo for a local .NET user group (and
> > > maybe university students). As far as remote administration with PSH,
> > > I want to show some code for some cool examples to get their
> > > attention.
> >
Quote:

> > > Obviously, the examples will be WMI (get-wmiobject) and ADSI based
> > > (I'll likely use the Quest AD cmdlets). Anyone have any other
> > > interesting examples/suggestions?
> >
Quote:

> > > I could use some .NET remoting to perhaps start a remote process for
> > > example. Also to view a remote event log...
> >
Quote:

> > > Examples with WMI: get remote cpu usage, get remote patches installed, get
> > > a listing of the usage of RAM (list slots and ones used/not used), etc.
> >
Quote:

> > > Anyone have some cool ideas/things I can demo?
> >
Quote:

> > > Marco
> >
Quote:

> > > --
> > > ----------------
> > > PowerGadgets MVP
> > >http://www.powergadgets.com/mvp
> >
Quote:

> > > Blog:
> > >http://marcoshaw.blogspot.com- Hide quoted text -
> >
> > - Show quoted text -
>
> Working in a higher ed evnoirnment the ability to (usually) find the
> servicetag/serial number, manufacturer, and model of computer has help
> me out quite a bit when troublshooting pc's remotely since we usually
> have a set number of models on campus.
>
> computersystemproduct, computersystem classes in wmi
>
> just a thought.
>
> -J
> www.pooradmin.com
>
>
My System SpecsSystem Spec
Old 10-01-2007   #5 (permalink)
Dmitry Sotnikov


 
 

RE: Remote administration examples

For AD cmdlets:

Bulk operations are always a pretty cool thing to show:

* The classic one I am using all the time is taking users based on the
Company, Department, or City (Get-QADUser -Company/-Department/-City) and
adding
them to a group based on that critirea (piping it into Add-QAGroupMember).

* Provisioning user accounts from a CSV file.

* Showing one-liner replacement for existing AD tools
(http://dmitrysotnikov.wordpress.com/...th-powershell/),
and locating obsolete computer records
(http://dmitrysotnikov.wordpress.com/...records-in-ad/)

* Moving accounts between OUs (e.g. all disabled accounts):
http://dmitrysotnikov.wordpress.com/...ng-ad-objects/

If you have Windows 2008 in your lab you can demo fine-grained password
policies
(http://dmitrysotnikov.wordpress.com/...th-powershell/)
or even work with read-only domain controller and server core (the latter can
be done ONLY remotely so it makes for a pretty cool demo.)

--
Dmitry Sotnikov
http://dmitrysotnikov.wordpress.com


"Marco Shaw" wrote:
Quote:

> I'm going to be putting on a PSH demo for a local .NET user group (and
> maybe university students). As far as remote administration with PSH,
> I want to show some code for some cool examples to get their
> attention.
>
> Obviously, the examples will be WMI (get-wmiobject) and ADSI based
> (I'll likely use the Quest AD cmdlets). Anyone have any other
> interesting examples/suggestions?
>
> I could use some .NET remoting to perhaps start a remote process for
> example. Also to view a remote event log...
>
> Examples with WMI: get remote cpu usage, get remote patches installed,
> get a listing of the usage of RAM (list slots and ones used/not used), etc.
>
> Anyone have some cool ideas/things I can demo?
>
> Marco
>
>
> --
> ----------------
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Looking for powerful remote administration software ... Software
Remote Administration will not enable Vista General
Remote administration of Vista Vista General
HELP - Remote Vista administration and monitor activity Vista General
HELP - Remote Vista administration and monitor activity Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46