Use script : Running PowerShell Scripts on Windows Server 2008

Pubblicato il: 09 ottobre 2016
sul canale di: microsoft lab
7,672
7

Use script - Running PowerShell Scripts on Windows Server 2008

1. Prepare

DC1 : Domain Controller

DC2 : Domain member

DC19 : File server; IP 10.0.0.19

2. Step by step : Run script CheckService.ps1 (default prevents all scripts from running)

DC12 : Copy file Done.sp1 from DC19 :

Right-click Start - Run -\\10.0.0.19\Script - Copy CheckService.ps1 to desktop

Double-click CheckService.ps1 # View content

Right-click CheckService.ps1 - Run with PowerShell = Disappear

Click Windows PowerShell :

Get-ExecutionPolicy # Display the current execution policy

Set-ExecutionPolicy RemoteSigned - Y # Set the execution policy

Double-click CheckService.ps1 :

Replace "pause" to "$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")"

Right-click CheckService.ps1 - Run with PowerShell - OK


In questa pagina del sito puoi guardare il video online Use script : Running PowerShell Scripts on Windows Server 2008 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato microsoft lab 09 ottobre 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 7,672 volte e gli è piaciuto 7 spettatori. Buona visione!