- GUI files
- separate Utilities.cs
This commit is contained in:
486
profile.json
Normal file
486
profile.json
Normal file
@@ -0,0 +1,486 @@
|
||||
[
|
||||
{
|
||||
"ProfileName": "Do nothing",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": ["Do nothing"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{P00}",
|
||||
"{P01}",
|
||||
"{P02}",
|
||||
"{P03}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ProfileName": "Test",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"command 1 {P00} {P01} {P02}",
|
||||
"command 2 {P00} {P01}",
|
||||
"command 3 {P00} {P03}"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{P00}",
|
||||
"{P01}",
|
||||
"{P02}",
|
||||
"{P03}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ProfileName": "Change Hostname",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"Rename-Computer -NewName {New Host Name} -Force -PassThru",
|
||||
"hostname"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{New Host Name}"
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Show_NetworkInterfaces",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"netsh interface show interface"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Assign_IPv4Address",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"netsh interface ipv4 set address name=\"{Name of Interface}\" source=static addr={IP Address} mask={Net mask} gateway={Gateway}",
|
||||
"netsh interface set interface \"{Name of Interface}\" admin=disable",
|
||||
"netsh interface set interface \"{Name of Interface}\" admin=enable",
|
||||
"netsh interface ipv4 show config name=\"{Name of Interface}\" "
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{Name of Interface}",
|
||||
"{IP Address}",
|
||||
"{Net mask}",
|
||||
"{Gateway}"
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "Powershell_Assign_IPv4Address",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"New-NetIPAddress -InterfaceAlias \"{Name of Interface}\" -IPAddress {IP Address} -PrefixLength {PrefixLength} -DefaultGateway {Gateway}",
|
||||
"Get-NetIPAddress -InterfaceAlias \"{Name of Interface}\""
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{Name of Interface}",
|
||||
"{IP Address}",
|
||||
"{PrefixLength}",
|
||||
"{Gateway}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ProfileName": "SSH_Cisco_Tftp_Running",
|
||||
"ProfileType": "SSH",
|
||||
"ProfileCommands": [
|
||||
"copy run tftp://"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{IP Address}",
|
||||
"{User Name}",
|
||||
"{Password}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ProfileName": "SSH_Cisco_Catalyst_Tftp_Running",
|
||||
"ProfileType": "SSH_Catalyst",
|
||||
"ProfileCommands": [
|
||||
"copy running-config tftp://"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{IP Address}",
|
||||
"{User Name}",
|
||||
"{Password}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ProfileName": "SSH_Cisco_Tftp_Startup",
|
||||
"ProfileType": "SSH",
|
||||
"ProfileCommands": [
|
||||
"copy startup-config tftp://"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{IP Address}",
|
||||
"{User Name}",
|
||||
"{Password}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ProfileName": "SSH_Cisco_Catalyst_Tftp_Startup",
|
||||
"ProfileType": "SSH_Catalyst",
|
||||
"ProfileCommands": [
|
||||
"copy startup-config tftp://"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{IP Address}",
|
||||
"{User Name}",
|
||||
"{Password}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ProfileName": "RAC9_PS_status_dual",
|
||||
"ProfileType": "RAC9",
|
||||
"ProfileCommands": [
|
||||
"get system.power.supply.1",
|
||||
"get system.power.supply.2"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "RAC9_storage_pdisks",
|
||||
"ProfileType": "RAC9",
|
||||
"ProfileCommands": [
|
||||
"storage get get pdisks -o"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "RAC9_networkinterfaces",
|
||||
"ProfileType": "RAC9",
|
||||
"ProfileCommands": [
|
||||
"gethostnetworkinterfaces"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "CMD_OS_name",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"systeminfo | findstr /B /C:\"OS Name\" /B /C:\"OS Version\""
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "CMD_Windows_Activation_status",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"cscript c:\\Windows\\System32\\slmgr.vbs /dlv"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "CMD_Windows_Enable_RemoteDesktop",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"REG ADD \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\" /v fDenyTSConnections /t REG_DWORD /d 0 /f",
|
||||
"netsh advfirewall firewall add rule name=\"Remote Desktop (TCP-In)\" dir=in action=allow protocol=TCP localport=3389",
|
||||
"net start TermService"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Avigilon_Version",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"Get-WmiObject -Class Win32_Product | where vendor -eq Avigilon | select Name, Version"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "Powershell_VideoController",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"Get-CimInstance -ClassName Win32_VideoController"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "Powershell_Avigilon_Servername",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"-File \"Avigilon_Servername.ps1\""
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "Powershell_Get_NetworkInterface",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"Get-NetAdapter | Select-Object Name, MacAddress, InterfaceDescription| Sort-Object -Property Name"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "Powershell_NetworkInterface_Team_LACP_Dynamic",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"New-NetLbfoTeam -Name \"{Team Name}\" -TeamMembers \"{NIC1}\", \"{NIC2}\" -TeamingMode LACP -LoadBalancingAlgorithm Dynamic -Confirm:$false"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{Team Name}",
|
||||
"{NIC1}",
|
||||
"{NIC2}"
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "Powershell_ACC8 Antivirus Exclusions",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"-File \"ACC8 Antivirus Exclusions.ps1\""
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "Powershell_Firewall Rule",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"-File \"Firewall Rule.ps1\""
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "Powershell_Folder Options",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"-File \"Folder Options.ps1\""
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "Powershell_Power Options",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"-File \"Power Options.ps1\""
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "Powershell_Remote Desktop Enable",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"-File \"Remote Desktop Enable.ps1\""
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "Powershell_Windows Update Restart",
|
||||
"ProfileType": "Powershell",
|
||||
"ProfileCommands": [
|
||||
"-File \"Windows Update Restart.ps1\""
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Add_Local_Admin_User",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"Net user {Local Admin User 1} {Password 1} /add /Y",
|
||||
"net localgroup administrators {Local Admin User 1} /add ",
|
||||
"net localgroup administrators"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{Local Admin User 1}",
|
||||
"{Password 1}"
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Add_Local_2_Admin_Users",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"Net user {Local Admin User 1} {Password 1} /add /Y",
|
||||
"net localgroup administrators {Local Admin User 1} /add ",
|
||||
"Net user {Local Admin User 2} {Password 2} /add /Y",
|
||||
"net localgroup administrators {Local Admin User 2} /add ",
|
||||
"net localgroup administrators"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{Local Admin User 1}",
|
||||
"{Password 1}",
|
||||
"{Local Admin User 2}",
|
||||
"{Password 2}"
|
||||
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_ScreenSaver",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"cd C:\\USI\\Images\\ & C:\\USI\\Images\\bg.bat"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Install_FoxitReader",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"C:\\USI\\Apps\\FoxitPDFReader.exe /QUIET"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Timezone_CanCentralStandardTime_6",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"tzutil /s \"Central Standard Time\"",
|
||||
"tzutil /g"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Meinberg ntp-4.2.8",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"C:\\USI\\Apps\\\"Meinberg ntp-4.2.8p15a-win32-setup.exe\" /USE_FILE=\"C:\\USI\\Apps\\MeinbergSetup.ini\"",
|
||||
"ntpd --version",
|
||||
"echo server {IP Address 1} iburst minpoll 6 maxpoll 7 >> C:\\\"Program Files (x86)\"\\NTP\\etc\\ntp.conf",
|
||||
"echo server {IP Address 2} iburst minpoll 6 maxpoll 7 >> C:\\\"Program Files (x86)\"\\NTP\\etc\\ntp.conf"
|
||||
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{IP Address 1}",
|
||||
"{IP Address 2}"
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Ipv6_Disable_ALL",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"powershell \"Disable-NetAdapterBinding -Name \"*\" -ComponentID ms_tcpip6\"",
|
||||
"powershell \"Get-NetAdapterBinding -ComponentID ms_tcpip6| Sort-Object -Property Name\""
|
||||
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "CMD_Ipv6_Disable_Interface",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"powershell \"Disable-NetAdapterBinding -Name \"{Interface Name}\" -ComponentID ms_tcpip6\"",
|
||||
"powershell \"Get-NetAdapterBinding -ComponentID ms_tcpip6| Sort-Object -Property Name\""
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{Interface Name}"
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "RAC9_IDRAC_Assign_IP_Network_Interface",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"racadm setniccfg -s {IP Address} {Network Mask} {Gateway}"
|
||||
],
|
||||
"ProfileParameters": [ "{IP Address}", "{Network Mask}", "{Gateway}" ]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "RAC9_IDRAC_Configure_User",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"racadm set iDRAC.Users.{Index}.Username {Username}",
|
||||
"racadm set iDRAC.Users.{Index}.Password {Password}",
|
||||
"racadm get iDRAC.Users.{Index}.Username"
|
||||
],
|
||||
"ProfileParameters": [ "{Index}", "{Username}", "{Password}" ]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "RAC9_IDRAC_Configure_Users_at_234",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"racadm set iDRAC.Users.2.Password {Password 2 root}",
|
||||
"racadm set iDRAC.Users.3.Username {Username 3}",
|
||||
"racadm set iDRAC.Users.3.Password {Password 3}",
|
||||
"racadm set iDRAC.Users.4.Username {Username 4}",
|
||||
"racadm set iDRAC.Users.4.Password {Password 4}",
|
||||
"racadm get iDRAC.Users.2.Username",
|
||||
"racadm get iDRAC.Users.3.Username",
|
||||
"racadm get iDRAC.Users.4.Username"
|
||||
],
|
||||
"ProfileParameters": [
|
||||
"{Password 2 root}",
|
||||
"{Username 3}",
|
||||
"{Password 3}",
|
||||
"{Username 4}",
|
||||
"{Password 4}"
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "RAC9_IDRAC_Get_ServiceTag",
|
||||
"ProfileType": "CMD",
|
||||
"ProfileCommands": [
|
||||
"racadm getsvctag"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "RAC9_ACPwrRcvry_On",
|
||||
"ProfileType": "RAC9",
|
||||
"ProfileCommands": [
|
||||
"set bios.Syssecurity.ACPwrRcvry On"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "RAC9_Power_redundancy",
|
||||
"ProfileType": "RAC9",
|
||||
"ProfileCommands": [
|
||||
" get system.power.RedundancyPolicy"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "RAC9_storage_vdisks",
|
||||
"ProfileType": "RAC9",
|
||||
"ProfileCommands": [
|
||||
"storage get vdisks -o -p layout,status,size"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
|
||||
{
|
||||
"ProfileName": "RAC9_Commit_Changes_reboot_NOW",
|
||||
"ProfileType": "RAC9",
|
||||
"ProfileCommands": [
|
||||
"jobqueue create BIOS.Setup.1-1 -r pwrcycle -s TIME_NOW"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "RAC9_Jobview_checkresult",
|
||||
"ProfileType": "RAC9",
|
||||
"ProfileCommands": [
|
||||
"jobqueue view"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
},
|
||||
{
|
||||
"ProfileName": "RAC9_Reboot",
|
||||
"ProfileType": "RAC9",
|
||||
"ProfileCommands": [
|
||||
"serveraction hardreset"
|
||||
],
|
||||
"ProfileParameters": []
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user