Enable Network Discovery (PowerShell) I hate having to do this manually on Windows Server. It never works. Here is a script! cd $env:temp; powershell -c "Invoke-WebRequest -Uri 'https://git.icanhazfiles.com/cmyron/enable-networkdiscovery/-/raw/main/Enable-NetworkDiscovery.ps1' -OutFile $env:temp'\Enable-NetworkDiscovery.ps1'"; powershell.exe -Executionpolicy unrestricted -command .\Enable-NetworkDiscovery.ps1; rm .\Enable-NetworkDiscovery.ps1
VMware Workstation: USB Passthrough Greyed out Removable devices Connect (Disconnect from host) is greyed out. Why? Don’t know. Its stupid. But, I do know how to fix it! Open your VMX file for the VM, find the line below, remove it, and start your VM. Magic! usb.restrictions.defaultAllow = "FALSE"
WiFi PowerShell Modules WiFi management from the CLI sucks. Here is your friend: WiFi PowerShell Modules. NOTE: They are a work in progress, they're far from perfect at the moment. Although they do function. New-Item -Path "C:\Program Files\WindowsPowerShell\Modules\WiFi" -ItemType Directory -ErrorAction SilentlyContinue | Out-Null; cd "C:\Program Files\WindowsPowerShell\Modules\
Show Installed Software with PowerShell Yeah, that. Pretty awesome, usually does a good job of showing everything. cd $env:temp; powershell -c "Invoke-WebRequest -Uri 'https://git.icanhazfiles.com/cmyron/show-installed-software/-/raw/main/Show_Installed_Software.ps1' -OutFile $env:temp'\Show_Installed_Software.ps1'"; powershell.exe -Executionpolicy unrestricted -command .\Show_Installed_Software.ps1; rm .\Show_
Repair Office 365 Install from CLI If you are anything like me, you'd rather solve a problem for someone without having to spend an hour on the phone. Well, enter CLI fixes for Office 365! CD to a directory (below) and run a command! cd 'C:\Program Files\Microsoft Office 15\ClientX64' .\OfficeClickToRun.exe scenario=Repair
Wrong Email Address Showing In Outlook (macOS) You just got a new job or new email, congrats! You sign into Outlook, think everything is peachy, but yet it still prompts you for that old account, right? Literally just remove the old email from your contact in Outlook. Seriously, it auto maps what's in your contact to Outlook.
CLI SpeedTest Well since CLI SpeedTest from Ookla is a thing, but it kind of sucks, have this. Batch: cd %temp% && powershell -c "Invoke-WebRequest -Uri 'https://git.icanhazfiles.com/cmyron/run-speedtest/-/raw/main/Run-SpeedTest.ps1?inline=false' -OutFile '.\Run-SpeedTest.ps1'" && powershell.exe -Executionpolicy unrestricted -command .\Run-SpeedTest.
AD Info With PowerShell I know, I know. Some of you will say "Why don't you just get RapidFire tools, they do all this stuff." Some of us aren't made of money. Get over it. cd $env:temp; Invoke-WebRequest https://git.icanhazfiles.com/cmyron/get-adinfo/-/raw/main/Get-ADInfo.ps1?inline=false -outfile Get-ADInfo.
Computer Info with PowerShell Dump this into your magical little CMD (Top) or PowerShell (Bottom) window as admin, and you are off to the races. Enjoy, feel free to cry if something is wrong. Batch cd %temp% && powershell -c "Invoke-WebRequest -Uri 'https://git.icanhazfiles.com/cmyron/computer-info-gatherer/-/raw/main/Computer_Info.
Former Domain PC Tells You No on AzureAD Apparently domain group policy has a thing that messes with the allowed users for logon. Many hours later, this one liner resets the logon and security settings in group policy to defaults. Once this is in place, magic. Everything works again. secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.
Outlook Keeps Prompting for a Password (Even with an App Password) You know the thing. It usually manifests itself on AzureAD joined PCs. But, it keeps giving you that annoying prompt with the username but doesn't go away. Well boy howdy, here's a fix that made my day! HKEY_CURRENT_USER\Software\Microsoft\Exchange Add the DWORD AlwaysUseMSOAuthForAutoDiscover and set it
Your Intel Laptop Sucks on a Dock reg add HKLM\SYSTEM\CurrentControlSet\Services\MEIx64\Parameters\ /v PG_DISABLED /t REG_DWORD /d 1 /fRun that, disable C States, magic. Power management stuff really sucks all the fun out of computing these days......
Hidden Advanced Power Options So you're running down a power saving issue, right? You need to really dig into those power options. Well, here is a thing. Files · main · Chandler Myron / Turn On All Advanced Power OptioinsGitLab Community EditionGitLabEnjoy. It turns on visibility for all the Advanced Power Options for you, saving that precious
Dell Laptop and Dock Dumping Network Connection (Or Any Laptop For That Matter) So, your Dell laptop (or customer laptop, pick your poison) is dumping the network. Random apps (like Quickbooks, gross) are timing out, things just seem all around bad. Well, turns out its a "feature" not a bug! Selective Suspend, its a thing with USB devices. If you have a USB
So you need to grow your $linuxdistro disk So, you likely just have a single thing with the stuff. /dev/sda is likely your disk, assuming you have a single drive in this virtual machine you are growing and it was installed with the default partitioning. If it isn't this way, wing it with your own /dev/sd$
On-Premises Exchange Is Dumb - Get rid of it in like 7? easy steps Go to your PDC and open ASDI Edit a. Connect to your Active Directory in Configuration b. Blow out the following items CN=Services/CN=Microsoft Exchange CN=Services/CN=Microsoft Exchange Autodiscover 2.Open ADUC and nuke the following OUs and their objects a. -Microsoft Exchange Security Groups -Microsoft
Enable Windows Hello on Domain Joined PCs Can’t configure a convenience PIN - Windows ClientDescribes an issue that prevents users of Windows 10 Anniversary Update from setting a convenience PIN. This change involves Windows Hello for Business and the increased security this feature offers. A resolution is provided.Microsoft DocsDeland-HanMake sure the only registry values that
So you think you are in a toxic work environment....... Bananas. We have a list, we are working on it. Standby
So you changed your RD Gateway port number......... Yeah. That. Just run this guy below for your collections and you can update them. Unless you feel like blowing out your collections and starting over. I guess that works too. Set-RDSessionCollectionConfiguration -CollectionName “$yourcollection” -CustomRdpProperty “gatewayhostname:s:remote.gateway.net:$portnumber”
QuickBooks Network Drive Not Showing Up So, yeah, QuickBooks (insert vomit emoji here). So, if you are enjoying a new deployment or migration or upgrade like I have been (yay me) you probably have run into this stupid. Its either just tribal knowledge at this point, or hanging around on your user's computers for so long
Detecting Static IPs at Onboarding We all hate onboarding pains. Not knowing anything about the client, discovering the major whoopsies of someone else's problem child. One huge pain (especially lately with a DNS migration) has been all the stupid static IPs set all over the place on workstations that nobody knew about. Well, boy do
So You Wanna Migrate a CA Server? Alright well this is what you're gonna need to do. Step Numero Uno : Backup your CA database and it's config 1. Login to your server, (Im assuming your an admin on this box, if youre not, let me holla at your CySec Team right quick, because they gonna learn today)
Get Public IP with PowerShell Yeah, do this thing. Pretty sick little command. Add a variable and add .$informationyouwanthere and you can pipe this to other commands too to do some really magical things. Invoke-RestMethod http://ipinfo.io/json
Get System Uptime with PowerShell So, Get-Date gets the current date, right? And LasBootUpTime under Win32_OperatingSystem shows you the nice things, also right? Well, check this out. Subtract the two, magic. (Get-Date) – (gcim Win32_OperatingSystem).LastBootUpTime
Export Event Log With PowerShell This is a thing. I wrote that thing. There's not much to this thing, it just does what you expect it to. Which, if you expect anything other than exporting the last 7 days of the system event log with only errors and warnings and such, then, uh, bananas. You