Batch
Share your batch scripts
19 topics in this forum
-
Hello, this Windows Crap Update (KB5034441) isn't working, so can I disable and hide it, via this Rule (See Image attached)?
-
- 1 reply
- 2.7k views
-
-
Hello im going some process to remove a old AV software in this case is XDR Cortex im doing the script but I'm blank My batch is like this cd c:\Program Files\Palo Alto Networks\Traps <----this works cytool.exe protect disable <---this works, after this ask for password to remove the AV and this is the problem i don't know how to declare a password to continue with process, after the enter i need to put the password, i know the password but i dont know how to put it Obviously this is batch "cmd" If somebody have any idea Thank you
-
- 0 replies
- 2k views
- 1 follower
-
-
Enable the Windows built-in local Administrator account and set a password. Also, hide the account from Login Screen, using the registry. net user administrator /active:yes net user administrator YourPasswordHere reg add "HKEY_Local_Machine\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" /v Administrator /t REG_DWORD /d 0 /f exit 0;
-
- 2 replies
- 4.7k views
-
-
Hi Folks, Apologies if this has been asked before, I'm new to pulseway and getting to grips with Automation. I have a simple batch script to install a printer onto a workstation. When I run it via pulseway, it says it runs successfully, but the printer doesnt appear on the workstation. Can anyone offer some advice? FYI - the same batch script run locally works fine. @echo off title Printer Script REM Add Printers RunDll32.EXE printui.dll,PrintUIEntry /in /n "\\dc1\Accounts" EXIT
-
- 0 replies
- 3.1k views
-
-
Would love a way to reference PulseWay data in scripts. A use case is installation of a backup client, or other software that can include the organization name as a commandline installation option to associate that software with a specific client. eg: /path/to/install.msi ORGANIZATION=$PWY_ORGANIZATION SITE=$PWY_SITE This way we can right one script that would apply across all clients instead of having to customize a script/add a custom field for each client. The info is already there, just would be nice to reference it somehow from a script.
-
- 2 replies
- 3.7k views
-
-
So I have a batch file on my desktop and I need it to run in the foreground. But when starting scripts, Pulseway opens it in the background, But I want it to open in the foreground. So how would I do that? OS: Window 10 Pro 20H2
- 2 replies
- 4.5k views
- 1 follower
-
All i want is some way to make a delay in a workflow in 1½ hour. Has made a batch script, to make a pause on 1½ hour: timeout /t 5400 --- Pulseway runs the script i 6 minuts and "fail's" it - and then Pulseway won't use the scrip because it is "Script is in use"
-
- 0 replies
- 2.9k views
-
-
Hi All, When a proces has been killed or not responding. I want to restart it with a script. Example: Icloud program stopped working (Proces named: icloud.exe) located C:\Program Files\Icloud\Icloud.exe. Now i make a script : "C:\Program Files\Icloud\Icloud.exe" If i run that script on the system it doesnt start icloud again. Is my script incorrect? Pulseway notify's me it was done succesfully but it didn't start. (Took 2 seconds) I also tested this with notepad: C:\Windows\System32\notepad.exe also this one didnt start up. Ill hope you guys can tell me what i'm doing wrong. Kind Regards, Danny
-
- 7 replies
- 11.2k views
- 1 follower
-
-
I would like to make a script that will run a batch file on my desktop. How do i do that?
-
- 2 replies
- 4.2k views
-
-
Customer calls and says they open a link and need you to check their machine, run script to start a full client scan. "C:\Program Files\Bitdefender\Endpoint Security\product.console.exe" /c FileScan.OnDemand.RunScanTask custom
-
- 0 replies
- 3.3k views
-
-
***DISCLAIMER: I am using utorrent to transfer very large personal files across multiple computers, no copyrighted material is transferred*** Hey everyone, I am trying to stop and start utorrent remotely with a batch script. It is able to kill the process but when it starts back it is unable to see the config files that are in the same folder, thus none of the settings or ongoing downloads are there so essentially it is starting a brand new install. I am using pskill and psexec, I have the pulseway agent using the creds of the logged in user. I am using the parameters in psexec to specify the working folder and specify the session, not sure what i am d…
-
- 1 reply
- 2.6k views
-
-
Here is a Batch script to empty the SoftwareDistribution Folder. It stops any installer processes in the background, temporarily disables the Windows Update Service, deletes everything in the Software Distribution folder then sets the Windows update service back to automatic and starts the service. @echo off CD C:\ taskkill /F /im setup.exe taskkill /F /im ose00000.exe taskkill /F /im msiexec.exe sc config wuauserv start= disabled net stop wuauserv PowerShell.exe Remove-Item C:\Windows\SoftwareDistribution\* -Force -Recurse sc config wuauserv start= demand net start wuauserv
-
- 0 replies
- 11.1k views
-
-
Hello! Recently I've been experimenting a bit using scripts that contain variables that the user should enter. For example, a very simple one to shutdown a computer after X-amount of time: (example use-case: I download large files during the night, so it doesn't count towards my ISP data-usage) @echo off set /p time=Enter time in seconds: shutdown /s /t %time% timeout /t 3 /NOBREAK exit however, upon executing said script, the app doesn't request for the variable to be filled out. (I guess it's not made for such uses) Obviously, i can manually enter the command using CMD, but i don't want to be typing the command every time i need it. (you can call m…
-
- 1 reply
- 5.8k views
- 1 follower
-
-
I am attempting to start an app interactively with the desktop. With the following code the script just runs until killed. If I remove the top two lines it runs and finishes but obviously doesn't interact with the desktop. $cred = (Get-Credential $env:USERNAME) Enter-PSSession -computerName "$env:computername" -credential $cred cd $env:userprofile\Desktop .\Loader.bat I would be grateful for any suggestions.
-
- 1 reply
- 4.1k views
-
-
This super-handy batch file will allow you to reclaim some of the lost memory from your servers by disabling the Exchange Services, which is incredibly useful if you've migrated someone from SBS to Office365. @echo off rem Below Are All Of The Exchange Services To Be Disabled... echo Disabling Microsoft Exchange Active Directory Topology (Was Automatic Startup) echo Note: This Service Seems To Be Flagged So It Cannot Be Stopped So I Added A TASKKILL Entry For It! sc config MSExchangeADTopology start= disabled sc stop MSExchangeADTopology TASKKILL /F /IM MSExchangeADTopologyService.exe echo Disabling Microsoft Exchange Address Book (Was Automatic Startup) sc config MSE…
-
- 1 reply
- 5.5k views
-
-
In that "entertaining" way where VSS decides to become 'unstable' here's a wee batch file to re-register all of the VSS components. This should get the writers back to a stable state and make the service work properly again. net stop "System Event Notification Service" net stop "Background Intelligent Transfer Service" net stop "COM+ Event System" net stop "Microsoft Software Shadow Copy Provider" net stop "Volume Shadow Copy" cd /d %windir%\system32 net stop vss net stop swprv regsvr32 /s ATL.DLL regsvr32 /s comsvcs.DLL regsvr32 /s credui.DLL regsvr32 /s CRYPTNET.DLL regsvr32 /s CRYPTUI.DLL regsvr32 /s dhcpqec.DLL regsvr32 /s dssenh.DLL regsvr32 /s eapqec.DLL regs…
-
- 0 replies
- 3.4k views
-
-
Hello, I have not been able to complete the execution of this batch file. I have verified that it is indeed correct in syntax, as it runs locally just fine. TASKKILL /f /im iexplore.exe CD "C:\Program Files (x86)\Internet Explorer" timeout /t 5 start iexplore.exe In essence the code is meant to close Internet Explorer, and restart it upon the 5 second timeout period. But, it seems like it only executes the first part of the code successfully. Internet Explorer closes, but nothing else happens. (no errors in pulseway log). Feel free to run the code as it isn't malicious. Am I missing something to make work? Thanks and I hope to get a response soon. …
- 4 replies
- 7k views
- 1 follower
-
Hello, I am having problems running all scripts. I created a test script, ran it a few times, and modified it, now all of my scripts come back as "skipped". Any idea on what is causing this? Thanks for helping. Hope to get an answer soon.
- 2 replies
- 4.1k views
- 1 follower