Page 1 of 2 12>
Topic Options
#134810 - 2005-03-02 03:56 PM XNET.exe without adminrights
Anonymous
Unregistered



Hi

Is it possible to run XNET.exe without admin privileges ?
My script works fine but not without rights !!!

Maybe there are other ways to realise it ?

Bye
Sam

Top
#134811 - 2005-03-02 05:08 PM Re: XNET.exe without adminrights
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
what are you doing with xnet?
Top
#134812 - 2005-03-02 05:23 PM Re: XNET.exe without adminrights
Anonymous
Unregistered


I would like to check, If a service is running or not
Top
#134813 - 2005-03-02 05:54 PM Re: XNET.exe without adminrights
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
remotely ?

Map to ipc$ with admin account first
_________________________



Top
#134814 - 2005-03-02 05:59 PM Re: XNET.exe without adminrights
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
cant a normal user do just a "net start" to show a list of the running services?


Top
#134815 - 2005-03-02 06:04 PM Re: XNET.exe without adminrights
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Something like this:

Code:

Shell '%comspec% /c net start | find /i "Service name goes here"'



And check @error after the above. @error will be 0 if service is found.

Ussed it to find a custom installed services and shut it down if found.
Works perfect.

Never ussed xnet so don't know about that.


Edited by R2D2 (2005-03-02 06:07 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#134816 - 2005-03-02 06:06 PM Re: XNET.exe without adminrights
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Code:

Shell '%comspec% /c net start | find /i "Service name goes here" > nul'
If @ERROR
? "the service was not running"
EndIf




Top
#134817 - 2005-03-02 06:08 PM Re: XNET.exe without adminrights
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Damn, you faster then me
Just doing an edit to add the @error stuff.


Edited by R2D2 (2005-03-02 06:09 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#134818 - 2005-03-02 06:18 PM Re: XNET.exe without adminrights
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Why the heck would he then trying to use XNET.EXE ???
There'd be no sense in it if used locally
_________________________



Top
#134819 - 2005-03-02 06:51 PM Re: XNET.exe without adminrights
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
WMIQUERY() should also address this need.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#134820 - 2005-03-02 11:30 PM Re: XNET.exe without adminrights
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
without admin privileges ?
_________________________



Top
#134821 - 2005-03-03 02:21 AM Re: XNET.exe without adminrights
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
The original poster is talking about remote access, thus, by default, admin privileges would be needed, unless remote access security is lowered to allow non-admin accounts to perform such tasks.
_________________________
There are two types of vessels, submarines and targets.

Top
#134822 - 2005-03-03 11:26 AM Re: XNET.exe without adminrights
Anonymous
Unregistered



I check with the loginscript if the service run or not, If not i will send a message and start it. The problem for me was, that the users didn't have admin rights and so the xnet.exe can't query the service database.
Now I will try it with the net start methode.

Thanks
Sam

Top
#134823 - 2005-03-03 12:00 PM Re: XNET.exe without adminrights
Anonymous
Unregistered



Yep

Works really fine, but if I have services they have similar names

Windows Management Instrumentation Driver Extensions
Windows Management Instrumentation

there I have the next problem, if I would only check the Windows Management Instrumentation service.

Do you have an idea, how tho check that ?

Bye
Sam

Top
#134824 - 2005-03-03 02:54 PM Re: XNET.exe without adminrights
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Put the full name in quotes.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#134825 - 2005-03-03 05:08 PM Re: XNET.exe without adminrights
Anonymous
Unregistered



I have checked it, that didn't work

Top
#134826 - 2005-03-03 05:26 PM Re: XNET.exe without adminrights
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
you will have to look into using WSHpipe() then.

Code:

$service = "Windows Management Instrumentation"
$netstart = Split(Join(Split(Join(wshpipe("net start",1),"")," "),""),CHR(13))

If AScan($netstart,$service)+1
? "The service " + $service + " is running"
Else
? "The service " + $service + " is NOT running"
EndIf


Top
#134827 - 2005-03-07 03:42 PM Re: XNET.exe without adminrights
Anonymous
Unregistered



that doesnt work
error comma fails

Top
#134828 - 2005-03-07 04:23 PM Re: XNET.exe without adminrights
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Allright Samuel,

show us the line with which you check services with net start.
If you say it works ok for your users but not with quoted Service names then you simply have a syntax error somewhere in there (NO need to use wshpipe shtuff)
_________________________



Top
#134829 - 2005-03-07 04:45 PM Re: XNET.exe without adminrights
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
the problem is this

Quote:


Windows Management Instrumentation Driver Extensions
Windows Management Instrumentation





he wants to check for the service "Windows Management Instrumentation" to see if it is running.

if you run this.

shell '%comspec% /c net start | find /i "Windows Management Instrumentation" > nul'

and are depending on FIND's setting of the @error to determin if "Windows Management Instrumentation" is running or not. you will get a false positive if "Windows Management Instrumentation Driver Extensions" is running and "Windows Management Instrumentation" is not running.

the FIND command will find both of these....

Windows Management Instrumentation Driver Extensions
Windows Management Instrumentation



Top
Page 1 of 2 12>


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 208 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.071 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org