Not to beat a dead horse about PSExec, but it has worked well for me once I realized a few of it's problems. I do not use it's built-in switches for changeing user. I Map the C$ drive of the remote computer first using the net use command. Once the session is established, PSExec works well...
SU.exe allows yo to run under a different security context. But it runs on the local machine and it also requires access to a text file with the account password to be viewable by the user.
A tool you might like comes from SysInternals.com called PSTools (PSExec.exe) . PSTools is a collection...
I think the Administrator account will have a SID that ends with -500. You should be able to go to the key below and check each subkey (Subkey is named after the sid) ernding in -500. Then check the ProfileImagePath value, it should show the name of the folder in the profiles directory that...
:: What about the 'net user' and 'net localgroup' commands.
:: You still have to run this batch file.
:: Add users
net user newperson1 /add
net user newperson2 /add
:: Make a group
net localgroup newgroup1 /add
:: Add users to the group
net localgroup newgroup1 newperson1 /add
net...
Are you launching these applications from a shortcut. If not, this message will be way off. It may be a shortcut is messed up. The Q150215 article explains (in 1/2 a sentence) that you can open a shortcut in Notepad and see some information other than what shows in the shortcut properties...
Hello Amadi,
Have you checked the registry using Regedit or Regedt32?
Can you verify several things for me:
You got the value of NETCARDNAME from:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\1
Using the Network Card Name check that this key exists...
:: Here is a way to combine files
:: the problem here is that you will get all the lines
:: from both files into the third file and the lines end
:: a carrage return, so you can not use this method
:: to build any single line out of 2 files
echo first line >> c:\firstline.txt
echo second line...
Su.exe is a utility from the Resource kit in NT4 that lets you run a single program in a different security context than the logged on user. It is like the su command in unix. Suss -install will install the service. I am not sure but I think SU stands for Switch User. That is exactly what it...
@echo off
:: You could put set outPutFile=%1 to accept an argument sent to the batch file
set outPutFile=c:\output.txt
set thirdOctetCount=0
set fourthOctetCount=0
:ThirdOctet
set fourthOctetCount=0
:FourthOctet
echo Now Pinging 192.168.%thirdOctetCount%.%fourthOctetCount%
ping...
:: You can try this as a batch file. I HAVE NEVER Tried
:: this in production!!!!!!!!!!!!!!!
:: %1 should be the Name of the Network Card
:: To find out the network card name for that PC look at:
:: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
:: NT\CurrentVersion\NetworkCards\1
:: Value...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.