www.windows-noob.com: Resource Explorer Shortcut for sccm 2007 - www.windows-noob.com

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Resource Explorer Shortcut for sccm 2007 if you use resource explorer allot...

#1 User is offline   wmmayms Icon

  • Advanced Member
  • PipPipPip
  • Group: Moderators
  • Posts: 190
  • Joined: 23-January 09
  • Gender:Male
  • Location:Sweden
  • Interests:Soccer, Computers

Posted 09 February 2009 - 03:50 PM

This is a basic script that will create a shortcut to Resource Explorer.

Step 1.
Copy the code below and edit the variables (marked in red)

Step 2.
Save the file as a .bat

Step 3.
Start Using it!

variables you need to change to make it work (marked in red):
1. c:
cd \Program Files\Microsoft Configuration Manager Console\AdminUI\bin
- Point this to the folder where you have your SMS Console installed

2. %SERVER% - Change this to your primary Server (db server)

3. %SITECODE% - Change this to match your sitecode.

REM Code written by Marcus Ymsén - 2008

:start
@echo off
CLS
Title Resource Explorer

> tmp.vbs ECHO WScript.Echo InputBox( "To which Computer would you like to connect?", "Resource Explorer", "Enter Computer Name" )
FOR /F "tokens=*" %%A IN ('CSCRIPT.EXE //NoLogo tmp.vbs') DO SET dator=%%A
DEL tmp.vbs

[color="#FF0000"]c:
cd \Program Files\Microsoft Configuration Manager Console\AdminUI\bin[/color]


SET var='%dator%'

start resourceexplorer.msc -s -sms:ResExplrQuery="SELECT ResourceID FROM SMS_R_SYSTEM WHERE NAME = %var%" -sms:connection=\\[color="#FF0000"]%SERVER%[/color]\root\sms\site_[color="#FF0000"]%SITECODE%[/color]


exit

:end


This is what it looks like:
Attached Image

Connecting..
Attached Image

Result:
Attached Image

Attached image(s)

  • Attached Image

MCTS: SCCM, Active Directory, Vista
LinkedIn
Twitter
0

#2 User is offline   anyweb Icon

  • Administrator
  • PipPipPip
  • Group: Root Admin
  • Posts: 2,583
  • Joined: 28-September 06
  • Gender:Male
  • Location:Sweden
  • Interests:Deploying Operating systems and more with SCCM

Posted 09 February 2009 - 09:03 PM

cool, but do you need anything installed on the client first like the SCCM Remote Tools
My linkedin profile at > linkedin.com
Follow me on Twitter > ncbrady
Follow windowsnoob.com on Twitter > windowsnoob
My blog on myITforum
0

#3 User is offline   wmmayms Icon

  • Advanced Member
  • PipPipPip
  • Group: Moderators
  • Posts: 190
  • Joined: 23-January 09
  • Gender:Male
  • Location:Sweden
  • Interests:Soccer, Computers

Posted 10 February 2009 - 06:11 AM

The only things ou need to get this to work is to distrubute the SCCM agent and enable hardware inventory in your site hierarchy (else this script will still work, but the result will be empty).
MCTS: SCCM, Active Directory, Vista
LinkedIn
Twitter
0

#4 User is offline   danovich Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 29-January 10

Posted 09 March 2010 - 10:59 PM

Great little batch file. I've updated it for 64-bit OS's and modified it slightly and reposted it here --> http://blog.danovich...ource-explorer/

Full credit for the original batch file to yourself wmmayms.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users





Locations of visitors to this page