If you paste this into admin powershell, it disables copilot inside of MS365 installed apps. Doesn’t change apps online, or the ability to use other AI’s, even copilot website, BUT it does block the copilot add on items in all installed office apps (Being used for PCA here shortly)
That’s what you run on a machine once it’s been prepped, software installed etc, to bring it back to oobe (so the next reboot can ask about account setup etc.
Specifically helpful if you prepped a machine, but had to upgrade from home to pro.
· Right-click on “Command Prompt” and select “Run as Administrator”.
Disable hibernation: powercfg.exe /hibernate off
Disable all sleep states (including standby): powercfg -change -standby-timeout-ac 0
powercfg -change -standby-timeout-dc 0
PowerShell
2. Open an elevated PowerShell window:
· Search for “PowerShell” in the Start menu.
· Right-click on “Windows PowerShell” and select “Run as Administrator”.
3. Disable hibernation: PowerShell Powercfg -Hibernate Off
4.
5. Disable all sleep states (including standby): PowerShell Powercfg -Change -Standby-Timeout-AC 0
6. Powercfg -Change -Standby-Timeout-DC 0
7.
Key Points:
· AC vs. DC: The “-ac” and “-dc” options in the powercfg command distinguish between when the computer is plugged in (AC power) and when it’s running on battery (DC power).
· Permanent change: These commands will permanently disable sleep and hibernation until you re-enable them.
· Elevated permissions: You need to run Command Prompt or PowerShell as an administrator for these commands to work.
To Re-Enable Sleep and Hibernation
· To re-enable hibernation, use:
· powercfg.exe /hibernate on (Command Prompt)
· Powercfg -Hibernate On (PowerShell)
· To set specific timeouts for sleep modes, use the powercfg command with the desired timeouts in seconds.
Let me know if you’d like help customizing your timeout settings!
To reveal the password for a known Wi-Fi network (SSID) in Windows 11 using the command line, follow these steps:
Open Command Prompt as Administrator:
Click on the Start menu, type cmd or Command Prompt in the search bar.
Right-click on Command Prompt from the search results and select Run as administrator.
List All Saved Wi-Fi Profiles:
In the Command Prompt window, type the following command and press Enter:sqlCopyEditnetsh wlan show profiles
This command will display a list of all Wi-Fi profiles that your computer has connected to previously.
Display the Password for a Specific Wi-Fi Profile:
Identify the Wi-Fi profile name (SSID) for which you want to reveal the password from the list generated in the previous step.
Type the following command, replacing Your_SSID with the name of your Wi-Fi network, and press Enter:pgsqlCopyEditnetsh wlan show profile name="Your_SSID" key=clear
In the output, scroll to the Security settings section.
Locate the line labeled Key Content; the value next to it is the Wi-Fi password.
Example: If your Wi-Fi network name is HomeNetwork, the command would be:
pgsqlCopyEditnetsh wlan show profile name="HomeNetwork" key=clear
The output will display information about the profile, and under Security settings, you’ll find:
Note: Ensure you have administrative privileges to execute these commands. This method works for Wi-Fi networks that your computer has previously connected to and saved.