Created
January 24, 2015 11:43
-
-
Save gioxx/0e97627257666bd40d81 to your computer and use it in GitHub Desktop.
Un piccolo script PS di servizio per ripristinare rapidamente i delegati (che possono accettare o declinare una prenotazione) su una specifica sala riunioni, fatto per eventuali "distrazioni da Powershell"
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
############################################################################################################################ | |
# OFFICE 365: Ripristino delegati Sala Riunioni 1 | |
#---------------------------------------------------------------------------------------------------------------- | |
# Autore: GSolone | |
# Versione: 0.1 | |
# Utilizzo: .\SalaRiunioni1-RipristinaDelegati.ps1 | |
# Info: http://gioxx.org/tag/o365-powershell | |
# Ultima modifica: 15-01-2015 | |
# Modifiche: | |
############################################################################################################################ | |
#Tolgo temporaneamente il truncate dei risultati di Powershell | |
$FormatEnumerationLimit=-1 | |
Write-Host "Reimposto i delegati sulla Sala Riunioni 1, attendi." -foregroundcolor Yellow | |
############################################################################################################################ | |
# DI SEGUITO VIENE IMPORTATO TUTTO IL BLOCCO DELEGATI DA APPLICARE ALLA SALA, SE NECESSARIO AGGIUNGERE DELEGATI IN CODA, SALVARE LO SCRIPT E RILANCIARLO IN POWERSHELL | |
Set-CalendarProcessing -Identity salariunioni1@domain.tld -ResourceDelegates mario.rossi, claudio.bianchi, arturo.grigi | |
############################################################################################################################ | |
"" | |
Write-Host "Done." -foregroundcolor Green | |
"" | |
Write-Host "Verifico le autorizzazioni sulla Sala Riunioni 1:" -foregroundcolor Yellow | |
Get-CalendarProcessing salariunioni1@domain.tld | Ft ResourceDelegates -AutoSize | Out-String -Width 500 | |
#Reimposto lo standard del truncate di Powershell | |
$FormatEnumerationLimit=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment