Search the Community
Showing results for tags 'script'.
-
I am making a new script for debloating Windows 10, I am into debloating Windows. Is there any advantage to using one over the other. My past scripts was written in PowerShell, but does Batch offer anything.
- 8 replies
-
- programming
- powershell
-
(and 4 more)
Tagged with:
-
hi, i need a way to mount a network drive so that i dont have to redo it every time a new user logs into the machine. is there a script that can do this or a way in windows task scheduler?
-
- network drive
- windows
-
(and 1 more)
Tagged with:
-
Hello, After deploying a laptop out to a field member in a different state, we received notice that it looks like our MDT Deployment did not completely finish apparently. The user is experiencing a popup when they boot their computer, indicating LiteTouch.wsf is missing from their computer. I'm attempting to resolve this remotely, without re-deploying anything, but can't seem to find any good resources to assist. There is a few things I've attempted to do just to try and fix it, such as: Ran SFC /SCANNOW to see if it would find the missing script. Manually copied a local LiteTouch.wsf script from GitHub, place it in a text document, then rename it to LiteTouch.wsf. Moved the LiteTouch.wsf script to System32 I'd appreciate any help or assistance if anyone has any idea on what to do in this case. Thank you!
-
i wanna make a minecraft shader what script do i use that will work the best and what program do i use to right the script
-
I'm sure there are better ways to do this but figured I'd share a helpful script I got around to getting cobbled together for Dell servers to use the ipmitool to set the fan speed to a fixed rate after bootup. This was tested against a Dell R620 and R630 so YMMV. Assumptions: IPMI is already enabled on the server in question. Python3 is at the default install location (/usr/bin/python3) Software: Linux VM (Ubuntu/Centos/Redhat/etc.) or baremetal Linux OS install on the server Python3 ipmitool Setup Commands: (Ubuntu) sudo apt install ipmitool (CentOS/Redhat) yum install OpenIPMI ipmitool pip3 install pysnmp Script: Replace 1.1.1.1 with the IPMI address of the server in question Replace Secr3t! with the IPMI password and root with the username to login to the IPMI Replace [value] with the HEX value of the speed you want to set. Example 0x[value] for 20% fan speed would be 0x14 Name the file whatever you like but just put .py at the end to make things easier import os from pysnmp import hlapi from datetime import datetime, timedelta def get(target, oids, credentials, port=161, engine=hlapi.SnmpEngine(), context=hlapi.ContextData()): handler = hlapi.getCmd( engine, credentials, hlapi.UdpTransportTarget((target, port)), context, *construct_object_types(oids) ) return fetch(handler, 1)[0] def construct_object_types(list_of_oids): object_types = [] for oid in list_of_oids: object_types.append(hlapi.ObjectType(hlapi.ObjectIdentity(oid))) return object_types def fetch(handler, count): result = [] for i in range(count): try: error_indication, error_status, error_index, var_binds = next(handler) if not error_indication and not error_status: items = {} for var_bind in var_binds: items[str(var_bind[0])] = cast(var_bind[1]) result.append(items) else: raise RuntimeError('Got SNMP error: {0}'.format(error_indication)) except StopIteration: break return result def cast(value): try: return int(value) except (ValueError, TypeError): try: return float(value) except (ValueError, TypeError): try: return str(value) except (ValueError, TypeError): pass return value snmpval = get('1.1.1.1', ['1.3.6.1.2.1.1.3.0'], hlapi.CommunityData('public')) ticks = (snmpval['1.3.6.1.2.1.1.3.0']) seconds = ticks/100 up_time = timedelta(seconds=seconds) if seconds < 3600: os.system("ipmitool -I lanplus -H 1.1.1.1 -U root -P Secr3t! raw 0x30 0x30 0x01 0x00") os.system("ipmitool -I lanplus -H 1.1.1.1 -U root -P Secr3t! raw 0x30 0x30 0x02 0xff 0x[value]") else: exit() chmod +x the .py file you made Ideally move the file under /usr/bin or similar Option 1: Execute natively in cron on reboot: Cron: SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin @reboot /usr/bin/python3 yourfilename.py Option 2: Execute as part of shell script on reboot: Shell script: #!/bin/bash #Commands to be run at startup python3 /usr/bin/yourscriptname.py Cron: SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin @reboot shellcript.sh References: https://www.ictshore.com/sdn/python-snmp-tutorial/ https://www.reddit.com/r/homelab/comments/7xqb11/dell_fan_noise_control_silence_your_poweredge/
-
Hey guys, this is my first post here, hopefully this is in the right section. I have a strange problem with my Ubuntu server. My server is running regularly out of disk space due to the installed MySQL 8 server doing a full backup daily without deleting the old backups. I have configured this backup years ago (some time in 2017, the logs started back than) but I really don't know where the backup script is located and how the backup is configured in general. The only thing I know about this backup is that the SQL dumps are stored in /etc/backups/mysql and that the backup runs daily at 3 AM in the morning. There is also a log file which is written with every backup at /etc/backups/mysql/mysql-backup.log, but the log file does not contain where it is created from. Typical log entry (/etc/backups/mysql/mysql-backup.log): === Start of Backup 20220117_030001 === # Backing up entire DBMS mysqldump: [Warning] Using a password on the command line interface can be insecure. mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces # Retrieving databases mysql: [Warning] Using a password on the command line interface can be insecure. ### Backing up database **TABLE** mysqldump: [Warning] Using a password on the command line interface can be insecure. mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces ... --> Entry repeats for each DB table === End Backup === What I have checked so far: Crontab configurations of all users on the system --> No scheduled scripts found for MySQL backups Home directories of all users on the system -> Could not find any MySQL backup scripts automysqlbackup (typically recommended for MySQL backups) is NOT installed Configuration of MySQL --> I am not aware of any automatic backup mechanism baked right into MySQL Configuration of PhpMyAdmin --> I am also not aware of any automatic backup mechanism in PhpMyAdmin Searched the whole file system for files called *sql*.sh --> This took ages, but I could not find any suitable backup scripts either so the file is probably called something different Back in 2017 I was very unexperienced with Linux servers, this was also one of my first dedicated servers. So I have probably followed some guide on the internet, however this guide might have looked like... I have not used the DB in years so the problem did not raise to my attention until my server run out of space the first time a few months back. Now that I am using the DB regularly, the issue occurs more often and I need to clean up the backups regularly. An easy fix would be to simply delete the backups automatically after they have been created but this does not fix the root cause. Do you have any further ideas how I could find the script on my server which is creating those backups? Thanks for any help!
-
I cant double click the python script. i can double click other python scrips. i could double click this script 10 minutes ago and now i cant. please help to fix 2022-02-09 19-23-51.mp4
-
Hi ! Does anyone know why this doesn't work? $port= new-Object System.IO.Ports.SerialPort COM4,9600,None,8,one $port.Open() while($true) { $line = $port.ReadLine() echo $line If ($line -eq "1"){ echo "Hello" } } If it recieves a 1 it doesn't print Hello.
- 2 replies
-
- powershell
- windows
-
(and 1 more)
Tagged with:
-
@MS-DOSposted this topic a couple of days ago: I was pretty sure this could be achieved with python using a couple of libraries... so I did it. Here is the script: It accepts a video and an image of the person you want to isolate and outputs a video file containing only the parts where that person is on screen. To run it you'll need to install ffmpeg, python 3.8 and the following python packages using pip: pip3.8 install dlib face_recognition opencv-python argparse ffmpeg-python then pass the command line arguments, e.g. py.exe -3.8 .\autocut.py --video .\bvt.mp4 --face .\b.PNG --name biden --frameskip 30 --scale 1 As a proof of concept I took this video with highlights from the recent US presidential debates: and fed this screencap of Biden to the script: and this was the result: (this is just a gif for demo purposes, the script produces an mp4 file with the same quality as the input video) Face recognition is pretty slow on a high resolution video (because of the linearity of the task it would be pretty challenging to parallelize this) so there's the option to skip frames and only check every so often if the person is still in the frame. This is controlled via the frameskip parameter (a value of 30 means that one frame every 30 is checked, meaning roughly 1 second in this case). Skipping frames means the cuts won't be as accurate, for instance you can see the moderator for a few frames. There is also an option to scale down the frames to less than 1 to speed up processing but bear in mind this lowers the accuracy of the face detection algorithm. It's possible this would be faster using a higher performance language like C++ but it would take longer to get working whereas this is just a few dozen lines long and runs on everything. There are some edge cases where it doesn't work well due to inherent limitations of face recognition, e.g. when the person is turned as in this frame: however, for a quick montage from, say, an interview where people always stare at the camera it shouldn't be a problem. With that said it's probably just as fast and less error prone to just do this manually. I hope this is useful to somebody if not, at least it was interesting for me.
-
So, I'm trying to figure out how to get more advanced and granular control over autoplay on windows such that when I plug in a specific device I can run a script, a macro, or generally do something more then just sync my phone's photos with my desktop in one of two file locations. In particular, I want to be able to sync up arbitrary files (mostly to sync files from a specific folder on my android phone with file names in a specific range/structure) to my computer in an arbitrarily selected folder and to do so every time that a particular device that I have is plugged into my desktop. Anyone have experience with this?
-
As most users running Linux have discovered the init.d startup script for Folding@Home is broken and while it starts the service it does not properly stop and reload it. I found a fix for the script at foldingforum.org. Stop Running Client: killall FAHClient Edit it adding at about line 121 echo $pid > $PID between: fi pid=$! + echo $pid > $PID if wait_for_log_change "$LOG_STATUS" $pid; then echo "OK" else Reload the system daemon: systemctl daemon-reload Now starting, stopping and reloading should work. service FAHClient start service FAHClient stop service FAHClient reload
- 4 replies
-
- linux
- folding@home
-
(and 1 more)
Tagged with:
-
If you are aware of updated information regarding telemetry and data collection in Windows 7 / 8 / 10, or know improved methods to disable it, please share it. For Windows 10 General Privacy Guide's for Windows 10 version 1803 and 1809 This guide includes instructions on how to disable or remove various invasive or unwanted aspects of Windows 10. Some of what the guide includes instructions for: - Basic Windows 10 set-up choices - How to remove various apps, such as Windows Store, and other native Win 10 apps - How to disable Cortana via registry - How to remove various telemetry services and scheduled tasks Some of what this guide shows instructions for may already be done by programs such as O&O ShutUp10. For 1803: https://fdossena.com/?p=w10debotnet/index_1803.frag For 1809: https://fdossena.com/?p=w10debotnet/index_1809.frag For 1903: https://fdossena.com/?p=w10debotnet/index_1903.frag Using an edition of Windows 10 that lets you set the telemetry as low as possible Windows 10 Enterprise and LTSC allow you to use the group policy editor to lower the amount of data-harvesting to Security Only. The Security Only setting may appear in Windows 10 Pro, but setting the group policy to that setting in Pro doesn't have any effect as the Telemetry Only setting is disconnected from any functionality in Pro. Licenses for Windows 10 Enterprise and LTSC can be purchased for cheap off of eBay. To set data-collection to Security Only in Windows 10 Enterprise and LTSC: 1. Open the group policy editor 2. Navigate to: Computer Configuration -> Administrative Templates -> Windows Components -> Data Collection and Preview Builds 3. From the list of that sections policies, double-click on the policy titled Allow Telemetry 4. Set the policy to Enabled, and then set the policy to Security Only from the drop-down box 5. Click OK to close the window O&O ShutUp10 O&O ShutUp10 is an excellent free piece of software that provides many options to reduce the amount of data that is harvested by Microsoft. I strongly recommend using it and reading the description of each item that can be enabled or disabled to stop a lot of unwanted data-harvesting. Quoted from the developer's website: O&O ShutUp10: https://www.oo-software.com/en/shutup10 Setting up a custom firewall to block Microsoft telemetry servers Download and install this custom hosts file, and this custom PeerBlock Microsoft IP list which is regularly updated from information obtained via Wireshark: https://encrypt-the-planet.com/windows-10-anti-spy-host-file/ Review this thorough guide (a website account is needed to view it): https://encrypt-the-planet.com/completely-disable-windows-10-telemetry/ Spybot Anti-Beacon Another good tool for blocking unwanted communication between a PC and Microsoft. It adds a lot of IPs to the Windows hosts file Spybot Anti-Beacon: https://www.safer-networking.org/spybot-anti-beacon/ Debloat Windows 10 Use the free Debloat Windows 10 script to do as it says in its description: Debloat Windows 10: https://github.com/W4RH4WK/Debloat-Windows-10/blob/master/scripts/block-telemetry.ps1 Manually block Microsoft data-collection servers in your Windows hosts file There have been suggestions that Windows 10 ignores Microsoft servers in the hosts file, but Spybot Anti-Beacon adds a bunch of Microsoft servers to it and so maybe they know something different. The Windows hosts file is located at C:\Windows\System32\drivers\etc. To open it, right-click and select "Open with", then choose Notepad and press OK. Then save the file when you're done editing it and then close it. You can try adding these Microsoft data-collection servers to your Windows hosts file: Disconnect Microsoft telemetry server connections From: https://docs.microsoft.com/en-us/windows/privacy/configure-windows-diagnostic-data-in-your-organization (US page) And: https://docs.microsoft.com/en-gb/windows/privacy/configure-windows-diagnostic-data-in-your-organization (UK page) More details on Windows 10 endpoints and ways to disconnect them: https://docs.microsoft.com/en-us/windows/privacy/manage-windows-endpoints My Digital Life's excellent repository on Windows 10 telemetry and its removal that contains sections on: Delete Telemetry Services Delete Remnants of Diagtrack and Cortana Task Scheduler Block IP Re-Routing Hosts File Block Packages Uninstall Lists PEERBLOCK for Blocking Telemetry Windows 10 IP Range Block List Apps Online Uninstall Link: [REPO] Windows 10 TELEMETRY REPOSITORY Disable Windows 10 Telemetry Service Disclaimer: This suggestion has been reported to be deprecated and so likely has no effect on the amount of telemetry Windows 10 collects It was previously suggested that some Windows 10 telemetry and data collection could be disabled by doing the following: Go to Services and Applications -> Services in the left pane. In the services list, disable the following service: Connected User Experiences and Telemetry service (called "Diagnostics Tracking Service" in Windows 10 version 1151 and earlier) dmwappushsvc Again, doing this likely has no effect on the level of telemetry that is collected. For Windows 7 and 8 The surest way to run Windows 7 telemetry-free is to install Windows 7 from an early-to-mid 2015 ISO and then permanently disable Windows Update. I have a June 2015 ISO of Windows 7 available for download in this post: Block Microsoft data-collection servers in your Windows hosts file For this, follow the same instructions mentioned in the Windows 10 section of this guide. Windows 7 / 8(.1): Guidance on avoiding telemetry-containing updates including a list of security-only updates with download links for each (updated February 2019): https://www.askwoody.com/forums/topic/2000003-ongoing-list-of-group-b-monthly-updates-for-win7-and-8-1/ Windows 7 / 8(.1): A thorough guide to identifying telemetry updates, removing the Windows telemetry service, and blocking Microsoft's telemetry servers https://www.ghacks.net/2017/02/11/blocking-telemetry-in-windows-7-and-8-1/ Aegis script: Disables, uninstalls, and blocks a bunch of Windows 7 / 8 telemetry & data-collection updates Since around mid-2015 (and possibly a bit earlier), Microsoft has been back-adding telemetry harvesting into Windows 7 and 8(.1) through the updates that are installed by Windows Update. These updates are not required, and can be declined from installing and also will not be downloaded and installed if Windows Update is disabled. But, if a person has automatic updates enabled these updates will be automatically installed. If a person doesn't want these to be installed, they can be quickly uninstalled and blocked from being re-downloaded and installed by running a script that knows which updates to permanently block from being searched-for by Windows Update, and from being downloaded and installed. Aegis Script is one such script, though it was last updated May 18, 2016. The Aegis script will also remove and block any prompts in Windows 7 and 8 about downloading and installing Windows 10. Original script link, and discussion: Script for Win 7/8 to block all telemetry updates and Windows 10 upgrade components Direct-download backup link for Aegis v1.18: https://mega.nz/#!dhExAbBa!fehYhbTNz5dIBh72psfXLfwv9wMk0uhMpGli-c0pBn4 For a list of the Windows 7 and 8(.1) updates that the Aegis script addresses, and also of the post Aegis scrip Windows updates to avoid because they have telemetry in them, see the bottom of this post. For identifying data-collection-containing updates since 2016, here is an updated list of which updates to avoid or uninstall: https://pastebin.com/jWX2zHdr ------------------------------------------------ Overview of what the Aegis script does Direct-download backup link for Aegis v1.18: https://mega.nz/#!dhExAbBa!fehYhbTNz5dIBh72psfXLfwv9wMk0uhMpGli-c0pBn4 (This information was retrieved from an archived version of the voat.co page discussing Aegis, via http://pastebin.com/1Xb2h39Z, and was last updated March 27, 2016, and so will not mention any changes to the script after that time) Description: Blocks 201 bad hosts, change windows update to check/notify (do not download/install), disable automatic delivery of internet explorer via windows update, disable ceip/gwx/skydrive(aka onedrive)/spynet/telemetry/wifisense, disable remote registry, disable 31 scheduled tasks, disable windows 10 download directory, remove diagtrack, sync time to ntp.org, hide/uninstall 50 kb updates (see below). Directions: Download, unzip, disable anti-virus, right click on aegis.cmd, click "run as administrator", follow on-screen instructions. Note: If unable to uninstall some kb's this post may help. Internet Explorer: Some updates which may contain critical security patches for ie, as well as automated delivery of ie and related updates, will be blocked. Due to the obvious security risk posed by running an unpatched browser we strongly advise to uninstall ie. If you plan to continue to use ie you should probably not run this script - or manually patch and do so at your own risk. Liability: All code except sed and setacl is provided as open source so you can look and see for yourself what it does. It has been thoroughly tested on my own systems and scanned with VirusTotal, and to the best of my knowledge it does not contain any harmful or malicious elements. However I assume no liability for any problems so use it at your own risk. License: There is no official license - you are welcome to modify and share my code and you do not have to give me credit. I do appreciate any feedback and I will give you credit if I use your ideas. This script is the product of a collaborative effort and does not belong to any one person. Windows Update: This script will not block Windows Update however it will change your Windows Update settings to 'check/notify but do not download/install'. If you have problems getting Windows Update to work properly after running the script you may need to run the Windows Update Troubleshooter or the System Update Readiness Tool. If you have recently installed updates and have not yet rebooted you should reboot before running the script. If you are on a fresh install you may want to install all updates before running Aegis for the first time, otherwise it may take a long time to update. Here is a possibly-incomplete listing of updates that Aegis removes and blocks, using the format: kb update ID update description kb971033 update for windows activation technologies kb2882822 update for adding itracerelogger interface support kb2902907 description not available, update was pulled by microsoft kb2922324 description not available, update was pulled by microsoft kb2952664 update for upgrading windows 7 Ugh, screw this. [kb2976978](https://support.microsoft.com/en-us/kb/2976978) | update for windows 8.1 and windows 8 [kb2977759](https://support.microsoft.com/en-us/kb/2977759) | update for windows 7 rtm [kb2990214](https://support.microsoft.com/en-us/kb/2990214) | update that enables you to upgrade from windows 7 to a later version of windows [kb3012973](https://support.microsoft.com/en-us/kb/3012973) | upgrade to windows 10 [kb3014460](https://support.microsoft.com/en-us/kb/3014460) | update for windows insider preview / upgrade to windows 10 [kb3015249](https://support.microsoft.com/en-us/kb/3015249) | update that adds telemetry points to consent.exe in Windows 8.1 and Windows 7 [kb3021917](https://support.microsoft.com/en-us/kb/3021917) | update for windows 7 sp1 for performance improvements [kb3022345](https://support.microsoft.com/en-us/kb/3022345) | update for customer experience and diagnostic telemetry [kb3035583](https://support.microsoft.com/en-us/kb/3035583) | update installs get windows 10 app in windows 8.1 and windows 7 sp1 [kb3042058](https://support.microsoft.com/en-us/kb/3042058) | update for cipher suite priority order (contains winlogon spying elements) [kb3044374](https://support.microsoft.com/en-us/kb/3044374) | update that enables you to upgrade from windows 8.1 to windows 10 [kb3046480](https://support.microsoft.com/en-us/kb/3046480) | update for migrating .net when upgrading to later version of windows [kb3058168](https://support.microsoft.com/en-us/kb/3058168) | activate windows 10 from windows 8 or windows 8.1, and windows server 2012 or windows server 2012 r2 kms hosts [kb3064683](https://support.microsoft.com/en-us/kb/3064683) | update for windows 8.1 oobe modifications to reserve windows 10 [kb3065987](https://support.microsoft.com/en-us/kb/3065987) | update for windows update client for windows 7 and windows server 2008 r2 july 2015 [kb3065988](https://support.microsoft.com/en-us/kb/3065988) | update for windows update client for windows 8.1 and windows server 2012 r2 july 2015 [kb3068708](https://support.microsoft.com/en-us/kb/3068708) | update for customer experience and diagnostic telemetry [kb3072318](https://support.microsoft.com/en-us/kb/3072318) | update for windows 8.1 oobe modifications to reserve windows 10 [kb3074677](https://support.microsoft.com/en-us/kb/3074677) | compatibility update for upgrading to windows 10 [kb3075249](https://support.microsoft.com/en-us/kb/3075249) | update that adds telemetry points to consent.exe in windows 8.1 and windows 7 [kb3075851](https://support.microsoft.com/en-us/kb/3075851) | update for windows update client for windows 7 and windows server 2008 r2 august 2015 [kb3075853](https://support.microsoft.com/en-us/kb/3075853) | update for windows update client for windows 8.1 and windows server 2012 r2 august 2015 [kb3080149](https://support.microsoft.com/en-us/kb/3080149) | update for customer experience and diagnostic telemetry [kb3081437](https://support.microsoft.com/en-us/kb/3081437) | august 18, 2015, compatibility update for upgrading to windows 10 [kb3081454](https://support.microsoft.com/en-us/kb/3081454) | september 8, 2015, compatibility update for upgrading to windows 10 [kb3081954](https://support.microsoft.com/en-us/kb/3081954) | update for work folders improvements in windows 7 sp1 (contains telemetry elements) [kb3083324](https://support.microsoft.com/en-us/kb/3083324) | update for windows update client for windows 7 and windows server 2008 r2 september 2015 [kb3083325](https://support.microsoft.com/en-us/kb/3083325) | update for windows update client for windows 8.1 and windows server 2012 r2 september 2015 [kb3083710](https://support.microsoft.com/en-us/kb/3083710) | update for windows update client for windows 7 and windows server 2008 r2 october 2015 [kb3083711](https://support.microsoft.com/en-us/kb/3083711) | update for windows update client for windows 8.1 and windows server 2012 r2 october 2015 [kb3086255](https://support.microsoft.com/en-us/kb/3086255) | september 8, 2015, security update for the graphics component in windows (breaks safedisc) [kb3088195](https://support.microsoft.com/en-us/kb/3088195) | october 13, 2015, security update for windows kernel (reported to contain a keylogger) [kb3090045](https://support.microsoft.com/en-us/kb/3090045) | windows update for reserved devices in windows 8.1 or windows 7 sp1 (windows 10 upgrade elements) [kb3093983](https://support.microsoft.com/en-us/kb/3093983) | security update for internet explorer: october 13, 2015 (ie spying elements) [kb3102810](https://support.microsoft.com/en-us/kb/3102810) | windows 10 upgrade elements [kb3102812](https://support.microsoft.com/en-us/kb/3102812) | windows 10 upgrade elements [kb3112343](https://support.microsoft.com/en-us/kb/3112343) | update for windows update client for windows 7 and windows server 2008 r2 december 2015 [kb3112336](https://support.microsoft.com/en-us/kb/3112336) | update for windows update client for windows 8.1 and windows server 2012 r2 december 2015 [kb3123862](https://support.microsoft.com/en-us/kb/3123862) | updated capabilities to upgrade windows 8.1 and windows 7 [kb3135445](https://support.microsoft.com/en-us/kb/3135445) | windows update client for windows 7 and windows server 2008 r2: february 2016 [kb3135449](https://support.microsoft.com/en-us/kb/3135449) | windows update client for windows 8.1 and windows server 2012 r2: february 2016 [kb3138612](https://support.microsoft.com/en-us/kb/3138612) | windows update client for windows 7 and windows server 2008 r2: march 2016 [kb3138615](https://support.microsoft.com/en-us/kb/3138615) | windows update client for windows 8.1 and windows server 2012 r2: march 2016 [kb3139929](https://support.microsoft.com/en-us/kb/3139929) | security update for internet explorer: march 8, 2016 [kb3146449](https://support.microsoft.com/en-us/kb/3146449) | updated internet explorer 11 capabilities to upgrade windows 8.1 and windows 7 Updates including post-Aegis that contain telemetry, updated to June 2018: Windows 7/8/8.1 Updates to avoid as of the June 2018 "Patch Tuesday": KB971033, Activation exploits KB2876229, Skype KB2882822, replaced by KB3068708 KB2952664, telemetry crap KB2970228, new Russian ruble symbol, breaks fonts KB2976978, Windows 10 update crap for Win8 KB2977759, telemetry crap KB2982791, Causes crashes KB2990214, telemetry crap KB3004394, faulty update KB3018238, only applies to Windows Server 2008 KB3021917, telemetry crap KB3022345, telemetry crap KB3035583, telemetry crap KB3050265, telemetry crap KB3065987, telemetry crap KB3068708, telemetry crap KB3075249, telemetry crap KB3075851, telemetry crap KB3080149, telemetry crap KB3081954, telemetry crap KB3083324, telemetry crap KB3083710, telemetry crap KB3097877, Casuses crashes KB3102810, telemetry crap KB3107998, Lenovo fix to remove blocker KB3112336, More WIN10 crap KB3112343, More WIN10 crap + MS monitoring of win10 upgrade KB3121255, crash during backup of PI Data server fails KB3123862, Windows 10 update crap KB3125574, Apr 2016 rollup with bad ones in it KB3133977, BitLocker can't encrypt the drive and the service crashes KB3135445, WIN7 update client to force WIN10 KB3137061, Azure virtual machines network outage data corruption KB3138901, No Internet multiple users log on Remote Desktop Services KB3139923, MSI repair doesn't work after you install updates KB3147071, Connection to Oracle database fails. Causes browser lockups? KB3150513, telemetry crap other: KB3184143 removes the Get Windows 10 app KB3172605 July 2016 update rollup (re-released Sep 13 2016) KB3179573 August 2016 Rollup
-
I made a python script but im having problems with one of my pcs it works on all the others but will now work on this one I have a module that I have to install before the script can run, I install it and check pip to see that it is indeed installed and its is so I run the cmd which will run my .py script and I get this error: but I just checked with pip and it said it was installed. No matter what I do I cannot get it to work, I've downloaded undetected-chromedriver.tar and tried with cmd to directly install it in the python path and it still will not work. Again nothing worng with my python script it is running on 2 other pc's I just cant get it to work on this computer for some reason its driving me crazy any help would do wonders thanks.
-
Hi Guys, I was searching all over the web but couldn't find any simple update scripts for Plex. So I made my own. I hope I can save someone the trouble of writing there own The Script is based on PowerShell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12 $json = Invoke-RestMethod -Uri "https://plex.tv/api/downloads/1.json" $dl_url = $json.computer.Windows.releases.url $checksum = $json.computer.Windows.releases.checksum $Latest_Version = $json.computer.Windows.version $PlexServerIP = "localhost:32400" $XPlexToken = "YOUR_PLEX_TOKEN" #example: _aBcDEf_12g3hijkL4Mn $Status_url = "http://$PlexServerIP/status/sessions?X-Plex-Token=$XPlexToken" $PlexServerPath = "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe" $PMSUpdate_Path = "C:\Users\Administrator\AppData\Local\Plex Media Server\Updates" $Server_Version = (Get-ChildItem -Path $PMSUpdate_Path | sort LastWriteTime | select -last 1).Name $Latest_Pkg_Path = "$PMSUpdate_Path\$Latest_Version\packages" If($Latest_Version -ne $Server_Version) {#Update Required New-Item -Path $Latest_Pkg_Path -ItemType Directory | Out-Null $dl_FilePath = "$Latest_Pkg_Path\PlexMediaServer-$Latest_Version-x86.exe" (New-Object System.Net.WebClient).DownloadFile($dl_url, $dl_FilePath) $dl_FileHash = (Get-FileHash -Algorithm SHA1 $dl_FilePath).Hash If($dl_FileHash -eq $checksum) { #Install Update do { $data = Invoke-WebRequest -Uri $Status_url $isStreaming = !($data -match '<MediaContainer size="0">') if($isStreaming){Start-Sleep -Seconds 10} } while($isStreaming) Start-Process -FilePath $dl_FilePath -ArgumentList "/install","/quiet" -Wait Start-Process -FilePath $PlexServerPath } } What it does: It checks for the newest version of Plex online, compairs it with the latest update-installer your server has. If the file on your server is older it will download the newest one, validates the checksum and Installs it. Why do I need a X-Plex-Tolken? - It is not required, but if you enter your tolken the script can check if a user is still streaming and the script will wait with the install until the stream is closed. (If you dont want to use this function you have to remove the "do-while".) So have fun with it and if you have Ideas to improve it share them with us
- 3 replies
-
- plex
- powershell
-
(and 4 more)
Tagged with:
-
Hey guys, I recently wrote a script for a techquicky like video with a harder focus on a physics approach to computer hardware, just because I felt like it. I am not sure yet if I am going to make a video out of it (thus there is no actual data in here). I hope you have some things to say If I ever made that video, I'd probably use CGP-Gey like powerpoint animations, moving around the different symbols to represent the "==> " lines and excel charts to present the data Also: would you be interested in a video like this, and or the possible video hinted at in here? The script: Thanks for reading, Chalky
- 3 replies
-
- techquicky
- feedback
-
(and 2 more)
Tagged with:
-
Hello guys! I got a request to make on something I've been struggling to figure out for a while now! I have two screens including one that I rotate quite often from landscape for everyday use to portrait for programming. However it gets quite annoying to go to the control panel and constantly switch and reposition the screen and orientation... So here is what I hope is possible to do: Is it possible to have a script (windows and/or ubuntu) that allows me to enter a keyboard shortcut to quick swap from portrait to landscape and move the relative position of the screen (if possible). I may be asking a lot but I simply do not have the skills yet to create a script of that genre. Here are some images on the screen setups I was talking about earlier. http://imgur.com/a/3msiP Thank you for your help!!!
-
Disclaimer: there are still issues with it that need to be resolved but in general it should work Ever wondered how to change wallpaper to a Christmas theme during Christmas but keeps forgetting? Want to remind yourself of something but sticky/notes is not your thing and you'd rather have a big wallpaper on the screen? Here is how! PART 1: The code First off, open up Windows PowerShell ISE (with Admin rights) Start>All Apps>Windows Powershell ISE C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe (64-bit) C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell_ise.exe (32-bit) Once the program is open make sure script pane is enabled View > Show Script Pane Next, copy paste the following code to the script pane (the white space) LINK to original code: http://poshcode.org/491 Now edit the very last line [Wallpaper.Setter]::SetWallpaper( 'location', 2 ) Location is where your actual wallpaper is located, example T:\WallpaperTest\blue.jpg Change number 2 to one of the following to match the style you wish 0: Tile 1: Center 2: Stretch 3: No change Since the options are limited to these 4 it is best to find wallpaper that are same resolution or same aspect ratio at least My real life example [Wallpaper.Setter]::SetWallpaper( 'T:\WalllpBackground\harbinger2k914ktv.jpg', 2 ) Save the PowerShell script file to a location convenient to you. We now try to run the script to see if it works or not. Before running the script make sure you can run the script. Type the following to the console pane get-executionpolicy If the result shown as RemoteSigned proceed with next step, if not type this (you can only do that if you have admin rights). This is a security measurement made by Microsoft to prevent malicious scripts that came from the internet to be executed. set-executionpolicy remotesigned Press the green play icon on top to run it or press F5 on your keyboard If no error shown then your wallpaper background should be changed instantly to the one you specify! PART 2: Task scheduler First, open Task Scheduler C:\Windows\System32\taskschd.msc Start > All Apps > Windows Administrative Tools > Task Scheduler Next, press create task on the right Action pane Name it whatever you feel you wish it to be named, Run with highest privileges should be checked. Now go to Triggers tab, select New... and choose what triggers you most in your life (TRIGGGGGEEEERRRRED). In all seriousness, this is where you set your date. If you wish the wallpaper to be changed on Valentine's day then select the time and date for it to be changed (Begin the task should be On a schedule for you to change to a specific time). You can also set it to be repeated too. It's Feb 14 FYI. For now if you have doubt your script will run as intended, change Begin the task to At log on. It will start changing after your computer restarted. Then if you see the wallpaper has been changed for you after the restart you can then change to a specific date **** You have to do this for each wallpaper unfortunately, there is no way to group them for convenience. So far it only changes to one wallpaper but you can set to change to a different wallpaper after a specific time (just make a new task with new wallpaper and set the time to let's say 30mins later) Now go to Actions tab Press New... Under program/script type powershell.exe Under arguments type -executionpolicy bypass location Execution policy bypass allow you to run your script, it will be set temporarily for this script only so the rest execution policy should remain the same Change location to the location of your script, not your wallpaper Conditions, Settings and History tab has nothing much to do, if you are on laptop you can disable Power stuff. The task itself runs within few seconds**** only so no need to stop it (as an option in Settings tab). Hit OK. You are finished! I hope the stars I put out are big enough to see **** still working on a way to see why the script takes time to work through task scheduler. Turning Windows fast startup seems to speed things up (Control Panel > Hardware & Sound > Power Options > Choose what the power buttons do > Change settings that are currently unavailable > Turn on fast startup). It takes time, even on an SSD. So your previous wallpaper will stay for a while.
- 3 replies
-
- wallpaper
- task scheduler
-
(and 2 more)
Tagged with:
-
Hello People, Looking to create a script to do the following in Reg Edit. 1. Load a specific users hive 2. search for HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\UserChoice 3. If the folder exists, remove it. 4.Unload the hive. I am very very new to PowerShell and so the most I have been able to find that I may be able to modify or use is the following : $regkeypath= "hklm:\Software\Testkey" $value1 = (Get-ItemProperty $regkeypath).test -eq $null If ($value1 -eq $False) {Remove-ItemProperty -path HKLM:\SOFTWARE\Testkey -name test} Else {Write-Host "The value does not exist"} Any help would be greatly appreciated. Jim. *Mods : not sure if this is the correct place for this Topic, understand if its moved*
-
Hi all! I'm sorting through my music collection, removing duplicates, correcting wrong labels and tags, etc. I did a lot of research on apps and so on that I can use and found Metatogger to be the most suitable for me. One of its functions is to write a C# script to control the tags how I want to - it provides a few example scripts which have been very useful but I need something that isn't in the examples. What it needs to do: Take "feat. artist" from the ARTIST tag and move it to the end of the TITLE tag within brackets. For example: ARTIST: Bon Jovi Feat. Bob Geldof TITLE: I Don't Like Mondays Should become: ARTIST: Bon Jovi TITLE: I Don't Like Mondays (Feat. Bob Geldof) Things that may be useful: Metatogger Roslyn Documentation (Metatogger uses Rosyln compiler) Metatogger's Example Scripts If anyone would be able to write a script that would be able to do that, I would be very grateful. Thanks!
- 2 replies
-
- metatogger
- music
-
(and 2 more)
Tagged with:
-
Hey guys, I want to have a script in Gimp, that automaticalle does: resize the selected (other ways if needed too) picture to 0,75*the height of the whole gimp project (lets say pic1 is 1920*1080 I would want it to resize pic2 to 810) align it center Preferably no external plugins, script-fu should be able to do this. If the Programming Forum fits this better I'm sorry. sincerely schmidti
-
OK so I've been working on learning PowerShell and as it's Daddy weekend I decided to show my kids some fun things that you can do with PowerShell and naturally it didn't work... Lol What I'm trying to do seems like it would be pretty basic but I'm either making it too difficult or missing something. Lol The goal is to have a script or text file that I can enter my children's information in to like this: #Daughter's Information $daughterInfo = @( $firstName = "Sarah" $lastName = "Marshall" $birthday = "October 12th, 2006" $gender = "Her" ) #Son's Information $sonInfo = @ ( $firstName = "Shaun" $lastName = "Marshall" $birthday = "January 30th, 2010" $gender = "His" ) On the second script I would like to write-Host and then write out a bunch of text that will list all the information from the first script but I want to just be able to change one thing so that it pulls information from the correct area. [In PowerShell] Please Select a Child 1. Sarah 2. Shaun [Here you would choose a child, Let's say I chose Shaun] Write-Host "This is some information about $sonInfo.FirstName" Write-Host "Full Name - $sonInfo.firstName $sonInfo.LastName" Write-Host "$sonInfo.gender birthday is $sonInfo.birthday" [PowerShell Output] This is some information about Shaun Full Name - Shaun Marshall His birthday is January 30th, 2010 So obviously I want it to list out more than that but if someone can show me the basic way I should be able to figure out the rest (hopefully) Lol I did Google but I wasn't sure exactly how to word the search... Thanks, Ryan
-
Hi, i have a simple bash script that runs perfectly when executed directly, but when running it from ruby using `shellscript.sh`, some parts don't work as expected as if the script wasn't executed within the Bash shell, but some other more basic shell lacking certain features. #!/bin/bash # Parsing cli options to variables src_path=$1 dst_path=$2 log_path=$3 # Generating file listing dir_name="${src_path##*/}" file_list=$(date +%Y%m%d%H%M%S)'_'$dir_name'.log' list_dir="/home/pi/FileListings/" # Running backup sudo rsync -av --delete-during $src_path $dst_path >> $list_dir$file_list status=$? if [ $status == 0 ]; then echo $(date)" Backup of $dir_name complete. For more details, check individual logs." >> $log_path fi I suspect that the condition in the if statement isn't evaluated properly. The error message is something along the lines of "command [0: not found". This would occur in a shell which does not support this syntax. I've also tried equivalent statements, none of which worked in this case, even though ALL of them should be correct under bash... Thanks in advance Steffen
-
Hey, I have a question is there any way that when I launch a specific program. Csgo in this scenario. That my second monitor can automatically turn off like if I unplugged it?