An IT engineering family’s journey…
-
Log Specific IPV4 Traffic When Found
-
Remove Revoked Certificates
The removal of revoked certificates is not automatic…
-
Set PS 5.1 to use PS 7 PSModulePath
…might as well prepare by using the D:\PowerShell path now with PS 5.1…
-
Set PowerShell Credential
…you can make the script prompt you for you admin credential or you can type it in manually, or adjust from your username for more elevation
-
Update-Windows_Powershell.ps1
Updates Windows powershell modules, installs any not installed, and updates help for them all
-
Get ALL A User’s Groups
…get every group a user is in, including the Primary
-
Get-ADGroup WildCard is BROKEN
In the past (2018) you could use ‘like’ on Get-adgroup, like this:
-
PS Script to Promote 2019 Server to RWDC
Add-WindowsFeature -Name “AD-Domain-Services” -IncludeManagementTools:$False -Confirm -ea Inquire -LogPath “C:\Users\$env:username\Documents\WindowsPowerShell\log\$day-RWDCPromo.log”
-
PowerShell/PowerCLI: UMount All ISOs At Once
Get-VM -Name $vm | Get-CDDrive | Set-CDDrive -NoMedia -StartConnected $false
-
Install Any Command Easily in PowerShell
That’s how you would install ANY module for a command you need. Now TELL me that’s not convenient!
-
Our Azure Resource Group, Tenant, and Subscription Questions to ChatGPT.org
Azure RGs, Subscriptions and Tenants can get confusing; This Q&A my son Ryan and I asked ChaGPT.org, during our AZ-104 training, should help.. Can an Azure Subscription be accessible by multiple tenants? And why?In Azure, can there be multiple subscriptions in a tenant? Can users access multiple subscriptions? How?
-
HOWTO: Discover Where a LOCAL ISO is Mounted – Windows Server 2016/2012R2
..the ISO still throws the “Sorry…” error
-
Check-Uptime-DC-Prompt.ps1
Sometimes a simple script makes life easier…
-
Eval: Poly Voyager 5200 UC
Poly? Oh, there it is, that’s why it’s called “Poly”; Plantronics was acquired by Polycom. 7 hr. talk time diminishes down to 6 over time. You can get a full day if you plug in the headset during breaks and lunch. Also connects to Cell for hands-free calling by voice. The battery being directly in…
-
Get-Pagefile
Quickly get the remote pagefile of a window server
-
Looper
Having a good looper is a great script to keep available… I wish I could remember where I got this form, but I thank you, Anony-Mouse scripter! [::mouse::]
-
Check for GPO or run GPupdate Remotely
This script does lots of things that are handy when group policy (SysVol) replication is a problem… (like an environment still using FRS) My Thanks to Microsoft’s CoPilot for the help in sorting the logic of the try-else-catch commands…
-
Reverse /24 IP Scope With PTR and Hostname
-
HOWTO-Run Robocopy Hard and Fast
To ignore errors and make Robocopy proceed without stopping, you can adjust the `/R` and `/W` switches in your command. The `/R` switch specifies the number of retries on failed copies, and the `/W` switch specifies the wait time between retries². To force Robocopy to copy a file regardless of its condition, you can use…
-
Reverse Ping a 255.255.254 Scope
To quickly obtain the devices using an IPv4Address in a scope reverse ping the scope in PowerShell (5.1) ‘#’ReverseLookup-Ipv4Address-By23Range.ps1’$subnet = read-host -Prompt “What IP scope with /23 range? -leave off the last octet numbers – like this 10.228.30. “for ($i=0; $i -le 511; $i++) { $ip = $subnet + $i Resolve-DnsName -name $ip -ea SilentlyContinue|select…
-
Find and Install SSH Module
$Module = (FIND-Module SSH).name Install-Module -Name $Module -AllowClobber -Verbose -SkipPublisherCheck -Repository PSGallery -AcceptLicense -PassThru|` Import-Module -NoClobber -DisableNameChecking -PassThru -Verbose|Update-Module -Verbose -AcceptLicense -PassThru|Get-Module
Got any book recommendations?