Windows 10: Getting error while running batch file on server

Discus and support Getting error while running batch file on server in Windows 10 Network and Sharing to solve the problem; Error: User Account Control is active on this Machine. Please close the current command window and run the deploy scripts in a new command window by... Discussion in 'Windows 10 Network and Sharing' started by Kuldeep Kumar IT, Jul 8, 2021.

  1. Getting error while running batch file on server


    Error: User Account Control is active on this Machine. Please close the current command window and run the deploy scripts in a new command window by choosing the 'Run as Administrator' option or turn OFF the User Account Control before starting the deployment. For a few specific Windows versions, even if User Account Control is disabled from the user interface, it might still show active in the System Registry. For such cases, follow the Microsoft documentation on how to fully disable the User Account Control through policy settings.

    :)
     
    Kuldeep Kumar IT, Jul 8, 2021
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Jul 8, 2021
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Jul 8, 2021
    #3
  4. Getting error while running batch file on server

    run batch file with service account

    Hi

    If i run a hello world bat file from task scheduler with my logon credentials it runs

    If u run it with the service account , its just says running and nothing happens

    No error ect

    I added my service account to the admin , batch user , service user groups on the server

    Please advise
     
    yusufrawat, Jul 8, 2021
    #4
Thema:

Getting error while running batch file on server

Loading...
  1. Getting error while running batch file on server - Similar Threads - Getting error while

  2. Simple batch file gets syntax error

    in Windows 10 Gaming
    Simple batch file gets syntax error: My one-line batch file gets the error message :The syntax of the command is incorrect. I'm pretty sure this is not so.As in so many many other cases, Microsoft gives a generic error message that has no apparent connection to what the user is trying to do. As a result, we...
  3. Simple batch file gets syntax error

    in Windows 10 Software and Apps
    Simple batch file gets syntax error: My one-line batch file gets the error message :The syntax of the command is incorrect. I'm pretty sure this is not so.As in so many many other cases, Microsoft gives a generic error message that has no apparent connection to what the user is trying to do. As a result, we...
  4. Cant run Batch file

    in Windows 10 Gaming
    Cant run Batch file: When i try to run a batch file all it says is this app can't run on your pc i tried going to my property and going to compatibility but it isn't there im on windows 11 btw but if someone can pls help...
  5. Cant run Batch file

    in Windows 10 Software and Apps
    Cant run Batch file: When i try to run a batch file all it says is this app can't run on your pc i tried going to my property and going to compatibility but it isn't there im on windows 11 btw but if someone can pls help...
  6. Batch File run but GUI not prompt

    in Windows 10 Gaming
    Batch File run but GUI not prompt: Hello,I made an batch file to run exe file but GUI prompt not appear if i tried to run from outside i.e. batch file present on ABC Folder and I am going to command prompt and run the same it's running and GUI Interface shows but when I runneed the file from other directory...
  7. Batch File run but GUI not prompt

    in Windows 10 Software and Apps
    Batch File run but GUI not prompt: Hello,I made an batch file to run exe file but GUI prompt not appear if i tried to run from outside i.e. batch file present on ABC Folder and I am going to command prompt and run the same it's running and GUI Interface shows but when I runneed the file from other directory...
  8. Running PowerShell script as a batch file

    in Windows 10 Network and Sharing
    Running PowerShell script as a batch file: Can I run the Power Shell line: "C:\Windows\System32>get-appxpackage *3dbuilder* | remove-appxpackage" from a .Bat file? ***Original title: Removing bloatware***...
  9. Run oscdimg.exe from a batch file?

    in Windows 10 Installation and Upgrade
    Run oscdimg.exe from a batch file?: OK, I have a batch file that copies files from a mounted windows 10 installation file and updates drivers in boot.wim and install.wim. The thing I cannot work out is how to automatically run oscdimg.exe (command from deployment and imaging environment) in a batch file so I...
  10. Running an uneditable Batch file

    in AntiVirus, Firewalls and System Security
    Running an uneditable Batch file: Hi people, Got a task to run a certain CMD command on a number of PCs as administrator. So I thought i would create a batch file doing this. This is not the issue. The issue is that I am unable to lock down successfully so people cannot just edit the file to see the admin...