Update 44 files

- /Daily_Backup_review/database_s3_check.ps1
- /Daily_Backup_review/Get-StorageContainerContent.ps1
- /Daily_Backup_review/Global_Checks.ps1
- /Daily_Backup_review/list_table_within_databases.ps1
- /Daily_Backup_review/Start-AzureSQLExport.ps1
- /Daily_Backup_review/Start-BackupCheckBpScus.ps1
- /Daily_Backup_review/Start-BackupCheckBpWeu.ps1
- /Daily_Backup_review/Start-BackupCheckRoserAttachments.ps1
- /Daily_Backup_review/Start-BackupCheckRoserCloud.ps1
- /Daily_Backup_review/Start-BackupCheckTotal.ps1
- /Daily_Backup_review/Start-DatabaseExport.ps1
- /Daily_Backup_review/Start-PointInTimeRestore.ps1
- /Daily_Backup_review/list_databases_within_instances.py
- /Daily_Citrix_VDA_and_Server_Utilization_review/Cloudwatch_review/cloudwatch_alarm_ap-southeast-2.json
- /Daily_Citrix_VDA_and_Server_Utilization_review/Cloudwatch_review/Cloudwatch_review.ps1
- /Ansible/audit-netscaler-exp.yaml
- /Ansible/concurrent-user.yaml
- /Ansible/do-something.yaml
- /Ansible/hello-world.yaml
- /Ansible/p6-log-cleanup.yaml
- /Ansible/Roser_DB_backup_one_off.yaml
- /Ansible/test-sql.yaml
- /Ansible/test-sql-double-creds.yaml
- /RoserUsefull/access_bulk_servers.ps1
- /RoserUsefull/access_bulk_servers_cezar.ps1
- /RoserUsefull/Bulk_copy_files.ps1
- /RoserUsefull/Besfort_data.ps1
- /RoserUsefull/check_permissions_bulk_servers.ps1
- /RoserUsefull/Check-p6interface-checksum.ps1
- /RoserUsefull/compare_files.ps1
- /RoserUsefull/connections_parser.ps1
- /RoserUsefull/drop_rds_registry_key.ps1
- /RoserUsefull/EmergencyAccessRemote.ps1
- /RoserUsefull/Keycloak_TestConnection.ps1
- /RoserUsefull/Kickoff_disconnected_users.ps1
- /RoserUsefull/launch_jira.ps1
- /RoserUsefull/launch_jira_gui.ps1
- /RoserUsefull/ownership_taker_anonymized.ps1
- /RoserUsefull/purge_files.ps1
- /RoserUsefull/remove_local_profiles_PowerShell.PS1
- /RoserUsefull/retrieve_attachements.ps1
- /RoserUsefull/Send_patch_multiple_servers.ps1
- /RoserUsefull/Test-RSAAPI-BP.ps1
- /RoserUsefull/Linux_identify_big_files.sh
This commit is contained in:
2024-07-17 08:04:59 +00:00
parent 5771d6bff7
commit 51dd4494db
44 changed files with 4948 additions and 0 deletions
@@ -0,0 +1,46 @@
$VerbosePreference='continue'
######################################################################################
#
# Servers you want to connect
#
######################################################################################
$list_of_server_to_connect = [ordered]@{
"te-prd-app-01" = [PSCustomObject]@{
"Name"="te-prd-app-01.roser-total.local"
"username"="roser-total\pgeeraert"
"password"="Pr0m3th3us!!"
}
}
######################################################################################
#
# Command to type
#
######################################################################################
$command_to_type = hostname
$pw = convertto-securestring -AsPlainText -Force -String "Pr0m3th3us!!"
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "roser-total\pgeeraert",$pw
$server_to_connect = $list_of_server_to_connect.$server.Name
$session = New-PSSession -ComputerName $server_to_connect -Credential $cred
Invoke-Command -Session $session -ScriptBlock { hostname }
<#
foreach($server in $list_of_server_to_connect.keys){
write-output $server
write-output $list_of_server_to_connect.$server.Name
$pw = convertto-securestring -AsPlainText -Force -String $list_of_server_to_connect.$server.password
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $list_of_server_to_connect.$server.username,$pw
$server_to_connect = $list_of_server_to_connect.$server.Name
$session = New-PSSession -ComputerName $server_to_connect -Credential $cred
Invoke-Command -Session $session -ScriptBlock { hostname }
}
#get the target
#>