Overblog
Suivre ce blog Administration + Créer mon blog
Windows - Virtualization - PowerShell - Active Directory - Office

powershell

[PowerShell] Commandes et scripts divers

2 Février 2023 , Rédigé par Aurel Publié dans #PowerShell

Opérateurs de comparaison : -and And Et ! Not Non -not Not Non -or Or Ou -eq Equal to Egal à -lt Less than Plus petit que -gt Greater than Plus grand que -ge Greater than or Equal to Plus grand ou égal -le Less than or equal to Plus petit ou égal -ne...

Lire la suite

[PowerShell] Script to add printers from a CSV file filled with printer name, shared printer name, IP or name printer, driver

1 Février 2022 , Rédigé par Aurel Publié dans #PowerShell, #Windows

# *********************************************************************************************** # Script Name......: Add_Printer.ps1 # Function.........: Add printers from a CSV file filled with printer name, shared printer name, IP or name printer,...

Lire la suite

[Control-M] Deploy agent v8 and patch with PowerShell silently

16 Juillet 2019 , Rédigé par Aurel Publié dans #PowerShell, #Windows

This PowerShell script (compatible PowerShell v2) install Control-M agent version 8.0.00 and patch it to 8.0.00.200 silently. It also open Windows firewall ports in 7825 / out 7826 Regarding the patch (PAKAI) source, you need to extract the .exe (with...

Lire la suite

[Hyper-V] Mettre un ISO en premier dans l'ordre de boot d'une VM

21 Février 2018 , Rédigé par Aurel Publié dans #hyper-V, #PowerShell, #virtualisation

Monter l'ISO sur votre VM Se connecter en RDP sur l’Hyper-V hébergeant la VM et lancer PowerShell ou lancer PowerShell en tant qu'administrateur sur le serveur VMM si les modules Hyper-V sont installés. Pour visualiser les modules Hyper-V installés ou...

Lire la suite

[Office 365 / Exchange Online] Commandes PowerShell

28 Mai 2013 , Rédigé par Aurel Publié dans #PowerShell

- Délégation des BAL : # Ajouter l'accès total (Full Access) pour adm@toto.dom sur la boite info@toto.dom Add-MailboxPermission -Identity info@toto.dom -User adm@toto.dom -AccessRights FullAccess # Supprimer l'accès total (Full Access) pour adm@toto.dom...

Lire la suite

[PowerShell V3] Commandes diverses Active Directory / DNS / Hyper-V

2 Janvier 2013 , Rédigé par Aurel Publié dans #PowerShell

Active Directory # Installer le role AD DS Install-WindowsFeature -Name AD-Domain-Services –IncludeManagementTools # Tester les prérequis pour l'ajout d'un domaine enfant Test-ADDSDomainInstallation -Credential (Get-Credential dom\adm ) -NewDomainName...

Lire la suite