#sure

1 messages · Page 1 of 1 (latest)

teal drift
#

Create a PowerShell script with implemented fallbacks for PowerShell 2.0, full modularity and concurrence with jobs on PowerShell 3.0. Check for administrator rights; if they are missing, initiate a UAC prompt.

Add functionality to collect the serial number from Windows and include it in the script.

Append the serial number in a flat, formatted JSON file named "inventory.json," located in the script's directory, along with a script timestamp; this format should be ideal for Excel imports. Update the serial number entry if a match already exists.

Implement checks for RustDesk installation. If not installed, check for the RustDesk installer (named "rustdesk-1.3.7-x86_64.exe") in the script's directory. If the installer is not found, download the latest RustDesk version to the script directory (currently, https://github.com/rustdesk/rustdesk/releases/download/1.3.7/rustdesk-1.3.7-x86_64.exe is the latest). Silently install the downloaded RustDesk version, collect the RustDesk ID using the --get-id command, generate a random 12-character password, and set this generated password as the RustDesk password.

Store the RustDesk password in "inventory.json".

Check for UrBackup installation. If not installed, check for the UrBackup installer ("UrBackup Client 2.5.25.exe") in the script's directory. If the installer is not found, download the latest UrBackup installer from https://hndl.urbackup.org/Client/2.5.25/UrBackup Client 2.5.25.exe. Set server-confirm to true in the UrBackup configuration.

Set the primary DNS to 193.110.81.9 and the alternate DNS to 94.140.14.14 on all network interfaces.

Add the "ihcjicgdanjaechkgeegckofjjedodee" extension to Chromium-based browsers (Chrome, Edge, Brave, Vivaldi, Opera, and Opera GX) via the registry. Add this to the script. Additionally, add functionality to install the "malwarebytes-2.6.27.xpi" extension for Firefox-based browsers using the command: firefox -install-global-extension "path\to\extension.xpi". The extension can be downloaded from https://addons.mozilla.org/firefox/downloads/file/4301528/malwarebytes-2.6.27.xpi.

Check if an "itadmin" account exists on the machine.

Generate a 12-character password called "itadmin password" and store it in "inventory.json."

If the "itadmin" account exists, reset its password with the newly generated one.

If the "itadmin" account does not exist, create it and set its password to the newly generated one.

Schedule a full scan with Windows Defender on Windows 10 and 11 for a random time between 8:00 AM and 5:00 PM on a random weekday within the next 14 days (do not repeat if a scan is already scheduled).

Enable remote WinRM commands to the target machine if authentication is done using the "itadmin" credentials. Allow access from all machines. Add this as a feature to the script.

Enable remote RDP access to the target machine if authentication is done using the "itadmin" credentials. Allow access from all machines. Add this as a feature to the script.

The script should collect and store in "inventory.json" the PC user name, PC name, CPU model, GPU model, and, for all interfaces, the interface name, IP address, and MAC address. It should also collect RAM information including model, speed, DDR version, stick size, and total size and store this in the flat, formatted JSON file. Additionally, the script should gather connected printers and their IPs, filtering out PDF/OneNote printers, determine whether the main drive is an SSD or HDD using the most reliable method available for the PowerShell version, record the main drive's disk usage percentage, list all installed applications that are not built-in, Microsoft, Lenovo, or Dell applications, and identify the antivirus provider, storing all of this information in "inventory.json".

#

@agile ice try this on there deepseek nearly can one shot this. o1 can't

agile ice
#

one sec

#

@teal drift

teal drift
agile ice
#

oh shit

#

I don't think it did, it was my phone's clipboard not letting me paste larger text

#

my apologies

#

will try again when im on my laptop lmao