This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iDRAC Setting Fan Speed on Poweredge R730xd with IPMI (should work with others but cmds will vary with device names | |
========================================================================================================= | |
Reference: https://gist.github.com/mdpuma/8972079b7da52afef15cc039039ff818 (now 404s) | |
Reference: https://old.reddit.com/r/homelab/comments/j3hh1r/poweredge_r730xd_fans_loud_wont_slow_down_help/g7fv0rn/ | |
This gist: https://gist.github.com/Marshall-Hallenbeck/716521e1f8ac58134b2faed6264a7df4 | |
1. Get your iDRAC on the LAN and config a username and password | |
2. In the iDRAC interface (access via web browser), enable IPMI in iDRAC Settings > Network > IPMI Settings | |
3. Download/install the Dell iDRAC tools for windows (in this case, filename was DellEMC-iDRACTools-Web-WINPE-9.4.0-3732_A00.exe) | |
4. Open a cmd prompt (iDRAC IP in this example is 192.168.16.2) | |
5. cd c:\program files\dell\sysmgt\iDRACTools\IPMI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To use the function, call it like this: | |
# iex(new-object net.webclient).downloadstring("https://gist.githubusercontent.com/LuemmelSec/208b8ba52b645ec189031d2b5200f76e/raw/c6c1008da1b5670d3fb549578968c2a2f086a00b/Get-SPVersionInfo.ps1") | |
# Get-SPVersionInfo -ServerUrl "https://my-sharepointserver" | |
function Get-SPVersionInfo { | |
param ( | |
[string]$ServerUrl, | |
[switch]$SkipCertificateCheck, # Flag to skip certificate checks | |
[switch]$SkipHttpErrorCheck # Flag to skip HTTP error handling | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright: (c) 2024, Jordan Borean (@jborean93) <[email protected]> | |
# MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
Function New-ScheduledTaskSession { | |
<# | |
.SYNOPSIS | |
Creates a PSSession for a process running as a scheduled task. | |
.DESCRIPTION | |
Creates a PSSession that can be used to run code inside a scheduled task |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
caller_name = inspect.stack()[1].function | |
file_name = inspect.stack()[1].filename | |
line_number = inspect.stack()[1].lineno | |
self.logger.debug(f"Called from function: {caller_name} in file {file_name} at line {line_number}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create PS folder on C: drive | |
New-Item -ItemType Directory -Force -Path "C:\PS" | |
# Set TLS versions for download (it will error otherwise) | |
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" | |
# Download PsTools | |
Invoke-WebRequest -Uri "https://download.sysinternals.com/files/PSTools.zip" -OutFile "C:\PS\PSTools.zip" | |
# Extract PsTools to the PS folder | |
Expand-Archive -Path "C:\PS\PSTools.zip" -DestinationPath "C:\PS" | |
# Auto Accept EULA, can also run psexec with -accepteula | |
#reg ADD HKCU\Software\Sysinternals\PSexec /v EulaAccepted /t REG_DWORD /d 1 /f |
Some golden links when you are having issues: https://social.technet.microsoft.com/Forums/windows/en-US/96016a13-9062-4842-b534-203d2f400cae/ca-certificate-request-error-quotdenied-by-policy-module-0x80094800quot-windows-server-2008?forum=winserversecurity
Download and install Certi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[framework/core] | |
PROMPT=%whi[%T] %red(%L) %yel%J %grn%S%whi | |
TimestampOutput=true | |
ConsoleLogging=true | |
SessionLogging=true | |
[framework/features] | |
[framework/ui/console] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VMware vSphere 6 Enterprise Plus | |
1C20K-4Z214-H84U1-T92EP-92838 | |
1A2JU-DEH12-48460-CT956-AC84D | |
MC28R-4L006-484D1-VV8NK-C7R58 | |
5C6TK-4C39J-48E00-PH0XH-828Q4 | |
4A4X0-69HE3-M8548-6L1QK-1Y240 | |
VMware vSphere with Operations Management 6 Enterprise | |
4Y2NU-4Z301-085C8-M18EP-2K8M8 | |
1Y48R-0EJEK-084R0-GK9XM-23R52 |
NewerOlder