Questions tagged [windows-command-prompt]

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

383 questions
0
votes
0 answers

How to close connection when using PSExec on multiple remote computers?

I am using PSExec to run scripts on multiple computers and after a few computers I start getting connection errors (probably because of concurrent connections limit on Windows 10). PSExec command I am currently using: psexec.exe @pc_list.txt -h -u…
jacob_w
  • 5
  • 1
  • 4
0
votes
1 answer

How can I disable the Windows Game DVR from the command line?

I need to disable the Windows Game DVR for a collection of Windows computers that will be running student exam / testing software, so that students can't use the Game DVR hotkeys to record the test questions and choices. These computers are not…
0
votes
0 answers

No User exists for 'query user'

I have one weird issue on the virtual machine. When I do 'query user user1' is not showing the active session of the user. It says 'No User exists for user1', though there is active connection. However it works fine for other users. Why is this…
0
votes
1 answer

How to reset the "allow pc to be discoverable on this network" prompt?

I have been advised to ask this question here on ServerFault. I've searched StackExchange, StackOverflow, and Google and I'm not finding any insights on how to reset the prompt when first connecting a PC to the internet. I've found oodles of…
k1dfr0std
  • 101
0
votes
3 answers

cmd - run a batch file after all other concurrent batch files finish

I have a simple batch file which calls other batch files, it looks like this: start /b run_part1.bat start /b run_part2.bat start /b run_part3.bat start /b run_part4.bat run_last.bat // fires immediately, how to make this line wait until above…
Cal
  • 189
  • 1
  • 2
  • 7
0
votes
1 answer

Looking for a way to replace every instance of a non-zero sized file in a directory tree using a batch file

I am trying to figure out a way to have a batch script overwrite every instance of a non-zero byte file inside of a specific directory and its sub-folders. I'm guessing since I'm looking for a non-zero file I could probably loop it with a escape if…
wb6vpm
  • 23
  • 5
0
votes
0 answers

detect rdp ram remotely with FreeRDP without x server (x11)

i've installed freerdp on my ubuntu vps i got it from digital ocean after few problems regarding the x server problem and freerdp can't work without x server i able to configure it to check the credintal of rdp without x server this command xfreerdp…
0
votes
1 answer

Active Directory + NFS: Why is domain user's uidNumber, gidNumber not shown by `id` command in Windows?

I am connecting NFS v3 shares (ZFS datasets) from a Solaris file server owned by domain users to Windows computers, but the concept should apply to basically any POSIX-style server. I'm hoping to find an intuitive way for permissions to persist…
0
votes
2 answers

Static ARP Entries aren't being added

So I'm trying to create a static ARP Entry with the ip and MAC Address of my router. I'm currently using admin command prompt and the command arp -s [ip] [mac address], but it isn't working. Every time I check the table with arp -a, I just see the…
0
votes
0 answers

how can find list of the sites connecting to the app pool using appcmd.exe

I can see a list of site and list of app pool separately. but how can I find wich site using from the app pool. e.g: we have an app pool with name: app1 i want to send command to find how sites connecting to the app1.
User12
  • 89
  • 1
  • 8
0
votes
1 answer

how to get current physicalPath site using appcmd.exe

we want get current physicalPath of the site using appcmd.exe. how to identify physicalPath of site via site name or app pool name.
User12
  • 89
  • 1
  • 8
0
votes
1 answer

how can create a directory, in add site command using appcmd.exe?

When I am using the appcmd.exe for creating a website, I need a physical Path address in the command. How can I create directory when I am running this address: %systemroot%\system32\inetsrv\AppCmd.exe add site /name:websitename /id:4…
User12
  • 89
  • 1
  • 8
0
votes
1 answer

I need to rename a file and insert a date

I'm trying to set a daily process to locate a file, rename it and insert the previous date in the file name. I want the file to be named "Filename_MMddyyyy.csv" with MMddyyyy being the previous day. I managed to rename the file but I'm a total noob…
0
votes
1 answer

Script without put ran as administrator leaves no file

I am trying to run this script as administrator. When I run it without admin rights the log file is save in C:\Windows\System32. I put echo %~dp0 in the script and it echos to the current directory. %~dp0 SC QUERY | FINDSTR "Fax" IF ERRORLEVEL 0 SC…
NoNo
  • 123
  • 6
0
votes
1 answer

Windows batch file to start and stop service for different users

I am having an Admin account that wanted to run a batch file that will start and stop a few services for different users.(Wanted to perform from the same server) For example, what I wanted to do is CMD run as username password net start…